If you are a Debian-based GNU/Linux user, then you’re probably
familiar with synaptic and apt-get to install application from software
repositories. This post focussed on how to use apt-get/synaptic behind
proxy server/firewall which under normal circumstances, you’re unable
to use apt-get.
If you’re using Synaptic
Open up your Synaptic package manager (usually as root), go to
Settings-> Preference -> Network. Enter your proxy server details
like : username:password@proxyserver.net, and put the proxy server port
(usually 8080).
If you’re using command-line apt-get
Edit your /etc/bash.bashrc or /etc/profile file as root.
Put these line at the end of your /etc/bash.bashrc or /etc/profile file :
export http_proxy=http://username:password@proxyserver.net:port/export
ftp_proxy=http://username:password@proxyserver.netport/
You can omit the username:password, if your proxy server has no password. That’s all for today! Happy apt-get-ing!
debian,ubuntu,knoppix, mepis, apt-get
powered by performancing firefox

Add the following lines to /etc/apt/apt.conf (might be empty) file worked for me while the instructions above did not.
ACQUIRE {
http::proxy “http://172.16.1.71:8080/”
}
If you need to authenticate use
ACQUIRE {
http::proxy “http://DOMAIN\username:Password@FQDN.or.IP:8080/”
}
I am Using Debain and there is not Setting for Authentication for proxy in Synaptic package manger. Can you tell which file to edit for proxy setting becasue a always get error 407 Proxy Authentication Required
[...] I tried this suggestion which works fine for both apt-get and synaptic package manager. Just add this entry to your [...]
thanks for the the tips. Really been helpfull.
I tried all suggestions above but still get the authentication required message.
Hi,
Do you have @ in your password?
If you have @, it will be tough to handle the condition.
ask you admin the change the @ with any other special charecter.
Regards, Shrinivasan