通过proxy的APT怎么都不行!!!

为当前最终发行版之前的所有版本提供支持
回复
glorry
帖子: 72
注册时间: 2006-02-21 15:25
送出感谢: 0
接收感谢: 0

通过proxy的APT怎么都不行!!!

#1

帖子 glorry » 2006-03-13 14:41

Network Proxy没有作用!web brower,APT,Gaim IM都要自己设!!

System--Preferences--Network Proxy设置成Automatic proxy configuration就是不行!
而Firfox web brower要自己的proxy设置才可以。
Gain Internet Messenger也要设proxy才行。

问题在于通过proxy的APT怎么都不行,我用的porxy是要用用户名密码鉴权的,而用户名是域用户,比如:用户user123,域是domain123,在windows里要用用户为“domain123\user123"
现在用了n种办法:
1,System--Preferences--Network Proxy设置成Automatic proxy configuration就是不行!
2,按http://wiki.ubuntu.org.cn/index/system/ConfigAptProxy修改文件不行!
3,新增/etc/apt/apt.conf为
Acquire::http::Proxy "http://user123:password@111.222.xxxx.xxx:8080";
or
Acquire::http::Proxy "http://domain123\user123:password@111.222.xxxx.xxx:8080";
or
Acquire::http::Proxy "http://user123:password@proxyabc.xxx.com.cn:8080";
or
"http://user123:password@proxyabc.xxx.com.cn";

