QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 967|回复: 7

局域网环境使用apt

[复制链接]
发表于 2006-5-19 10:31:09 | 显示全部楼层 |阅读模式
我的电脑处于局域网环境,共享代理服务器上网,使用apt命令进行升级出现以下信息:
[root@pe-yin ~]# 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% [Connecting to apt.magiclinux.org (218.56.161.13)] [Connecting to auvtech.com (218.241.65.157)]
请问怎样解决
发表于 2006-5-19 10:49:34 | 显示全部楼层
export http_proxy=http://username:[email protected]
大概是这么解决。
回复

使用道具 举报

发表于 2006-5-19 10:51:13 | 显示全部楼层
或者编辑/etc/apt/apt.conf,可以看到里面有代理服务器设置的内容。
回复

使用道具 举报

 楼主| 发表于 2006-5-19 12:30:47 | 显示全部楼层
有这么一项
Acquire {
        Retries "0";
        HTTP {
                Proxy ""; // http://user:pass@host:port/
        };
};
请问sejishikong兄怎样该
回复

使用道具 举报

 楼主| 发表于 2006-5-19 12:57:54 | 显示全部楼层
按照sejishikong兄的方法出现以下错误消息,我可是用这个账号浏览网页的,应该不会出现这个提示呀?也绝对不会敲错键。172.18.1.7为代理服务器的ip地址,qpyin为我的账号,password为我的密码,8080为http代理端口. 
[root@pe-yin ~]# export http_proxy=http://qpyin:[email protected]:8080
[root@pe-yin ~]# 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.gnome  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.extras  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.os  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.updates  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://auvtech.com/~xinzhen/downloads/apt/magic/base/pkglist.gnome  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://auvtech.com/~xinzhen/downloads/apt/magic/base/pkglist.updates  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://auvtech.com/~xinzhen/downloads/apt/magic/base/pkglist.extras  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://auvtech.com/~xinzhen/downloads/apt/magic/base/pkglist.experimental  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/srclist.gnome  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/srclist.extras  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/srclist.os  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/srclist.updates  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://auvtech.com/~xinzhen/downloads/apt/magic/base/srclist.gnome  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://auvtech.com/~xinzhen/downloads/apt/magic/base/srclist.updates  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://auvtech.com/~xinzhen/downloads/apt/magic/base/srclist.extras  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://auvtech.com/~xinzhen/downloads/apt/magic/base/srclist.experimental  407 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.
回复

使用道具 举报

发表于 2006-5-19 13:24:05 | 显示全部楼层
[quote:5661796c04="yinqingpeng"]有这么一项
Acquire {
        Retries "0";
        HTTP {
                Proxy ""; // http://user:pass@host:port/
        };
};
请问sejishikong兄怎样该[/quote]
在Proxy后面的引号中输入http://user:pass@host:port/就行了。
回复

使用道具 举报

 楼主| 发表于 2006-5-19 13:49:55 | 显示全部楼层
那为什么还是出现我第三次贴出来的内容?谢谢sejishikong兄了。
回复

使用道具 举报

发表于 2006-5-19 14:29:29 | 显示全部楼层
嗯,根据我查找的情况看,应该是isa的设置问题。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-24 22:43 , Processed in 0.039152 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表