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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