Ubuntu – Proxy settings not working

11.10PROXY

I just installed Ubuntu 11.10 with Wubi and I am currently on a campus that requires the usage of a proxy server. I went into System Settings/Network/Proxy Settings. Didn't work. I manually set the proxy in Firefox and I do have access to the internet; however, I cannot add apps or update Ubuntu. How can I fix it? Thanks

Best Answer

On my fresh install of Ubuntu 11.10 64bits, this worked for command line with apt and Ubuntu Software Center.

Create the file /etc/apt/apt.conf and put this line with your proxy settings :

Acquire::http::Proxy "http://login:password@yourproxyaddress:port";

example :

Acquire::http::Proxy "http://bob:123bob@bobproxy:8070";