Configuring Proxy Authentication Settings in Linux

Configuring the proxy settings in a system is fairly simple task and easy interface is provided in every Operating system to do so. However, few linux distros are devoid of proxy authentication settings which should be there in every proxy settings interface. The browsers and other applications which require internet access provide their own configuration box to get the  settings from the user. But the frustration occurs when system ends up showing something like ‘Proxy Authentication error’, while using apt-get or installing application from software manager or doing some other task where system require net access..

Here are the steps to set proxy authentication in debian based distros:

  1. Edit /etc/apt/apt.conf file using superuser permissions. If not there, create new.

    sudo gedit /etc/apt/apt.conf

  2. Add or edit the content to be in following format

    Acquire::http::proxy "http://username:password@proxy_server:proxy_port/”;
    Acquire::https::proxy "https://username:password@proxy_server:proxy_port/”;
    Acquire::ftp::proxy "ftp://username:password@proxy_server:proxy_port/";
    Acquire::socks::proxy "socks://username:password@proxy_server:proxy_port/";