Monday, August 19, 2013

Ubuntu APT Proxy Settings

Open apt configuration file
vim /etc/apt/apt.conf
and add the following:
Acquire::http::Proxy "http://username:password@proxyhostname:port";
The syntax shown above should be strictly followed.

This configuration may fail if your username or password has an '@' in it. You can also add proxy configuration for other protocols such as FTP. 

No comments:

Post a Comment