总是提示:~# sudo apt-get install linux-686
Reading package lists... Done
Building dependency tree... Done
W: Couldn't stat source package list http://debian.cn99.com stable/main Packages (/var/lib/apt/lists/debian.cn99.com_debian_dists_stable_main_binary-i386_Packag es) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.cn99.com stable/non-free Pack ages (/var/lib/apt/lists/debian.cn99.com_debian_dists_stable_non-free_binary-i38 6_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.cn99.com stable/contrib Packa ges (/var/lib/apt/lists/debian.cn99.com_debian_dists_stable_contrib_binary-i386_ Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.cn99.com stable/non-US/main P ackages (/var/lib/apt/lists/debian.cn99.com_debian-non-US_dists_stable_non-US_ma in_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.cn99.com stable/non-US/contri b Packages (/var/lib/apt/lists/debian.cn99.com_debian-non-US_dists_stable_non-US _contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.cn99.com stable/non-US/non-fr ee Packages (/var/lib/apt/lists/debian.cn99.com_debian-non-US_dists_stable_non-U S_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.cn99.com proposed-updates/mai n Packages (/var/lib/apt/lists/debian.cn99.com_debian_dists_proposed-updates_mai n_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.cn99.com proposed-updates/con trib Packages (/var/lib/apt/lists/debian.cn99.com_debian_dists_proposed-updates_ contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.cn99.com proposed-updates/non -free Packages (/var/lib/apt/lists/debian.cn99.com_debian_dists_proposed-updates _non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.cn99.com proposed-updates/non -US/main Packages (/var/lib/apt/lists/debian.cn99.com_debian-non-US_dists_propos ed-updates_non-US_main_binary-i386_Packages) - stat (2 No such file or directory )
W: Couldn't stat source package list http://debian.cn99.com proposed-updates/non -US/contrib Packages (/var/lib/apt/lists/debian.cn99.com_debian-non-US_dists_pro posed-updates_non-US_contrib_binary-i386_Packages) - stat (2 No such file or dir ectory)
W: Couldn't stat source package list http://debian.cn99.com proposed-updates/non -US/non-free Packages (/var/lib/apt/lists/debian.cn99.com_debian-non-US_dists_pr oposed-updates_non-US_non-free_binary-i386_Packages) - stat (2 No such file or d irectory)
W: Couldn't stat source package list http://debian.cn99.com woody/updates/main P ackages (/var/lib/apt/lists/debian.cn99.com_debian-security_dists_woody_updates_ main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.cn99.com woody/updates/contri b Packages (/var/lib/apt/lists/debian.cn99.com_debian-security_dists_woody_updat es_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.cn99.com woody/updates/non-fr ee Packages (/var/lib/apt/lists/debian.cn99.com_debian-security_dists_woody_upda tes_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy/main Pac kages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_dists_breezy_main_ binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy/restrict ed Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_dists_breezy _restricted_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy/universe Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_dists_breezy_u niverse_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy/multiver se Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_dists_breezy _multiverse_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-security /main Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_dists_bre ezy-security_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-security /restricted Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_dis ts_breezy-security_restricted_binary-i386_Packages) - stat (2 No such file or di rectory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-security /universe Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_dists _breezy-security_universe_binary-i386_Packages) - stat (2 No such file or direct ory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-security /multiverse Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_dis ts_breezy-security_multiverse_binary-i386_Packages) - stat (2 No such file or di rectory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-updates/ main Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_dists_bree zy-updates_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-updates/ restricted Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_dist s_breezy-updates_restricted_binary-i386_Packages) - stat (2 No such file or dire ctory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-updates/ universe Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_dists_ breezy-updates_universe_binary-i386_Packages) - stat (2 No such file or director y)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-updates/ multiverse Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_dist s_breezy-updates_multiverse_binary-i386_Packages) - stat (2 No such file or dire ctory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-backport s/main Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_dists_br eezy-backports_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-backport s/restricted Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_di sts_breezy-backports_restricted_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-backport s/universe Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_dist s_breezy-backports_universe_binary-i386_Packages) - stat (2 No such file or dire ctory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-backport s/multiverse Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_archive_di sts_breezy-backports_multiverse_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy/main Pac kages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_ubuntu-cn_dists_breezy_mai n_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy/restrict ed Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_ubuntu-cn_dists_bree zy_restricted_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy/universe Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_ubuntu-cn_dists_breezy _universe_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy/multiver se Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_ubuntu-cn_dists_bree zy_multiverse_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-extras/m ain Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_backports_dists_bre ezy-extras_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-extras/r estricted Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_backports_dis ts_breezy-extras_restricted_binary-i386_Packages) - stat (2 No such file or dire ctory)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-extras/u niverse Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_backports_dists _breezy-extras_universe_binary-i386_Packages) - stat (2 No such file or director y)
W: Couldn't stat source package list http://mirror.lupaworld.com breezy-extras/m ultiverse Packages (/var/lib/apt/lists/mirror.lupaworld.com_ubuntu_backports_dis ts_breezy-extras_multiverse_binary-i386_Packages) - stat (2 No such file or dire ctory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package linux-686
yoshubom
帖子: 233
注册时间: 2005-12-28 16:23
送出感谢: 0
接收感谢: 0

#2

帖子 yoshubom » 2006-04-08 9:54

i can't do it too .......
头像
chieftain
帖子: 175
注册时间: 2006-02-18 22:53
来自: 啊里不吐纳星球
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 chieftain » 2006-04-09 3:30

