This worked for me on Ubuntu 12.04
Create a new file as shown below:
$ sudo gvim /etc/apt/apt.conf.d/02http-proxy
and enter the following line:
Acquire::http::Proxy "http://username:password@proxy.tcs.com:8080";
Save the file and run
$ sudo apt-get update
It should work for you.
One more thing, if your password contains '@' character, then you need to replace it with '%40' in your password.
No comments:
Post a Comment