error reaching the internet.

0

so i sshed into my ubuntu ec2 instance and tried running sudo apt update but i keep receiving this error ubuntu@PublicInstance:~$ sudo apt update Ign:1 http://security.ubuntu.com/ubuntu jammy-security InRelease Ign:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu jammy InRelease Ign:3 http://us-west-2.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease Ign:4 http://us-west-2.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease Ign:1 http://security.ubuntu.com/ubuntu jammy-security InRelease Ign:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu jammy InRelease Ign:3 http://us-west-2.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease Ign:4 http://us-west-2.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease Ign:1 http://security.ubuntu.com/ubuntu jammy-security InRelease Ign:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu jammy InRelease Ign:3 http://us-west-2.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease Ign:4 http://us-west-2.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease Err:1 http://security.ubuntu.com/ubuntu jammy-security InRelease Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.81), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.82), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.83), connection timed out Could not connect to security.ubuntu.com:80 (185.125.190.36), connection timed out Err:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu jammy InRelease Cannot initiate the connection to us-west-2.ec2.archive.ubuntu.com:80 (2600:1f14:296b:3c01:a8d0:2845:e29f:7f90). - connect (101: Network is unreachable) Cannot initiate the connection to us-west-2.ec2.archive.ubuntu.com:80 (2600:1f14:296b:3c01:c7c4:1a18:4713:b945). - connect (101: Network is unreachable) Cannot initiate the connection to us-west-2.ec2.archive.ubuntu.com:80 (2600:1f14:296b:3c02:5a95:3a24:b410:4ae6). - connect

Ernest
已提问 3 个月前202 查看次数
1 回答
1

Verify that your EC2 instance's security group allows outbound HTTP (port 80) and HTTPS (port 443) traffic. If these ports are not open, it would prevent apt from reaching the package repositories.

profile picture
专家
已回答 3 个月前
profile picture
专家
已审核 3 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则