Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have ubuntu 12.10 working on my system. I have tried many time to add repo but every time i tried i got the same error as in this case.

$ sudo add-apt-repository ppa:scopes-packagers/ppa
Cannot access PPA (https://launchpad.net/api/1.0/~scopes-packagers/+archive/ppa) to get PPA information, please check your internet connection.

my net is working fine. apt-get install is also working.

so why is it giving error that check your internet connection? ( i am working under proxy server with authentication)

$ cat /etc/apt/apt.conf file

Acquire::http::proxy "http://username:[email protected]:3128/";
Acquire::https::proxy "https://username:[email protected]:3128/";
Acquire::ftp::proxy "ftp://username:[email protected]:3128/";
Acquire::socks::proxy "socks://username:[email protected]:3128/";
share|improve this question

3 Answers 3

up vote 1 down vote accepted

This problem was solved in a thread in the Ubuntu forums. Look here and scroll to the bottom.

share|improve this answer
    
thnx for your help. –  RATHI Dec 6 '12 at 8:35
    
I feel a little bit stupid, but I don't really understand what I have to do in order to make it work... What should I write in "export https_proxy=...."? –  user138784 Apr 9 '13 at 7:58

Use the "network" settings panel (System Settings->Network), click on "Network Proxy", and set the proxy server/port info for http & https, then click "Apply system wide"

share|improve this answer

Only set http_proxy env variable is not enough. https_proxy is also required.

And I was needed to execute the add-apt-repository command as root, NOT via sudo. i don't know why it is not working with sudo but as root is working fine..

share|improve this answer
    
You can use sudo but need to provide the "-E" option, like "sudo -E add-apt-repository ..." to preserve the environment variables, otherwise, sudo start a clean session. –  MV. Jul 19 '13 at 18:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.