我在旧的 Sony 笔记本电脑上安装了 Ubuntu 16.04.6 Server LTS。我选择安装 LAMP、SSH 和实用程序。我能够通过 SSH 进入新安装的系统。但是,我没能sudo apt-get update
完成。几分钟后,我看到了以下内容:
0% [Connecting to us.archive.ubuntu.com (91.189.91.24)]
然后我的终端控制台上出现如下内容:
Err:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Could not connect to us.archive.ubuntu.com:80 (91.189.91.23), connection timed out [IP: 91.189.91.23 80]
Err:2 http://us.archive.ubuntu.com/ubuntu xenial-security InRelease
Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.23 80]
Err:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.23 80]
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Could not connect to us.archive.ubuntu.com:80 (91.189.91.23), connection timed out [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-security/InRelease Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.23 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
我从其他人遇到类似问题的帖子中尝试了几种策略,但没有一个能解决问题。
我甚至已经重新安装了系统,但问题仍然存在apt-get
。
我是否遗漏了什么或者有办法解决这个问题?
答案1
路由器对 Ubuntu 笔记本电脑定义的 IP 地址的 80 端口进行了限制,这导致Unable to connect to [IP: 91.189.91.23 80]
在尝试运行时出现错误sudo apt update
。
导致相同connection timed out
错误消息的其他原因是您的更新服务器镜像或一个或多个其他软件源(例如 PPA)的网络出现故障。