Friday, October 26, 2012

Updating Packages behind proxy server in Ubuntu


Most of us are aware of the proxy servers available at our work places. Sometimes they can make our lives almost horrible. Well here's a little guide to install updates on a Ubuntu machine located behind a proxy server.

Go to System Settings > Network > Network Proxy > Manual
and setup the proxy and the port.

Or we can also edit the /etc/apt/apt.conf file and add the below mentioned line to solve our problem.

$ sudo vi /etc/apt/apt.conf

Acquire::http::proxy “http://<username>:<password>@<proxy_ip>:<proxy_port>/”;

Save the file and your problem is solved.
Enjoy!!!

No comments:

Post a Comment