1
2
3
4
5
6
7
In this example an apt-cacher proxy is running on the server at 192.168.0.2.

---- /etc/apt/apt.conf.d/01proxy:
Acquire::http::Proxy "http://192.168.0.2:3142/apt-cacher/";

Bypassing the proxy temporarily:
# apt-get install -o Acquire::http::Proxy=none ack-grep