新安装的 Ubuntu 18.04.5 服务器-无法执行 apt 更新

新安装的 Ubuntu 18.04.5 服务器-无法执行 apt 更新

之前安装过 Ubuntu 18.04 服务器,我以为使用该sudo apt update命令不会有问题。但是我最近安装的 Ubuntu 18.04.5 在使用该apt命令安装更新时出现问题,它似乎对允许标准软件包安装/更新/升级的任何程序都不起作用。

随后,我修改了我的 sources.list 文件以尝试安装 webmin,这确实允许我从该包的源站点下载。

然后,我尝试 ping文件sources.list中的站点sources.list,并成功从这些站点返回 ping 消息。

下载 webmin 软件包后,我仍然无法成功使用该sudo apt update命令。我收到以下消息:

$ sudo apt update
Err:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
  Could not connect to banjo.canonical.com:80 (91.189.91.38), connection timed out Could not connect to kazooie.canonical.com:80 (91.189.91.39), connection timed out Unable to connect to us.archive.ubuntu.com:http:
Err:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
  Unable to connect to us.archive.ubuntu.com:http:
Err:3 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
  Unable to connect to us.archive.ubuntu.com:http:
Err:4 http://us.archive.ubuntu.com/ubuntu bionic-security InRelease
  Unable to connect to us.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://us.archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Could not connect to banjo.canonical.com:80 (91.189.91.38), connection timed out Could not connect to kazooie.canonical.com:80 (91.189.91.39), connection timed out Unable to connect to us.archive.ubuntu.com:http:
...
W: Some index files failed to download. They have been ignored, or old ones used instead.

我想知道是否有人遇到过这个问题并且是否有人对解决方案有建议?

答案1

这个问题影响了我的整个网络,当我的 ISP 重新启动与我的服务相关的设备时才得到解决。

认为这个问题已经解决,不是 Ubuntu 的问题,而是我的 ISP 的问题。

感谢那些试图帮助我的人。

相关内容