apt 更新失败,因为无法连接到 ppa.launchpad.net

apt 更新失败,因为无法连接到 ppa.launchpad.net

当我尝试使用 apt update 进行更新时,出现以下错误。

Err:10 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic InRelease
Could not connect to ppa.launchpad.net:80 (91.189.95.83), connection timed out Could not   connect to ppa.launchpad.net:80 (2001:67c:1560:8008::15), connection timed out
Err:11 http://ppa.launchpad.net/js-reynaud/kicad-5.1/ubuntu bionic InRelease
Unable to connect to ppa.launchpad.net:http:
Err:12 http://ppa.launchpad.net/tista/plata-theme/ubuntu bionic InRelease
Unable to connect to ppa.launchpad.net:http:
Err:13 http://ppa.launchpad.net/ubuntubudgie/backports/ubuntu bionic InRelease
Unable to connect to ppa.launchpad.net:http:
Err:14 http://ppa.launchpad.net/zeal-developers/ppa/ubuntu bionic InRelease
Unable to connect to ppa.launchpad.net:http:
Fetched 7,502 B in 31s (238 B/s)
Reading package lists...
Building dependency tree...
Reading state information...
1 package can be upgraded. Run 'apt list --upgradable' to see it.
W: Failed to fetch http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu/dists/bionic/InRelease  Could not connect to ppa.launchpad.net:80 (91.189.95.83), connection timed out Could not connect to ppa.launchpad.net:80 (2001:67c:1560:8008::15), connection timed out
W: Failed to fetch http://ppa.launchpad.net/js-reynaud/kicad-5.1/ubuntu/dists/bionic/InRelease  Unable to connect to ppa.launchpad.net:http:
W: Failed to fetch http://ppa.launchpad.net/tista/plata-theme/ubuntu/dists/bionic/InRelease  
Unable to connect to ppa.launchpad.net:http:
W: Failed to fetch http://ppa.launchpad.net/ubuntubudgie/backports/ubuntu/dists/bionic/InRelease  Unable to connect to ppa.launchpad.net:http:
W: Failed to fetch http://ppa.launchpad.net/zeal-developers/ppa/ubuntu/dists/bionic/InRelease  Unable to connect to ppa.launchpad.net:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.

事实上,我可以从我的网络浏览器访问这些链接,所以这一定不是服务器的问题。

我还尝试在更新时强制使用 IPV4,以查看是否是 IPV6 问题。我还尝试删除所有这些 ppa,然后再次添加它们。

答案1

当我遇到这种情况时(有时没有网络变化),我发现使用apt-get而不是apt有效。

答案2

好吧,现在我连接到大学宿舍的网络时,问题解决了。可能是 ISP 或路由器出了问题。

更新:

好的,我确实发现了这个问题,我认为最好将它添加到这里的讨论中,以便其他人可能会发现它有用。

问题是我家的互联网调制解调器没有启用 ipv6。所以我进入调制解调器配置 ip 地址并启用它,我家的问题也解决了。

您的 ISP 也可能不支持 IPv6,印度的 BSNL 就是这种情况,因此也要注意这一点。

相关内容