Ubuntu – /etc/apt/apt.conf gets cleared every time I change proxy settings under settings->network->Network proxy

aptPROXYsoftware-center

I use a proxy server settings at work but when i get home, my network connection uses no proxy settings.

every time i get home and use the proxy settings under settings->networks->Network Proxy to set to "none", the file /etc/apt/apt.conf gets cleared and the following day in the morning i have to edit the file and type in the command again, or at least copy paste from a backup file.

How can i avoid this situation, its tiring, how can i make the proxy settings gui write to this file for apt-get and software center to work when i set proxy under network settings?

Best Answer

In Ubuntu 12.04 LTS:

When you come home, try not applying no-proxy system-wide. This doesn't edit the apt.conf file, yet software center uses no proxy. Works for me, dunno how.

Related Question