Search This Blog

Thursday, 5 April 2012

apt-get Proxy Issue

Testing out Security Onion and apt-get update was failing.  The server is behind a proxy.

Added proxy settings to all the regular places :

export http_proxy=http://proxy.domain:port
aquire::http::proxy "http://proxy.domain:port/"; 
aquire::http::proxy "http://proxy.domain:port/";

None of which worked.  In the end the command :

http_proxy='http://proxy.domain:port/' apt-get update
and because I always forget how to do this :

http_proxy='' $1 $2 $3