首页 > 服务器 > Web服务器 > 正文

407 Proxy Authentication Required错误的解决办法

2019-10-13 18:36:14
字体:
来源:转载
供稿:网友
如果你公司的网络架构是通过一个代理服务器上网,那么Ubuntu在使用apt-get更新的时候会出现问题。即使你配置了系统范围内的代理(System wide proxy server)。通常在执行apt-get update等命令的时候,会出现下面这样的错误:
 
407 Proxy Authentication Required
很简单,我们只要更改apt-get的配置文件就可以了,修改/etc/apt/apt.conf的内容:
 
$ cat /etc/apt/apt.conf  
Acquire::http::proxy "http://username:passowrd@proxy:80/";
 
Acquire::ftp::proxy "ftp://username:password@proxy:80/";
Acquire::https::proxy "https://username:password@proxy:80/";
 
username,password,proxy以及端口都要按照实际的修改。
这样就可以更新系统了。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表