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달 전201회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