No se puede iniciar la conexión a archive.ubuntu.com:80 (2001:67c:1360:8001::24), la red es inaccesible) [IP: 91.189.88.142 80

No se puede iniciar la conexión a archive.ubuntu.com:80 (2001:67c:1360:8001::24), la red es inaccesible) [IP: 91.189.88.142 80

Acabo de realizar una nueva instalación de Linux Mint 20, pero este problema también estaba presente en Linux Mint 19.3. Cada vez que intento hacer apt-get updateo apt-get upgradeincluso descargar software desde el administrador de software, aparece un error. Lo mismo sucedió cuando intenté actualizar lo que recomendaba el administrador de actualizaciones.

Descubrí que puedo actualizar o actualizar si sigo ejecutando el comando sudo apt-get update/upgradedespués de cada intento fallido. Como cada actualización/mejora se detiene en un cierto porcentaje, cuando ejecuto el comando nuevamente continúa desde ese mismo porcentaje y al realizar la actualización/mejora varias veces finalmente se completa.

Este es el error que aparece cuando intento descargar VLC desde el administrador de software. Primero dice:

Failed to download package files
Check your Internet connection.

Y los detalles son:

Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/s/sdl-image1.2/libsdl-image1.2_1.2.12-12_amd64.deb Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out [IP: 91.189.88.142 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/s/sidplay-libs/libsidplay2_2.1.1-15ubuntu2_amd64.deb Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 91.189.88.142 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/libs/libspatialaudio/libspatialaudio0_0.3.0+git20180730+dfsg1-2build1_amd64.deb Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 91.189.88.142 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/s/srt/libsrt1_1.4.0-1build1_amd64.deb Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 91.189.88.142 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/libs/libssh2/libssh2-1_1.8.0-2.1build1_amd64.deb Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 91.189.88.142 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/pupnp-1.8/libupnp13_1.8.4-2ubuntu2_amd64.deb Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 91.189.88.142 80]

...etcétera.

Los dos valores de error específicos de error que aparecen en todas partes son 2001:67c:1360:8001::23y 91.189.88.152. Las fuentes de software que utilizan mis máquinas en este momento son:

(Main) http://packages.linuxmint.com
(Focal) http://archive.ubuntu.com/ubuntu

Intenté cambiar las fuentes de Focal por muchas diferentes, pero no tuve éxito. E incluso me equivoqué con los source.listarchivos presentes /etc/apt/source.list.dantes y tuve que instalar Linux de nuevo debido a muchos problemas. Así que realmente no sé qué hacer aquí y he encontrado muchos otros con el mismo problema.

Respuesta1

Parece una pila IPv6 mal configurada. Linux cree que tiene IPv6 e intenta usarlo (en realidad lo prefiere) para conectarse.

Puedes forzar apt-getel uso de IPv4 agregando -o Acquire::ForceIPv4=true. Por ejemplo:

$ sudo apt-get -o Acquire::ForceIPv4=true update

Si desea que la opción sea permanente, puede agregarla a un archivo en /etc/apt/apt.conf.d/, por ejemplo, dentro de /etc/apt/apt.conf.d/99only-ipv4:

Acquire::ForceIPv4 "true";

información relacionada