我一直在尝试更新我的 Ubuntu 20.04 服务器并收到此信息:
mike@:~$ sudo apt update
Err:1 http://za.archive.ubuntu.com/ubuntu focal InRelease
Could not connect to za.archive.ubuntu.com:80 (197.155.77.2). - connect (111: Connection refused) Could not connect to za.archive.ubuntu.com:80 (2c0f:fe40:8001:10::2). - connect (101: Network is unreachable)
Err:2 http://za.archive.ubuntu.com/ubuntu focal-updates InRelease
Unable to connect to za.archive.ubuntu.com:http:
Err:3 http://za.archive.ubuntu.com/ubuntu focal-backports InRelease
Unable to connect to za.archive.ubuntu.com:http:
Err:4 http://za.archive.ubuntu.com/ubuntu focal-security InRelease
Unable to connect to za.archive.ubuntu.com:http:
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/dists/focal/InRelease Could not connect to za.archive.ubuntu.com:80 (197.155.77.2). - connect (111: Connection refused) Could not connect to za.archive.ubuntu.com:80 (2c0f:fe40:8001:10::2). - connect (101: Network is unreachable)
W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Unable to connect to za.archive.ubuntu.com:http:
W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Unable to connect to za.archive.ubuntu.com:http:
W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/dists/focal-security/InRelease Unable to connect to za.archive.ubuntu.com:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.
有人知道发生了什么事吗?只有南非档案馆才有吗?已经两天了。谢谢。
答案1
看起来档案za.archive.ubuntu.com
目前已关闭。
我已经使用这两种方法自己解决了这个问题:
/etc/apt/sources.list
按照@ByronTaaka 的评论进行编辑。- 使用apt-select如文章所述如何找到最佳的 Ubuntu APT 存储库镜像。
使用方法 2,它修改/etc/apt/sources.list
并指向所有引用http://ftp.leg.uct.ac.za。我住在开普敦,所以这对我来说很方便。
答案2
za.archive.ubuntu.com 已恢复。在此期间,我停止使用镜像,但发现有几个镜像仍能继续使用。其中包括:mirror.wiru.co.za 和 ftp.leg.uct.ac.za(如 Jonathan 在上面提到的)。
我无法解释到底发生了什么,或者为什么它停机了这么久。