Thursday, December 19, 2013

How to configure 'Ubuntu Software Center' behind proxy

Go to "System Settings" menu (top right icon), select "Network" and then select "Network Proxy" from popup.

Add http , http and ftp proxy server details and click "Apply System Wide" button.

To ensure your changes are saved, open "/etc/apt/apt.conf" as root, you should see lines starting with:

Acquire::http::Proxy
Acquire::http::Proxy
 Acquire::http::proxy...
 Acquire::https::proxy...
 Acquire::ftp::proxy...


Now need to export above as environment variables:
 open  /etc/bash.bashrc and add below  lines.

export http_proxy=http://fully-qualified-proxy-hostname:port/
export https_proxy=https://fully-qualified-proxy-hostname:port:80/
export ftp_proxy=fttp://fully-qualified-proxy-hostname:port:80/



 Now run "source /etc/bash.bashrc" from terminal and then open "Ubuntu Software Center". It should work now.

Acquire::http::Proxy
/etc/apt/