Friday, October 31, 2008

Howto APT behind a proxy server

If your machine is behind a proxy server your apt-get install will not work properly
in this case you have to open a terminal and type the following command
I am assuming that you have no username and password for using internet then use this commands

export http_proxy= (replace the IP address and port with  your
export ftp_proxy= the IP address and port with your

if you have username and password use

export http_proxy=http://username:password@
export ftp_proxy=http://username:password@
Create or Edit /etc/apt/apt.conf
Add the Following 
Acquire::http::proxy "http://:/";
Acquire::ftp::proxy "ftp://:/";
Acquire::https::proxy "https://:/";  

No comments: