Using apt-get behind a proxy (Ubuntu)
By Avinash Joshi on Sep 19, 2008
It is quite difficult to use apt-get in ubuntu when you are behind a proxy. To be able to install packages behind a proxy, you need to have a few details:
username: The user name with with you get through the proxy
password: The password with with you get through the proxy
proxyserver: The proxy server
port: The port with with you connect to the proxy server (default is 80)
The proxy can be set in two ways:
|Edit your /etc/apt/apt.conf file as root.
Put these line at the end of your /etc/apt/apt.conf file :
|Edit your /etc/bash.bashrc file as root.
Put these line at the end of your /etc/bash.bashrc file :
You can omit the username:password, if your proxy server has no password. That’s all for today! Happy apt-get-ing!