LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1308|回复: 7

为什么我禁了ipv6以后,apt-get还是无法解析服务器地址?

[复制链接]
发表于 2006-12-9 16:47:17 | 显示全部楼层 |阅读模式
我的debian是sarge,在自己编译2.6内核的时候,加入了ipv6的功能,这样我上午就有点慢,因该是因为在解析ipv6地址的原因吧,上网搜了一下。
我试图通过注释
/etc/modprobe.d/aliases
中的
alias net-pf-10 ipv6
改为
#alias net-pf-10 ipv6
alias net-pf-10 off

可是似乎没有什么作用,是不是因为把ipv6直接编译进内核的原因?而modprobe只是对模块有效?

apt-spy的错误如下:
Emlnx:/etc/apt# apt-spy -d unstable -a Asia

SERVER: ftp.linuxforum.net
Benchmarking FTP...
                Error: ls-lR: No such file or directory
Benchmarking HTTP...
                Error: Couldn't resolve host 'ftp.linuxforum.neti386ls-lR'

SERVER: mirrors.geekbone.org
Benchmarking FTP...
                Error: Failed to open file.
Benchmarking HTTP...
                Error: The requested URL returned error: 404

SERVER: debian.cn99.com
Benchmarking FTP...
                Error: ls-lR: No such file or directory
Benchmarking HTTP...
                Error: The requested URL returned error: 404

SERVER: ftp.hk.debian.org
Benchmarking FTP...
                Error: ls-lR: No such file or directory
Benchmarking HTTP...
                Error: The requested URL returned error: 404

SERVER: www.zentek-international.com
Benchmarking HTTP...
                Error: The requested URL returned error: 404

SERVER: kebo.vlsm.org
Benchmarking FTP...
                Error: name lookup timed out
Benchmarking HTTP...
                Error: name lookup timed out

SERVER: debian.indika.net.id
Benchmarking HTTP...
                Error: name lookup timed out

SERVER: mirror.hamakor.org.il
Benchmarking HTTP...
                Error: The requested URL returned error: 404

SERVER: ftp.iitm.ac.in
Benchmarking FTP...
                Error: Couldn't resolve host 'ftp.iitm.ac.in'
Benchmarking HTTP...
                Error: The requested URL returned error: 404

SERVER: ftp.jp.debian.org
Benchmarking FTP...
                Error: name lookup timed out
Benchmarking HTTP...
                Error: Couldn't resolve host 'ftp.jp.debian.org'

SERVER: ftp2.jp.debian.org
Benchmarking FTP...
                Error: Couldn't resolve host 'ftp2.jp.debian.org'
Benchmarking HTTP...
                Error: Couldn't resolve host 'ftp2.jp.debian.org'

SERVER: ring.asahi-net.or.jp
Benchmarking FTP...
                Error: Couldn't resolve host 'ring.asahi-net.or.jp'
Benchmarking HTTP...
                Downloaded 1085 bytes in 16.56 seconds
                Download speed: 0.06 kB/sec

SERVER: ftp.dti.ad.jp
Benchmarking FTP...
                Error: Failed to connect to 2001:2e8:22:12::2: Network is unreachable
Benchmarking HTTP...
                Error: Failed to connect to 2001:2e8:22:12::2: Network is unreachable

SERVER: dennou-k.gfd-dennou.org
Benchmarking FTP...
                Error: Connection time-out
Benchmarking HTTP...
                Downloaded 65456 bytes in 19.41 seconds
                Download speed: 3.29 kB/sec

SERVER: dennou-q.gfd-dennou.org
Benchmarking FTP...
                Error: Connection time-out
Benchmarking HTTP...
                Downloaded 19242 bytes in 22.73 seconds
                Download speed: 0.83 kB/sec

SERVER: ftp.yz.yamagata-u.ac.jp
Benchmarking Emlnx:/etc/apt# apt-spy -d unstable -a Asia

SERVER: ftp.linuxforum.net
Benchmarking FTP...
                Error: ls-lR: No such file or directory
Benchmarking HTTP...
                Error: Couldn't resolve host 'ftp.linuxforum.neti386ls-lR'

SERVER: mirrors.geekbone.org
Benchmarking FTP...
                Error: Failed to open file.
