archive.ubuntu.com:80 (2001:67c:1360:8001::24) への接続を開始できません。ネットワークに到達できません) [IP: 91.189.88.142 80

archive.ubuntu.com:80 (2001:67c:1360:8001::24) への接続を開始できません。ネットワークに到達できません) [IP: 91.189.88.142 80

そこで、Linux Mint 20 に新規インストールしたのですが、この問題は Linux Mint 19.3 でも発生していました。ソフトウェア マネージャーからソフトウェアを実行したりapt-get updateダウンロードapt-get upgradeしようとするたびに、エラーが発生します。更新マネージャーが推奨したものを更新しようとしたときも同じことが起こりました。

失敗するたびにコマンドを実行し続けると、アップグレードまたは更新できることがわかりましたsudo apt-get update/upgrade。各更新/アップグレードは特定の割合で停止するため、コマンドを再度実行すると、同じ割合から続行され、更新/アップグレードを数回実行すると最終的に完了します。

これは、ソフトウェア マネージャーから VLC をダウンロードしようとしたときに表示されるエラーです。最初に次のように表示されます。

Failed to download package files
Check your Internet connection.

詳細は以下の通りです。

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]

...等々。

どこにでも現れる error の 2 つの特定のエラー値は、2001:67c:1360:8001::23とです91.189.88.152。現在私のマシンが使用しているソフトウェア ソースは次のとおりです。

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

Focal ソースをさまざまなものに変更してみましたが、成功しませんでした。さらに、以前source.list存在していたファイルを台無しに/etc/apt/source.list.dし、多くの問題のために Linux を新規インストールする必要がありました。そのため、ここで何をすべきか本当にわかりませんが、同じ問題を抱えている人がたくさんいることがわかりました。

答え1

これは IPv6 スタックの設定ミスのようです。Linux は IPv6 があると考え、接続に IPv6 を使用しようとします (実際には IPv6 を優先します)。

apt-getを追加して IPv4 の使用を強制することができます-o Acquire::ForceIPv4=true。例:

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

オプションを永続的にしたい場合は、 内のファイルに追加します/etc/apt/apt.conf.d/。たとえば、 内に追加します/etc/apt/apt.conf.d/99only-ipv4

Acquire::ForceIPv4 "true";

関連情報