![archive.ubuntu.com:80 (2001:67c:1360:8001::24) への接続を開始できません。ネットワークに到達できません) [IP: 91.189.88.142 80](https://rvso.com/image/178483/archive.ubuntu.com%3A80%20(2001%3A67c%3A1360%3A8001%3A%3A24)%20%E3%81%B8%E3%81%AE%E6%8E%A5%E7%B6%9A%E3%82%92%E9%96%8B%E5%A7%8B%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF%E3%81%AB%E5%88%B0%E9%81%94%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93)%20%5BIP%3A%2091.189.88.142%2080.png)
そこで、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";