1. 程式人生 > >ubuntu can't add add-apt-

ubuntu can't add add-apt-

environment

uname -a

Linux jerry-xia-pc 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

appearance

add-apt-repository ppa:webupd8team/y-ppa-manager
Cannot add PPA: 'ppa:webupd8team/y-ppa-manager'.
Please check that the PPA name or format is correct.

solution

You need to export your proxy environment variables using

export http_proxy="http://username:[email protected]:port/"
export https_proxy="https://username:[email protected]:port/"

and then tell sudo to use them using:

 sudo -E add-apt-repository ppa:webupd8team/y-ppa-manager