I’ve been building several new boxes based on linux variants and flavors lately at work (Centos6x, RHEL6.5, Ubuntu12.04-14.04Server/Desktop, SLES, etc) and always have to deal with the proxy settings. For the web, it’s a simple matter of changing the proxy settings in firefox. For APT, it’s a different matter. Doing a websearch yields varied results, some of which are temporary or partial fixes. Yes, that includes attempting to set them in network settings via gui.
What has consistently worked for LinuxMint (including v16 and v17rc), Ubuntu and others of that variant is to change the settings system-wide in a few areas, all of which need to be changed as root:
- apt-get setting
- environment variables
- settings for GTK3 based programs (Gnome desktop)
and add the following (edited for your proxy of course)
If you need to authenticate, change the lines to read similar to:
add/change to: (Some apps use case sensitivity, therefore it’s duplicated here to catch it either way)
open a terminal window, change to root (sudo su) and enter/paste the following:
gsettings set org.gnome.system.proxy mode ‘manual’
gsettings set org.gnome.system.proxy.http host ‘yourproxy.server.com’
gsettings set org.gnome.system.proxy.http port 8080
When done, Reboot. I’ve noticed that you do not need to reboot if you’re in a terminal running apt-get update but the gui Software Manager and others will not work until you do reboot.