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 個月前檢視次數 203 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南