Thursday, June 4, 2009

How to run aptitute / apt-get via a proxy in Ubuntu Hardy and Jaunty

I always have problems with this whenever I setup a new install. So, I decided to log it here.

Add the following to your .bashrc:

# -------------------------------------------------------------
# Variables for apt-get
export HTTP_PROXY="http://myproxy.mydomain.com:myportnumber/"
export http_proxy="http://myproxy.mydomain.com:myportnumber/"
export FTP_PROXY="http://myproxy.mydomain.com:myportnumber/"
export ftp_proxy="http://myproxy.mydomain.com:myportnumber/"
# -------------------------------------------------------------


Enjoy!

No comments: