VmWare-Ubuntu-Error proxy authentication required

Target

Fix Error proxy authentication required

Root cause

公司的網路架構是通過代理伺服器上網

Solution

修改 apt-get 配置文件

1
vi /etc/apt/apt.conf

文件部分內容:

  • username: 自行輸入,ex: cherry
  • password: 自行輸入,ex: test123
  • ipv4 / ipv6: 自行輸入,ex: 192.168.2.41
  • port: 自行輸入,ex: 8080

Example

1
2
3
4
Acquire::http::proxy "http://cherry:test123@192.168.2.41:8080/";
Acquire::https::proxy "https://cherry:test123@192.168.2.41:8080/";
Acquire::ftp::proxy "ftp://cherry:test123@192.168.2.41:8080/";
Acquire::socks::proxy "socks://cherry:test123@192.168.2.41:8080/";

Reference

http://www.2cto.com/os/201209/153072.html

文章目录
  1. 1. Target
  2. 2. Root cause
  3. 3. Solution
    1. 3.1. 修改 apt-get 配置文件
    2. 3.2. 文件部分內容:
      1. 3.2.1. Example
  4. 4. Reference
,