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
On my fresh install of Ubuntu 11.10 64bits, this worked for command line with apt and Ubuntu Software Center.
Create the file
Two steps are required to get internet fully working in a proxified environment:
Provide the proxy URL to the
Add following to
Add following to your
Please note, however, in case if proxy environment variables are set in
I'm going to presume that your proxy settings are a URL to a server somewhere on campus, which probably means that you are using a PAC script. If your proxy settings do not consist of a URL, ignore this answer.
Firefox should work fine if you set the system proxy settings to this URL and it is set to use system settings.
Alas, the system settings just deliver the script URL to applications querying what the proxy should be - while browsers, and other apps which share browser codebases (like Thunderbird) are quite happy with PAC scripts, most applications are not. This includes many of the core system applications.
If your proxy config is delivered via PAC script, the best thing to do is to download it using your browser, and read through it looking for the actual addresses and ports of your proxy servers. Then use these to populate the manual proxy settings, which should work for more applications.
It may seem strange, but installing Synaptic on 11.10 and configuring the proxy and authentication settings there fixed apt-get as well.
I tried lots of things before that, I set the proxy settings everywhere I could (system settings, /etc/apt.conf, /etc/apt.conf.d/*, gconf-editor, environment variables), but nothing helped -
Changing the settings with Synaptic fixed that. I actually hate this obscurity, it resembles Windows. However, it worked for me.
I've have the same issue in my campus, but I' have no acces to internet, however you may try to "apply system wide settings" in the same window you configure the proxy.
After a mild bit of googling.
if nothing else works try out the shell commands.
1) Open a terminal:
Alt+F2 and type
2) Paste the following code to install gconf-editor:
3) Execute gconf-editor:
4) Walk down the tree to system -> http_proxy
5) Search for use_http_proxy and check it.
6) Try again.
I have not tested using the "gconfeditor" but every other ways actually failed to work. Then, I found a way which is working but it is very tedious.
1. Install Ubuntu 10.10. Proxy works perfectly with this version.
2. Then upgrade it to upper version.
To do upgrade in a faster way. Download the "alternate iso" for that perticular version and then upgrade the ubuntu by mounting that "iso" file. It will not take much time. After the final upgrade to the desired version, proxy will still work.
If some one found any other way, please post it. Thanks in advance :)