Não é possível iniciar a conexão com archive.ubuntu.com:80 (2001:67c:1360:8001::24),A rede está inacessível) [IP: 91.189.88.142 80

Não é possível iniciar a conexão com archive.ubuntu.com:80 (2001:67c:1360:8001::24),A rede está inacessível) [IP: 91.189.88.142 80

Acabei de fazer uma nova instalação no Linux Mint 20, mas esse problema também estava presente no Linux Mint 19.3. Cada vez que tento fazer um apt-get updateou apt-get upgradeaté mesmo baixar um software do gerenciador de software, recebo um erro. A mesma coisa aconteceu quando tentei atualizar o que o gerenciador de atualização recomendou.

Descobri que posso atualizar ou atualizar se continuar executando o comando sudo apt-get update/upgradeapós cada tentativa fracassada. Como cada atualização/upgrade para em uma determinada porcentagem, quando executo o comando novamente ele continua a partir dessa mesma porcentagem e ao fazer a atualização/upgrade algumas vezes ele finalmente é concluído.

Este é o erro que recebo quando tento baixar o VLC do gerenciador de software. Diz primeiro:

Failed to download package files
Check your Internet connection.

E os detalhes são:

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]

...e assim por diante.

Os dois valores de erro específicos de erro que aparecem em todos os lugares são 2001:67c:1360:8001::23e 91.189.88.152. As fontes de software que minhas máquinas usam atualmente são:

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

Tentei mudar as fontes focais para muitas fontes diferentes, mas sem sucesso. E até baguncei os source.listarquivos presentes /etc/apt/source.list.dantes e tive que instalar o Linux de novo devido a muitos problemas. Então eu realmente não sei o que fazer aqui e encontrei muitos outros com o mesmo problema.

Responder1

Parece uma pilha IPv6 mal configurada. O Linux pensa que tem IPv6 e tenta usá-lo (prefere, na verdade) para se conectar.

Você pode forçar apt-geto uso da adição de IPv4 -o Acquire::ForceIPv4=true. Por exemplo:

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

Se você quiser tornar a opção permanente, você pode adicioná-la a um arquivo /etc/apt/apt.conf.d/, por exemplo, dentro de /etc/apt/apt.conf.d/99only-ipv4:

Acquire::ForceIPv4 "true";

informação relacionada