Configuring the apt package manager to use an upstream proxy

July 15, 2011 • Customer Services       
Synopsis

When trying to upgrade CensorNet apt shows an error such as Connection closed by Foreign Host or Connection reset by Peer

Article

If you are forced to use a parent proxy to access the web, by your ISP, LEA or gateway device, you should configure apt to use the CensorNet proxy itself for downloading the upgrade packets.

To do this, log in as root and type:

echo "Acquire::http:proxy \"http://127.0.0.1:3128\";" > /etc/apt/apt.conf.d/00proxy

Now retry the upgrade by using the "setup" program and choosing option 2 - "Perform system upgrade"

Related articles


Last modified on Fri, July 15, 2011 « Back