相关疑难解决方法(0)

“apt-get”不适用于代理

对于命令

sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/binary-i386/Packages.gz  
407  Proxy Authentication Required (The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )
Run Code Online (Sandbox Code Playgroud)

我正在使用 VirtualBox 运行安装在 Windows XP 上的 Ubuntu 10.10。对于 Internet 连接,我使用带有身份验证的代理服务器。我尝试使用gnome-network-proxy工具在系统范围内设置代理设置。

在使用 format/etc/environmenthttp_proxy变量更新之后,http://my_proxy:port/没有身份验证数据。

我用 Firefox 检查了这个。浏览器询问我的登录名和密码,一切正常。不幸的是,apt-get 并非如此。我也试过按照这里的描述去做。不幸的是它不起作用。

可能与代理位于 Windows 域中的事实有某种关系,有什么想法吗?

我的代理名称是http-proxy。' - ' 是一个特殊字符吗?

apt

56
推荐指数
4
解决办法
19万
查看次数

标签 统计

apt ×1