how to setup http and deb proxy on Ubuntu

Created by marcobra (Marco Braida) on on 2011-09-16
deb http proxy setup ubuntu system update package install
Last updated by:
marcobra (Marco Braida) on on 2011-09-16

How to setup http and deb network Proxy

Ubuntu has a setting in gnome for the Network Proxy, which should set gnome’s proxy.

1 - First go to System--->Preferences--->Network Proxy

a) Once it opens click on “Proxy Configuration” and enter your proxy server,port number details click Close.

2 - Synaptic Package Manager

Synaptic Package Manager must have the proxy set, in order to update your installation using the in-built Update Manager or Synaptic GUI.

a) Go to System--->Administration--->Synaptic Package Manager

b) Once Synaptic Package Manager opens click on Settings--->Preferences

c) Click on Network tab select Manual Proxy Configuration option and enter your proxy server,port details.
If you have username,password click on Authentication to enter these details click on ok

3 - Firefox proxy Configuration

a) Open your firefox browser go to Edit--->Preferences

b) Click on Advanced and select Network tab

c) Select Settings option

d) Now select Manual Proxy Configuration and enter your proxy server,port details click on ok

4 - To update upgrade the system using terminal Ubuntu need to have the deb proxy
set into /etc/atp/apt.conf or into a proxy file under /etc/apt/apt.conf.d/ for example we need to create a file:


Acquire::http::proxy "http://deb_proxy_user:deb_proxy_passwd@deb_proxy_ip:deb_proxy_port/";

we must also set the http_proxy, it can be different from deb_proxy so if not already set we must put it in a http_proxy system env variable:

export http_proxy=http://http_proxy_user:http_proxy_passwd@http_proxy_ip:http_proxy_port/