Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to change proxy settings of Synaptic package manager from terminal. I see that editing /etc/apt/apt.conf file does not work, i.e., even if I change proxy settings here, or anywhere, Synaptic Package manager won't use it.

Basically, I dont want to go everytime inside the settings of SPM to change the proxy. I want to make a small script which will do this job.

Does anyone know in which file are the proxy credentials of Synaptic Package Manager (SPM) is stored?

share|improve this question
Other method would be Open synaptic as root , by gksu synaptic and set the proxy setting . Then try running it as normal , and see if it has retained the settings. – atenz Jul 14 '12 at 11:08
up vote 1 down vote accepted

It's stored in the /root/.synaptic/synaptic.conf file, you can see an example in the following script

Have fun :)

share|improve this answer
Wow, exactly the thing I was looking for. Take a bow man, you are just awesome :) – Rushi Agrawal Jul 17 '12 at 17:33
Always put the important parts of the example in your answer since the files you link to are not guaranteed to last forever, which severely reduces the usefulness of your answer. – Thor84no Oct 13 '14 at 13:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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