Difference between revisions of "Configuring proxy for apt in debian"
From Notes_Wiki
|  (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...") | m | ||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| [[Main Page|Home]] > [[Debian]] > [[Configuring proxy for apt in debian]] | |||
| To configure proxy for apt in debian use following steps: | To configure proxy for apt in debian use following steps: | ||
| Line 21: | Line 20: | ||
| #::: } | #::: } | ||
| #::</pre> | #::</pre> | ||
| # Other option to specify authentication is: | |||
| #:<pre> | |||
| #::  Acquire::http::Proxy "http://user:pass@proxy_host:port"; | |||
| #::  Acquire::https::Proxy "http://user:pass@proxy_host:port"; | |||
| #::  Acquire::ftp::Proxy "http://user:pass@proxy_host:port"; | |||
| #:</pre> | |||
| #:*Refer: https://stackoverflow.com/questions/38591415/ubuntu-16-04-apt-get-not-working-through-proxy | |||
| Steps have been learned from http://wiki.debian.org/AptConf | Steps have been learned from http://wiki.debian.org/AptConf | ||
| [[Main Page|Home]] > [[Debian]] > [[Configuring proxy for apt in debian]] | |||
Latest revision as of 06:52, 31 March 2022
Home > Debian > Configuring proxy for apt in debian
To configure proxy for apt in debian use following steps:
- Edit file '/etc/apt/apt.conf.d/70debconf'
- 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>";
- }
- }
 
 
 
- Other option to specify authentication is:
- Acquire::http::Proxy "http://user:pass@proxy_host:port";
- Acquire::https::Proxy "http://user:pass@proxy_host:port";
- Acquire::ftp::Proxy "http://user:pass@proxy_host:port";
 
 
Steps have been learned from http://wiki.debian.org/AptConf

