yinqingpeng 发表于 2006-5-19 10:31:09

局域网环境使用apt

我的电脑处于局域网环境,共享代理服务器上网,使用apt命令进行升级出现以下信息:
# apt-get update
Err http://apt.magiclinux.org magiclinux release
Could not connect to apt.magiclinux.org:80 (218.56.161.13), connection timed out
Err http://auvtech.com magic release
Could not connect to auvtech.com:80 (218.241.65.157), connection timed out
0%
请问怎样解决

sejishikong 发表于 2006-5-19 10:49:34

export http_proxy=http://username:[email protected]
大概是这么解决。

sejishikong 发表于 2006-5-19 10:51:13

或者编辑/etc/apt/apt.conf,可以看到里面有代理服务器设置的内容。

yinqingpeng 发表于 2006-5-19 12:30:47

有这么一项
Acquire {
        Retries "0";
        HTTP {
                Proxy ""; // http://user:pass@host:port/
        };
};
请问sejishikong兄怎样该

yinqingpeng 发表于 2006-5-19 12:57:54

按照sejishikong兄的方法出现以下错误消息,我可是用这个账号浏览网页的,应该不会出现这个提示呀?也绝对不会敲错键。172.18.1.7为代理服务器的ip地址,qpyin为我的账号,password为我的密码,8080为http代理端口. 
# export http_proxy=http://qpyin:[email protected]:8080
# apt-get update
Ign http://auvtech.com magic release
Ign http://apt.magiclinux.org magiclinux release
Err http://auvtech.com magic/gnome pkglist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Ign http://auvtech.com magic/gnome release
Err http://auvtech.com magic/updates pkglist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Ign http://auvtech.com magic/updates release
Err http://auvtech.com magic/extras pkglist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Err http://apt.magiclinux.org magiclinux/gnome pkglist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Ign http://auvtech.com magic/extras release
Err http://auvtech.com magic/experimental pkglist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Ign http://auvtech.com magic/experimental release
Err http://auvtech.com magic/gnome srclist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Err http://auvtech.com magic/updates srclist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Err http://auvtech.com magic/extras srclist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Err http://auvtech.com magic/experimental srclist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Ign http://apt.magiclinux.org magiclinux/gnome release
Err http://apt.magiclinux.org magiclinux/extras pkglist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Ign http://apt.magiclinux.org magiclinux/extras release
Err http://apt.magiclinux.org magiclinux/os pkglist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Ign http://apt.magiclinux.org magiclinux/os release
Err http://apt.magiclinux.org magiclinux/updates pkglist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Ign http://apt.magiclinux.org magiclinux/updates release
Err http://apt.magiclinux.org magiclinux/gnome srclist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Err http://apt.magiclinux.org magiclinux/extras srclist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Err http://apt.magiclinux.org magiclinux/os srclist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Err http://apt.magiclinux.org magiclinux/updates srclist
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://apt.magiclinux.org/magiclinux/base/pkglist.gnome407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://apt.magiclinux.org/magiclinux/base/pkglist.extras407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://apt.magiclinux.org/magiclinux/base/pkglist.os407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://apt.magiclinux.org/magiclinux/base/pkglist.updates407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://auvtech.com/~xinzhen/downloads/apt/magic/base/pkglist.gnome407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://auvtech.com/~xinzhen/downloads/apt/magic/base/pkglist.updates407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://auvtech.com/~xinzhen/downloads/apt/magic/base/pkglist.extras407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://auvtech.com/~xinzhen/downloads/apt/magic/base/pkglist.experimental407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://apt.magiclinux.org/magiclinux/base/srclist.gnome407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://apt.magiclinux.org/magiclinux/base/srclist.extras407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://apt.magiclinux.org/magiclinux/base/srclist.os407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://apt.magiclinux.org/magiclinux/base/srclist.updates407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://auvtech.com/~xinzhen/downloads/apt/magic/base/srclist.gnome407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://auvtech.com/~xinzhen/downloads/apt/magic/base/srclist.updates407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://auvtech.com/~xinzhen/downloads/apt/magic/base/srclist.extras407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Failed to fetch http://auvtech.com/~xinzhen/downloads/apt/magic/base/srclist.experimental407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.)
Reading Package Lists... Done
Building Dependency Tree... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.

sejishikong 发表于 2006-5-19 13:24:05

有这么一项
Acquire {
        Retries "0";
        HTTP {
                Proxy ""; // http://user:pass@host:port/
        };
};
请问sejishikong兄怎样该
在Proxy后面的引号中输入http://user:pass@host:port/就行了。

yinqingpeng 发表于 2006-5-19 13:49:55

那为什么还是出现我第三次贴出来的内容?谢谢sejishikong兄了。

sejishikong 发表于 2006-5-19 14:29:29

嗯,根据我查找的情况看,应该是isa的设置问题。
页: [1]
查看完整版本: 局域网环境使用apt