1

We have proxy Internet at college and I can not access it on Ubuntu. It works on browsers but it doesn't work for any other application like the Ubuntu software center. I tried to apply the network proxy settings system wide and it doesn't work. It gives this error:

Failed to download the repository information
Check your Internet connection

Using 172.16.0.2 with 8080 with user name and password.
They use Microsoft Forefront Threat Management Gateway for proxy server.
help !

  • We need to know: 1. What is your proxy-adress and port? 2. do you use authentication like username and password on it? 3. What kind of network are you connected to? Explain briefly. – Denny Oct 7 '13 at 11:18
  • 1
    @denNorske i have just added the information you required :) – Waqas Oct 7 '13 at 13:07
  • I'll make an answer for you, hang on for 2 hours - busy now. – Denny Oct 7 '13 at 14:03
  • 1
    @denNorske ok 2 hours :/ – Waqas Oct 8 '13 at 4:09
1

check the file /etc/apt/apt.conf

The contents are, after applying the proxy "system wide":

Acquire::http::proxy "http://172.16.0.2:8080/";
Acquire::ftp::proxy "ftp://172.16.0.2:8080/";
Acquire::https::proxy "https://172.16.0.2:8080/";

But, in order to make this work, you must add your username and password into it:

Acquire::http::proxy "http://<username>:<password>@172.16.0.2:8080";
Acquire::ftp::proxy "ftp://<username>:<password>@172.16.0.2:8080/";
Acquire::https::proxy "https://<username>:<password>@172.16.0.2:8080/";

Save the file and you are good to go to install things from both terminal and Software-center :P

(Note that the proxy will only work on internet-browsers and software-center/terminal with apt-get)

| improve this answer | |
  • No problem, glad i could help! – Denny Oct 8 '13 at 12:15
  • 2
    Isn't there any secure way to put the password there because its readable to anyone who can access that file ? – Waqas Nov 11 '13 at 10:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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