29 April 2011

Updating Ubuntu Through a Proxy

Updating Ubuntu through a proxy should in principle be an easy process: you just set the proxy settings under System -> Preferences -> Network Proxy. But it seems that if you need a password for the proxy then this does not do the job since the password information does not get passed along.

To fix this issue, edit /etc/apt/apt.conf as follows:

Acquire::http::proxy "http://username:password@proxy:port/";
Acquire::ftp::proxy "ftp://username:password@proxy:port/";
Acquire::https::proxy "https://username:password@proxy:port/";

1 comment:

  1. Hey, this worked perfectly for me. And, it was orders of magnitude faster than my connection at home. 21 minutes vs 15 hours.