I just updated from Ubuntu 12.04 to 13.10
In 12.04, I used to set up my http_proxy variable in .bashrc and then use apt-get as follows
sudo -E apt-get update
The -E option in sudo used to make the user environment variables available to sudo and apt-get would pick up the http_proxy variable.
For some reason, this method is not working in 13.10. I am repeatedly getting
407 Proxy authentication Required.
Does anybody know the reason why? How do I solve this?
I know that the other way to enable proxy for apt-get is to change settings in apt.conf. I don't want to do this as this will create a system wide setting. Also, when I am using the system at home (where there is no proxy), I will again have to go and change apt.conf.
In the above solution, I would just have to drop the "-E" option in sudo and apt-get will just attempt to directly connect to the internet.