--重复
apt-get 卡在 0 [正在连接到 us.archive.ubuntu.com]
--已解决,与上面的链接相同......
一般环境(两周前的新 ISP‘web-pass.com’)ubuntu 12.04 没有本地 DNS 缓存(配置条目数 =0)
问题
apt-get update 不好,挂断在下面的 repo addr 上......
[Connecting to us.archive.ubuntu.com (2001:67c:1562::15)] [Connecting to security.ubuntu.com (2001:67c:1562::15)
鉴于下面我的系统的诊断,我不明白该问题是什么(为什么 apt-get 看不到/连接到应该可以访问的 repo??
rob@ ~$ nmcli dev list iface eth0 | grep IP4
IP4.ADDRESS[1]: ip = 100.65.108.17/23, gw = 100.65.108.1
IP4.DNS[1]: 208.80.68.212
IP4.DNS[2]: 204.14.152.2
IP4.DNS[3]: 204.14.152.5
IP4.DOMAIN[1]: web-pass.com
因此从上面列出的第一个 dns 条目获取 repo...
rob@ ~$ dig -t a us.archive.ubuntu.com @208.80.68.212
; <<>> DiG 9.8.1-P1 <<>> -t a us.archive.ubuntu.com @208.80.68.212
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20474
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 4
;; QUESTION SECTION:
;us.archive.ubuntu.com. IN A
;; ANSWER SECTION:
us.archive.ubuntu.com. 10 IN A 91.189.91.24
us.archive.ubuntu.com. 10 IN A 91.189.91.13
us.archive.ubuntu.com. 10 IN A 91.189.91.14
us.archive.ubuntu.com. 10 IN A 91.189.91.15
us.archive.ubuntu.com. 10 IN A 91.189.91.23
;; AUTHORITY SECTION:
ubuntu.com. 3402 IN NS ns4.p27.dynect.net.
ubuntu.com. 3402 IN NS ns2.p27.dynect.net.
ubuntu.com. 3402 IN NS ns3.p27.dynect.net.
ubuntu.com. 3402 IN NS ns1.p27.dynect.net.
;; ADDITIONAL SECTION:
ns1.p27.dynect.net. 2123 IN A 208.78.70.27
ns2.p27.dynect.net. 2095 IN A 204.13.250.27
ns3.p27.dynect.net. 2095 IN A 208.78.71.27
ns4.p27.dynect.net. 2123 IN A 204.13.251.27
为什么在对来自 'ns_n.webpass.net' 的第一个 dns 条目发出的 'dig' 命令显示正常时,连接到 ubuntu repo 时会出现问题?
我假设上面的是 IPv4(IP6 是新手)...这可能是我的问题。
下面的 eth0 的 ifconfig 似乎指示 IP6......
eth0 Link encap:Ethernet HWaddr e8:03:9a:b5:d2:1c
inet addr:100.65.108.17 Bcast:100.65.109.255 Mask:255.255.254.0
inet6 addr: 2604:5500:f:69:ea03:9aff:feb5:d21c/64 Scope:Global
inet6 addr: fe80::ea03:9aff:feb5:d21c/64 Scope:Link
inet6 addr: 2604:5500:f:69:f946:f08:1a94:4a23/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:617023 errors:0 dropped:0 overruns:0 frame:0
TX packets:313902 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:657715484 (657.7 MB) TX bytes:68766408 (68.7 MB)
答案1
您是否尝试过这个:
sudo -i
sudo apt-get update --fix-missing
然后进入更新管理器,修复损坏的包,这样它可能会正常工作。