Configuring proxy for apt in debian

From Notes_Wiki
Revision as of 10:26, 23 June 2013 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>Debian|Debian</yambe:breadcrumb> =Configuring proxy for apt in debian= To configure proxy for apt in debian use following steps: # Edit file '<tt>/etc/apt/a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>Debian|Debian</yambe:breadcrumb>

Configuring proxy for apt in debian

To configure proxy for apt in debian use following steps:

  1. Edit file '/etc/apt/apt.conf.d/70debconf'
  2. Append lines
    Acquire::http::Proxy "http://proxy.virtual-labs.ac.in:8080";
    Acquire::ftp::Proxy "http://proxy.virtual-labs.ac.in:8080";
    If proxy requires authentication then username and password can be specified using:
    Acquire::ftp
    {
    Proxy "ftp://proxy:2121/";
    ProxyLogin
    {
    "USER <username>";
    "PASS <password>";
    }
    }


Steps have been learned from http://wiki.debian.org/AptConf