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
preguntada hace 3 meses202 visualizaciones
1 Respuesta
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
EXPERTO
respondido hace 3 meses
profile picture
EXPERTO
revisado hace 3 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas