首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 系统运维 >

Ubuntu通过代理下网,怎么使用apt-get更新

2012-09-15 
Ubuntu通过代理上网,如何使用apt-get更新?如果你公司的网络架构是通过一个代理服务器上网,那么Ubuntu在使

Ubuntu通过代理上网,如何使用apt-get更新?

如果你公司的网络架构是通过一个代理服务器上网,那么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以及端口都要按照实际的修改。

这样就可以更新系统了。

参考: http://askubuntu.com/questions/88976/407-proxy-authentication-required




Ubuntu通过代理下网,怎么使用apt-get更新

热点排行