[讨论]世界级的难题:研究三天仍无法找到解决方法,请高手出招指点!谢谢。

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
cipow
帖子: 39
注册时间: 2007-09-26 17:20

[讨论]世界级的难题:研究三天仍无法找到解决方法,请高手出招指点!谢谢。

#1

帖子 cipow » 2007-10-14 12:09

绝急。三天前发现突然不能连到源了,换了N个源都不行,断定不是源的问题,找了网络的同事问一下,端口也没有封,网络情况正常,因此断定是系统问题(UBUNTU 7.04),找遍网络居然没有一个人可以搞定,出错情况如下,请高手出招:


yangming@yangming-desktop:~$ sudo apt-get update
错误 http://ubuntu.cn99.com feisty Release.gpg
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty/main Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty/restricted Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty/universe Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty/multiverse Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-security Release.gpg
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-security/main Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-security/restricted Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-security/universe Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-security/multiverse Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-updates Release.gpg
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-updates/main Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-updates/restricted Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-updates/universe Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-updates/multiverse Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-proposed Release.gpg
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-proposed/main Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-proposed/restricted Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-proposed/universe Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-proposed/multiverse Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-backports Release.gpg
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-backports/main Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-backports/restricted Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-backports/universe Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty-backports/multiverse Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty Release.gpg
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty/main Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty/restricted Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty/universe Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
错误 http://ubuntu.cn99.com feisty/multiv Translation-zh_CN
无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/feisty/Release.gpg 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... elease.gpg 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... elease.gpg 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... elease.gpg 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... elease.gpg 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu/dists/fei ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu-cn/dists/ ... elease.gpg 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu-cn/dists/ ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu-cn/dists/ ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu-cn/dists/ ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
无法下载 http://ubuntu.cn99.com/ubuntu-cn/dists/ ... -zh_CN.bz2 无法连接上 localhost:4001 (127.0.0.1)。 - connect (111 Connection refused)
正在读取软件包列表... 完成
W: 有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件。
bluepeng
帖子: 343
注册时间: 2007-04-02 14:35

#2

帖子 bluepeng » 2007-10-14 12:29

直接上网或ping,能通吗?
prauge
帖子: 30
注册时间: 2007-03-11 12:29

#3

帖子 prauge » 2007-10-14 12:45

看看你的 sources.list 文件 有没有问题
cipow
帖子: 39
注册时间: 2007-09-26 17:20

#4

帖子 cipow » 2007-10-14 13:45

回楼上两位大侠:因为用代理上网,所以PING代理是通的,并且可以上互联网。ping局域网内其他机器正常。另外,sources.list 也确认没有问题,换了N源了。所以才出现如此问题。再等,寻求答案。谢各位了。
头像
windwiny
帖子: 2254
注册时间: 2007-03-13 17:26

#5

帖子 windwiny » 2007-10-14 14:26

这就世界级,这世界也太小了。。。。

你确定直接打开 cn99.com 能打开?
头像
Amankwah
帖子: 624
注册时间: 2006-10-16 7:24
来自: 安康/西安/广州
联系:

#6

帖子 Amankwah » 2007-10-14 14:37

sudo apt-get update的时候需要方分localhost的4001端口??
你的网络是怎么设置的?还是host文件有问题??
读书取正,读易取变,读骚取幽,读庄取达,读汉文取坚,最有味卷中岁月。
与菊同野,与梅同疏,与莲同洁,与兰同芳,与海棠同韵,定自称花里神仙。
cipow
帖子: 39
注册时间: 2007-09-26 17:20

#7

帖子 cipow » 2007-10-14 14:41

回复6楼的大侠,HOST文件如何查看有没有问题?4001端口如何查看?之前一直都行的,有一天重新开机后发觉就连不上了。
头像
Amankwah
帖子: 624
注册时间: 2006-10-16 7:24
来自: 安康/西安/广州
联系:

#8

帖子 Amankwah » 2007-10-14 14:57

建议检查/etc/hosts文件中的内容,是否把目标主机在hosts中指定为127.0.0.1了。
另外可以在apt-get update的时候在另外一个窗口使用lsof -i:4001看是不是它连接到你自己的这个端口上了。
ping一下ubuntu.cn99.com能否ping通?你的DNS解析出来的目标IP地址是多少?
使用route命令看一下你的路由表,看看,你是否把localhost的连接lo指定为默认路由造成这个问题。
如果还不知道如何解决,把你的这些结果贴上来看看。
读书取正,读易取变,读骚取幽,读庄取达,读汉文取坚,最有味卷中岁月。
与菊同野,与梅同疏,与莲同洁,与兰同芳,与海棠同韵,定自称花里神仙。
cipow
帖子: 39
注册时间: 2007-09-26 17:20