the same to you :(
头像
chieftain
帖子: 175
注册时间: 2006-02-18 22:53
来自: 啊里不吐纳星球
送出感谢: 0
接收感谢: 0
联系:

#4

帖子 chieftain » 2006-04-09 5:30

找了半天,终于搜到如何解决这个问题了

在/etc/apt/ 下建立一个apt.conf 文件
内容为
Acquire::http::Proxy "http://usrer:password@proxyip:port";

这样就ok了 :P
yoshubom
帖子: 233
注册时间: 2005-12-28 16:23
送出感谢: 0
接收感谢: 0

#5

帖子 yoshubom » 2006-04-09 7:51

chieftain 写了:找了半天,终于搜到如何解决这个问题了

在/etc/apt/ 下建立一个apt.conf 文件
内容为
Acquire::http::Proxy "http://usrer:password@proxyip:port";

这样就ok了 :P
可以用apt-get update 测试一下。
头像
chieftain
帖子: 175
注册时间: 2006-02-18 22:53
来自: 啊里不吐纳星球
送出感谢: 0
接收感谢: 0
联系:

#6

帖子 chieftain » 2006-04-11 10:05

chieftain@ubuntu:~$ sudo apt-get update
Password:
获取:1 http://archive.ubuntu.org.cn breezy Release.gpg [189B]
获取:2 http://archive.ubuntu.org.cn breezy-security Release.gpg [189B]
获取:3 http://archive.ubuntu.org.cn breezy-updates Release.gpg [189B]
获取:4 http://archive.ubuntu.org.cn breezy-backports Release.gpg [189B]
忽略 http://archive.ubuntu.org.cn breezy Release.gpg
忽略 http://archive.ubuntu.org.cn breezy-extras Release.gpg
命中 http://archive.ubuntu.org.cn breezy Release
命中 http://archive.ubuntu.org.cn breezy-security Release
命中 http://archive.ubuntu.org.cn breezy-updates Release
命中 http://archive.ubuntu.org.cn breezy-backports Release
忽略 http://archive.ubuntu.org.cn breezy Release
忽略 http://archive.ubuntu.org.cn breezy-extras Release
命中 http://archive.ubuntu.org.cn breezy/main Packages
命中 http://archive.ubuntu.org.cn breezy/restricted Packages
命中 http://archive.ubuntu.org.cn breezy/universe Packages
命中 http://archive.ubuntu.org.cn breezy/multiverse Packages
命中 http://archive.ubuntu.org.cn breezy-security/main Packages
命中 http://archive.ubuntu.org.cn breezy-security/restricted Packages
命中 http://archive.ubuntu.org.cn breezy-security/universe Packages
命中 http://archive.ubuntu.org.cn breezy-security/multiverse Packages
命中 http://archive.ubuntu.org.cn breezy-updates/main Packages
命中 http://archive.ubuntu.org.cn breezy-updates/restricted Packages
命中 http://archive.ubuntu.org.cn breezy-updates/universe Packages
命中 http://archive.ubuntu.org.cn breezy-updates/multiverse Packages
命中 http://archive.ubuntu.org.cn breezy-backports/main Packages
命中 http://archive.ubuntu.org.cn breezy-backports/restricted Packages
命中 http://archive.ubuntu.org.cn breezy-backports/universe Packages
命中 http://archive.ubuntu.org.cn breezy-backports/multiverse Packages
忽略 http://archive.ubuntu.org.cn breezy/main Packages
忽略 http://archive.ubuntu.org.cn breezy/restricted Packages
忽略 http://archive.ubuntu.org.cn breezy/universe Packages
忽略 http://archive.ubuntu.org.cn breezy/multiverse Packages
忽略 http://archive.ubuntu.org.cn breezy-extras/main Packages
忽略 http://archive.ubuntu.org.cn breezy-extras/restricted Packages
忽略 http://archive.ubuntu.org.cn breezy-extras/universe Packages
忽略 http://archive.ubuntu.org.cn breezy-extras/multiverse Packages
命中 http://archive.ubuntu.org.cn breezy/main Packages
命中 http://archive.ubuntu.org.cn breezy/restricted Packages
命中 http://archive.ubuntu.org.cn breezy/universe Packages
命中 http://archive.ubuntu.org.cn breezy/multiverse Packages
命中 http://archive.ubuntu.org.cn breezy-extras/main Packages
命中 http://archive.ubuntu.org.cn breezy-extras/restricted Packages
命中 http://archive.ubuntu.org.cn breezy-extras/universe Packages
命中 http://archive.ubuntu.org.cn breezy-extras/multiverse Packages
下载 4B,耗时 11s (0B/s)
正在读取软件包列表... 完成
chieftain@ubuntu:~$

这是我的apt.conf文件内容:

Acquire::http::Proxy "http://ccwhcz:chieftain@10.185.11.61:80";


:D
回复

回到 “老旧版本支持”