gpt4 book ai didi

linux - 卡在连接到亚马逊 ec2 中的 us-west-2.ec2.archive.ubuntu.com

转载 作者:行者123 更新时间:2023-12-04 18:34:16 25 4
gpt4 key购买 nike

我正在使用亚马逊 aws ec2 实例。我创建了一个实例。我有一个 key 对,并使用它通过 ubuntu 登录。现在,我正在尝试运行 sudo apt-get update在远程服务器上。我得到的是:

ubuntu@ip-172-31-30-46:~$ sudo apt-get update
Err http://us-west-2.ec2.archive.ubuntu.com trusty InRelease

Err http://us-west-2.ec2.archive.ubuntu.com trusty-updates InRelease

Err http://us-west-2.ec2.archive.ubuntu.com trusty-backports InRelease

Err http://us-west-2.ec2.archive.ubuntu.com trusty Release.gpg
Unable to connect to us-west-2.ec2.archive.ubuntu.com:http: [IP: 54.184.254.88 80]
Err http://us-west-2.ec2.archive.ubuntu.com trusty-updates Release.gpg
Unable to connect to us-west-2.ec2.archive.ubuntu.com:http: [IP: 54.184.254.88 80]
Err http://us-west-2.ec2.archive.ubuntu.com trusty-backports Release.gpg
Unable to connect to us-west-2.ec2.archive.ubuntu.com:http: [IP: 54.184.254.88 80]
0% [Connecting to security.ubuntu.com (91.189.91.15)]

我认为互联网无法在我的服务器上运行。谷歌搜索后,我得到了以下解决方案:
Ec2 instance on AWS apt- get not working ,但它已经在我的实例中配置。请帮我解决这个问题。

最佳答案

我会建议你检查你的防火墙设置。您可能已设置拒绝所有传出连接。

sudo ufw default allow outgoing
这将允许连接到外部服务器

关于linux - 卡在连接到亚马逊 ec2 中的 us-west-2.ec2.archive.ubuntu.com,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34973953/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com