Use synaptic behind proxy

Needed to set up synaptic behind a proxy (again) today, thought I’d document it.

$ cd /etc/apt/                       # Changes to the directory /etc/apt/
$ cp apt.conf apt.conf_backup        # Copies the file apt.conf to apt.conf_backup in case we stuff something up
$ gksudo gedit apt.conf&             # Opens the file apt.conf in a text editor

And add the lines

ACQUIRE {
    http::proxy "http://[UserName]:[Password]@[ProxyAddress]:[Port]/"
}

Save, close. Of course, if you change proxy settings regularly, you’ll need to configure that yourself (Ubuntu is seriously messed up in this respect – Someone should write a fix for the proxy management system at some point *adds item to todo list*)

Happy Coding.