我使用的是 64 位 Debian 6.0(挤) 从 Windows 7 64 位 VirtualBox 主机,但我无法ping security.debian.org
从客户机成功或者Windows 主机。例如,从 VirtualBox 客户机以 root 身份:
root@debian~# apt-get update
Hit http://ftp.nz.debian.org squeeze Release.gpg
Ign http://ftp.nz.debian.org/debian/ squeeze/main Translation-en
Ign http://ftp.nz.debian.org/debian/ squeeze/main Translation-en_NZ
Hit http://ftp.nz.debian.org squeeze-updates Release.gpg
Ign http://ftp.nz.debian.org/debian/ squeeze-updates/main Translation-en
Ign http://ftp.nz.debian.org/debian/ squeeze-updates/main Translation-en_NZ
Hit http://ftp.nz.debian.org squeeze Release
Hit http://ftp.nz.debian.org squeeze-updates Release
Hit http://ftp.nz.debian.org squeeze/main Sources
Hit http://ftp.nz.debian.org squeeze/main amd64 Packages
Hit http://ftp.nz.debian.org squeeze-updates/main Sources/DiffIndex
Hit http://ftp.nz.debian.org squeeze-updates/main amd64 Packages/DiffIndex
Hit http://ftp.nz.debian.org squeeze-updates/main amd64 Packages
Err http://security.debian.org squeeze/updates Release.gpg
Could not resolve 'security.debian.org'
Err http://security.debian.org/ squeeze/updates/main Translation-en
Could not resolve 'security.debian.org'
Err http://security.debian.org/ squeeze/updates/main Translation-en_NZ
Could not resolve 'security.debian.org'
Reading package lists... Done
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/Release.gpg Could not resolve 'security.debian.org'
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/i18n/Translation-en.bz2 Could not resolve 'security.debian.org'
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/i18n/Translation-en_NZ.bz2 Could not resolve 'security.debian.org'
W: Some index files failed to download, they have been ignored, or old ones used instead.
实际上,除了 VirtualBox 之外,我无法通过 Windows 浏览器访问大多数 Debian 网站,包括http://security.debian.org/我的笔记本电脑连接到普通家庭网络无线路由器,网络连接详情如下:
c:\>ipconfig
Windows IP Configuration
Wireless LAN adapter Wireless Network Connection 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::b8ab:5283:7563:56b9%11
IPv4 Address. . . . . . . . . . . : 192.168.0.103
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter VirtualBox Host-Only Network:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::6c85:d4c8:a632:1a17%38
IPv4 Address. . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Tunnel adapter isatap.{B8D0B539-DEBD-44FA-A083-408C923B6842}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter isatap.{10ECE2A8-F684-4D23-8E4E-D1CD154842CB}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter isatap.{BADD3B76-F50E-4452-922D-C30F6A04E27F}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter 6TO4 Adapter:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter isatap.{96FB53A6-3CBB-422D-B27B-EA9175F8EF99}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter Reusable ISATAP Interface {FB46FC81-EEE3-4D64-BD27-77A8E0C25C7D}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e76:34bc:2a99:86b6:92e
Link-local IPv6 Address . . . . . : fe80::34bc:2a99:86b6:92e%14
Default Gateway . . . . . . . . . : ::
Tunnel adapter isatap.{E9EE8EC1-E630-4680-B111-4A56D298A88B}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
我的客人有配置:
root@dev:~# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:32:ae:42
inet addr:192.168.0.105 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe32:ae42/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2187 errors:0 dropped:0 overruns:0 frame:0
TX packets:1717 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:317629 (310.1 KiB) TX bytes:458447 (447.7 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:220 errors:0 dropped:0 overruns:0 frame:0
TX packets:220 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:40217 (39.2 KiB) TX bytes:40217 (39.2 KiB)
从我读到的有关连接到 security.debian.org 的问题来看,IPv6 可能会造成阻碍,您需要以某种方式将首选项更改为 IPv4。我尝试修改/etc/gai.conf
以使用precedence ::ffff:0:0/96 100
(如建议在这里),但没有运气。我需要从 Windows 主机禁用 IPv6 吗?security.debian.org 是否有其他可导航 IPv4 的网站?还有什么值得尝试的吗?
答案1
我似乎通过黑客攻击取得了成果这个答案增加了/etc/hosts
:
195.20.242.89 security.debian.org
195.20.242.89 是谁(又名http://wieck.debian.org/)?
欢迎来到 wieck!...她做事。
至少她被描述为安全镜。
(注意:我很乐意接受比我自己的更好的答案。)