apt-get automatically work on direct internet connectin or transparent proxy. But if your internet connection using proxy (not transparent proxy), you will need to setting the apt-get configuration file to make apt-get to work.
Open apt.conf file and add this line :
Acquire::http::Proxy "http://username:password@proxyserver:port";
For example :
$ sudo vi /etc/apt/apt.conf
Add the line (proxy):
Acquire::http::Proxy "http://john:rambo@10.10.10.10:1010";
Save the file and you're done. Now you can use apt-get through that proxy.
Another way to do it is via command line :
$ sudo export http_proxy=http://username:password@proxyserver:port
Note : Setting from gnome network proxy will not work (work on your all internet application, but not apt-get), only work on proxy that doesn't need username and password. This is because gnome network proxy setting will only put proxy server and its port on apt.conf file, but username and password is not. Last time I see this on Karmic Koala.
2 comments:
very nice and helpfull article.The translation service is really very helpful to me.
access 1337x in UK
Fantastic sharing I will share these guides to all of my staff thanks.
http://websiteproxy.co.uk/torrenthound.com.html
Post a Comment