Pop!_os 未正确连接到 https://archive.ubuntu.com/ubuntu focus InRelease

Pop!_os 未正确连接到 https://archive.ubuntu.com/ubuntu focus InRelease

Pop!_os 想要更新软件包,但无法正确获取更新https://archive.ubuntu.com/ubuntu焦点释放

详细错误:

Failed to fetch https://archive.ubuntu.com/ubuntu/dists/focal/InRelease
Could not connect to archive.ubuntu.com:443 (91.189.88.152). - connect (111: Connection refused)
Cannot initiate the connection to archive.ubuntu.com:443 (2001:67c:1360:8001::24). - connect (101: Network is unreachable)
Could not connect to archive.ubuntu.com:443 (91.189.88.142). - connect (111: Connection refused)
Cannot initiate the connection to archive.ubuntu.com:443 (2001:67c:1360:8001::23). - connect (101: Network is unreachable)
Cannot initiate the connection to archive.ubuntu.com:443 (2001:67c:1562::18). - connect (101: Network is unreachable)
Cannot initiate the connection to archive.ubuntu.com:443 (2001:67c:1562::15). - connect (101: Network is unreachable)

如何修复此错误以及导致该错误的原因是什么?

答案1

将存储库添加到 resources.list 时,您添加了 URL 以使用 安全连接到 Ubuntu 存储库https,但存储库不支持通过 TLS 进行安全连接。他们认为所有包都已经签名就足够了,所以你应该使用http它。

这并不意味着 apt 不支持通过 TLS 连接,但该特定存储库无论如何都不支持 TLS 连接。您可以通过在浏览器中尝试该 URL 来验证它。

相关内容