在 Ubuntu 16.04 上运行 sudo apt-get update 时出现“101:网络不可达”错误

在 Ubuntu 16.04 上运行 sudo apt-get update 时出现“101:网络不可达”错误

我启动了一个 EC2 Ubuntu 16.04 服务器。它包含在连接到私有 VPN 的 VPC 中。要通过 SSH 进入服务器,您必须先连接到该 VPN(该 VPN 也位于 AWS 上),然后才能访问服务器。设置好一切并开始配置服务器后,我发现 sudo apt-get update 没有安装任何更新,并且出现以下错误:

ubuntu@private-ip:~$ sudo apt-get update 错误:1http://eu-west-1.ec2.archive.ubuntu.com/ubuntuxenial InRelease 无法连接到 eu-west-1.ec2.archive.ubuntu.com:80 (IP),连接超时 [IP] 错误:2http://eu-west-1.ec2.archive.ubuntu.com/ubuntuxenial-updates InRelease 无法连接到 eu-west-1.ec2.archive.ubuntu.com:http: [IP] 错误:3http://eu-west-1.ec2.archive.ubuntu.com/ubuntuxenial-backports InRelease 无法连接到 eu-west-1.ec2.archive.ubuntu.com:http: [IP] 错误:4http://security.ubuntu.com/ubuntuxenial-security InRelease 无法启动与 security.ubuntu.com:80 () 的连接。- 连接 (101: 网络不可达) [IP] 正在读取软件包列表... 完成 W: 获取失败http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/dists/xenial/InRelease 无法连接到 eu-west-1.ec2.archive.ubuntu.com:80 (IP),连接超时 [IP] W:无法获取http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease 无法连接到 eu-west-1.ec2.archive.ubuntu.com:http: [IP] W: 无法获取http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease 无法连接到 eu-west-1.ec2.archive.ubuntu.com:http: [IP] W: 无法获取http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease 无法启动与 security.ubuntu.com:80 () 的连接。- connect (101: 网络不可达) [IP] W: 某些索引文件下载失败。它们已被忽略,或使用旧文件代替。

我也尝试安装 Apache,但出现了类似的错误。请问可能是什么问题?

相关内容