Benchmarking HTTP...
                Error: The requested URL returned error: 404

SERVER: debian.cn99.com
Benchmarking FTP...
                Error: ls-lR: No such file or directory
Benchmarking HTTP...
                Error: The requested URL returned error: 404

SERVER: ftp.hk.debian.org
Benchmarking FTP...
                Error: ls-lR: No such file or directory
Benchmarking HTTP...
                Error: The requested URL returned error: 404

SERVER: www.zentek-international.com
Benchmarking HTTP...
                Error: The requested URL returned error: 404

SERVER: kebo.vlsm.org
Benchmarking FTP...
                Error: name lookup timed out
Benchmarking HTTP...
                Error: name lookup timed out

SERVER: debian.indika.net.id
Benchmarking HTTP...
                Error: name lookup timed out

SERVER: mirror.hamakor.org.il
Benchmarking HTTP...
                Error: The requested URL returned error: 404

SERVER: ftp.iitm.ac.in
Benchmarking FTP...
                Error: Couldn't resolve host 'ftp.iitm.ac.in'
Benchmarking HTTP...
                Error: The requested URL returned error: 404

SERVER: ftp.jp.debian.org
Benchmarking FTP...
                Error: name lookup timed out
Benchmarking HTTP...
                Error: Couldn't resolve host 'ftp.jp.debian.org'

SERVER: ftp2.jp.debian.org
Benchmarking FTP...
                Error: Couldn't resolve host 'ftp2.jp.debian.org'
Benchmarking HTTP...
                Error: Couldn't resolve host 'ftp2.jp.debian.org'

SERVER: ring.asahi-net.or.jp
Benchmarking FTP...
                Error: Couldn't resolve host 'ring.asahi-net.or.jp'
Benchmarking HTTP...
                Downloaded 1085 bytes in 16.56 seconds
                Download speed: 0.06 kB/sec

SERVER: ftp.dti.ad.jp
Benchmarking FTP...
                Error: Failed to connect to 2001:2e8:22:12::2: Network is unreachable
Benchmarking HTTP...
                Error: Failed to connect to 2001:2e8:22:12::2: Network is unreachable

SERVER: dennou-k.gfd-dennou.org
Benchmarking FTP...
                Error: Connection time-out
Benchmarking HTTP...
                Downloaded 65456 bytes in 19.41 seconds
                Download speed: 3.29 kB/sec

SERVER: dennou-q.gfd-dennou.org
Benchmarking FTP...
                Error: Connection time-out
Benchmarking HTTP...
                Downloaded 19242 bytes in 22.73 seconds
                Download speed: 0.83 kB/sec

SERVER: ftp.yz.yamagata-u.ac.jp
Benchmarking FTP...
FTP...
发表于 2006-12-9 17:14:33 | 显示全部楼层
能上网吗? dns设置对了吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-9 20:15:08 | 显示全部楼层
上网一切正常。浏览网页,下载都很好。
就apt-spy不行。
dns的设置也就是我的resole.conf是我家的路由的地址
nameserver 192.168.1.1
其他实在想不到是什么原因。
回复 支持 反对

使用道具 举报

发表于 2006-12-9 20:21:35 | 显示全部楼层
dns还是用外网的好点吧?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-9 20:31:37 | 显示全部楼层
SERVER: ftp.dti.ad.jp
Benchmarking FTP...
Error: Failed to connect to 2001:2e8:22:12::2: Network is unreachable
Benchmarking HTTP...
Error: Failed to connect to 2001:2e8:22:12::2: Network is unreachable

从这条看,似乎在用IPv6解析地址?
回复 支持 反对

使用道具 举报

发表于 2006-12-9 21:44:00 | 显示全部楼层
感觉是apt-spy有问题了吧?重装一下看看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-9 22:43:18 | 显示全部楼层
换了局段的DNS还是不行阿,难道真是apt-spy出了问题?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-9 23:18:40 | 显示全部楼层
还是双网卡的问题?我的有线网卡没有用,地址设置在172网段,用的是无线网卡,设置在192网段。
无论设置什么源,apt-get总是不成功。
很是奇怪。
盼高手出马了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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