Oct 09, 2015

Use a web proxy for apt-get

To configure using an HTTP proxy for apt-get, add the following line to your /etc/apt/apt.conf file (you may need to create the file)

Acquire::http::Proxy "http://PROXY_HOST:PROXY_PORT";

This will configure apt-get to use a web proxy without configuring it for the entire system. Just comment out or remove the line to reverse the change.

More information here: