在 Ubuntu 20.04 下,我遇到了经常被报告的
Err:10 http://dl.google.com/linux/chrome/deb stable InRelease
Cannot initiate the connection to dl.google.com:80 (2800:3f0:4002:802::200e). - connect (101: Network is unreachable) Could not connect to dl.google.com:80 (172.217.172.78), connection timed out
Reading package lists... Done
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease Cannot initiate the connection to dl.google.com:80 (2800:3f0:4002:802::200e). - connect (101: Network is unreachable) Could not connect to dl.google.com:80 (172.217.172.78), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
通常的解决方案不适用,因为我已经配置了 64 位 chrome:
$ cat /etc/apt/sources.list.d/google-chrome.list
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
我以为我可能按错了键,所以我尝试了(參考)
$ curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0
curl: (7) Failed to connect to packages.cloud.google.com port 443: Connection timed out
gpg: no valid OpenPGP data found.
这是唯一失败的 repo。我没有找到导致问题的其他潜在原因/解决方案。
我该如何解决这个问题?
答案1
显然(对我来说很奇怪),罪魁祸首是我的路由器中的 URL 过滤器http://www.youtube.com
。