#9

帖子 cipow » 2007-10-14 15:06

这个是我的HOSTS文件的内容:
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
127.0.0.1 localhost
127.0.1.1 shuaige-desktop

我是用10.248.24.141:808 代理的。
ping cn99.com 后如下:
yangming@yangming-desktop:~$ ping ubuntu.cn99.com
PING mirrors.cn99.com (61.132.102.124) 56(84) bytes of data.
From 10.248.53.252 icmp_seq=1 Destination Host Unreachable
From 10.248.53.252 icmp_seq=2 Destination Host Unreachable
From 10.248.53.252 icmp_seq=3 Destination Host Unreachable
From 10.248.53.252 icmp_seq=4 Destination Host Unreachable
From 10.248.53.252 icmp_seq=5 Destination Host Unreachable
From 10.248.53.252 icmp_seq=6 Destination Host Unreachable
From 10.248.53.252 icmp_seq=7 Destination Host Unreachable
From 10.248.53.252 icmp_seq=8 Destination Host Unreachable
From 10.248.53.252 icmp_seq=9 Destination Host Unreachable
From 10.248.53.252 icmp_seq=10 Destination Host Unreachable
From 10.248.53.252 icmp_seq=11 Destination Host Unreachable
From 10.248.53.252 icmp_seq=12 Destination Host Unreachable
cipow
帖子: 39
注册时间: 2007-09-26 17:20

#10

帖子 cipow » 2007-10-14 15:10

这个为运行route后的情况:
yangming@yangming-desktop:~$ route
内核 IP 路由表
目标 网关 子网掩码 标志 跃点 引用 使用 接口
10.248.53.128 * 255.255.255.128 U 0 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth0
default 10.248.53.252 0.0.0.0 UG 0 0 0 eth0


我这里的网络是这样的:
ip:10.248.53.191
子网:255.255.255.128
DNS:10.248.53.252
cipow
帖子: 39
注册时间: 2007-09-26 17:20

#11

帖子 cipow » 2007-10-14 15:12

这里是不是出问题了,怎么有这个子掩码的?还是local状态呢

link-local * 255.255.0.0 U 1000 0 0 eth0
头像
Amankwah
帖子: 624
注册时间: 2006-10-16 7:24
来自: 安康/西安/广州
联系:

#12

帖子 Amankwah » 2007-10-14 15:21

你就ping不通cn99源的服务器。
用代理的话,命令行下应该

代码: 全选

export http_proxy=http://ip:port
或者相应的ftp_proxy等代理。
读书取正,读易取变,读骚取幽,读庄取达,读汉文取坚,最有味卷中岁月。
与菊同野,与梅同疏,与莲同洁,与兰同芳,与海棠同韵,定自称花里神仙。
wangsen
帖子: 346
注册时间: 2006-11-04 22:16

#13

帖子 wangsen » 2007-10-14 15:22

晕死 你用代理 你设置全局代理了吗?
系统-首选项-网络代理
自己设置下
cipow
帖子: 39
注册时间: 2007-09-26 17:20

#14

帖子 cipow » 2007-10-14 15:25

我这里的网络出网要许可的。请问楼上的,export http_proxy=http://ip:port 那个IP是指cn99.com的IP吗?PORT呢?因为我之前也用了这个命令,也是不行的。
这个是我PING其他的外网的情况:但是用FF浏览器却是可以打开的。
yangming@yangming-desktop:~$ ping qq.com
PING qq.com (219.133.40.91) 56(84) bytes of data.
From 10.248.53.252 icmp_seq=1 Destination Host Unreachable
From 10.248.53.252 icmp_seq=2 Destination Host Unreachable
From 10.248.53.252 icmp_seq=3 Destination Host Unreachable
From 10.248.53.252 icmp_seq=4 Destination Host Unreachable
From 10.248.53.252 icmp_seq=5 Destination Host Unreachable
cipow
帖子: 39
注册时间: 2007-09-26 17:20

#15

帖子 cipow » 2007-10-14 15:41

报告:检查过了,全局代理早就设置好。呵呵。因为都没改过,四天前还可以正常出源下载东西的。三天前就不行了。所以。那个是没问题的。确认。
请问,是不是hosts文件有问题?我觉得它问题比较多,它自动指向了4001端口。这个奇怪了。
回复