
Ubuntu のパッケージマネージャ apt で日常的な更新作業の際、登録している Launchpad PPA の全てのレポジトリへのアクセスが タイムアウト になりました。ブラウザアクセスやpingに問題は無いことからサーバダウンではなく、自身の設定を疑いますがこちらにも問題は見つかりません。そしてISPを変えると解消することが分かり、ISPとその後ろにいるIXが怪しく思えたのでした。
apt updateでLaunchPad PPA全滅
1 2 3 4 5 6 7 8 |
$ uname -a Linux VPCSA26GGu 4.15.0-175-generic #184-Ubuntu SMP Thu Mar 24 17:48:36 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.6 LTS Release: 18.04 Codename: bionic |
Ubuntu 18.04デスクトップでいつものように始業の通過儀礼でapt updateを実行したところ、大量のタイムアウトエラーがLaunchpad PPAレポジトリに対して発生しました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
$ sudo apt-get update ヒット:1 http://dl.google.com/linux/chrome/deb stable InRelease ヒット:2 https://repo.skype.com/deb stable InRelease ヒット:3 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease ヒット:4 https://linux.teamviewer.com/deb stable InRelease ヒット:5 http://archive.ubuntulinux.jp/ubuntu bionic InRelease ヒット:6 http://archive.ubuntulinux.jp/ubuntu-ja-non-free bionic InRelease 取得:7 http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu bionic InRelease [15.9 kB] ヒット:8 http://jp.archive.ubuntu.com/ubuntu bionic InRelease ヒット:9 http://archive.canonical.com/ubuntu bionic InRelease 取得:10 https://dl.cloudsmith.io/public/balena/etcher/deb/debian bullseye InRelease [5,067 B] ヒット:11 http://jp.archive.ubuntu.com/ubuntu bionic-updates InRelease 取得:12 http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu bionic InRelease [15.9 kB] ヒット:13 http://jp.archive.ubuntu.com/ubuntu bionic-backports InRelease ヒット:14 http://jp.archive.ubuntu.com/ubuntu bionic-security InRelease ヒット:15 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease 取得:16 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic InRelease [15.4 kB] 取得:17 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic InRelease [15.4 kB] 取得:19 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic InRelease [15.9 kB] エラー:20 http://ppa.launchpad.net/openshot.developers/ppa/ubuntu bionic InRelease ppa.launchpad.net:80 (91.189.95.85) へ接続できませんでした。接続がタイムアウトしました [IP: 91.189.95.85 80] エラー:21 http://ppa.launchpad.net/ozmartian/apps/ubuntu bionic InRelease ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:22 http://ppa.launchpad.net/savoury1/digikam/ubuntu bionic InRelease ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:23 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:18 http://ppa.launchpad.net/jonmagon/kdiskmark/ubuntu bionic InRelease ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] 無視:24 http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu bionic/main i386 Packages 無視:25 http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu bionic/main amd64 Packages 無視:26 http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu bionic/main Translation-en 無視:27 http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu bionic/main i386 Packages 無視:28 http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu bionic/main amd64 Packages 無視:29 http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu bionic/main Translation-en 無視:30 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main Sources 無視:31 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main amd64 Packages 無視:32 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main i386 Packages 無視:33 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main Translation-en 無視:34 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main Sources 無視:35 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main i386 Packages 無視:36 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main amd64 Packages 無視:37 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main Translation-en 無視:38 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main Sources 無視:39 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main i386 Packages 無視:40 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main amd64 Packages 無視:41 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main Translation-en 無視:24 http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu bionic/main i386 Packages 無視:25 http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu bionic/main amd64 Packages 無視:26 http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu bionic/main Translation-en 無視:27 http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu bionic/main i386 Packages 無視:28 http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu bionic/main amd64 Packages 無視:29 http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu bionic/main Translation-en 無視:30 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main Sources 無視:31 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main amd64 Packages 無視:32 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main i386 Packages 無視:33 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main Translation-en 無視:34 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main Sources 無視:35 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main i386 Packages 無視:36 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main amd64 Packages 無視:37 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main Translation-en 無視:38 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main Sources 無視:39 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main i386 Packages 無視:40 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main amd64 Packages 無視:41 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main Translation-en 無視:24 http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu bionic/main i386 Packages 無視:25 http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu bionic/main amd64 Packages 無視:26 http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu bionic/main Translation-en 無視:27 http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu bionic/main i386 Packages 無視:28 http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu bionic/main amd64 Packages 無視:29 http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu bionic/main Translation-en 無視:30 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main Sources 無視:31 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main amd64 Packages 無視:32 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main i386 Packages 無視:33 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main Translation-en 無視:34 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main Sources 無視:35 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main i386 Packages 無視:36 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main amd64 Packages 無視:37 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main Translation-en 無視:38 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main Sources 無視:39 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main i386 Packages 無視:40 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main amd64 Packages 無視:41 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main Translation-en エラー:24 http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu bionic/main i386 Packages ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:25 http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu bionic/main amd64 Packages ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:26 http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu bionic/main Translation-en ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:27 http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu bionic/main i386 Packages ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:28 http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu bionic/main amd64 Packages ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:29 http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu bionic/main Translation-en ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:30 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main Sources ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:31 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main amd64 Packages ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:32 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main i386 Packages ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:33 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic/main Translation-en ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:34 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main Sources ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:35 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main i386 Packages ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:36 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main amd64 Packages ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:37 http://ppa.launchpad.net/japanese-testers/mozc/ubuntu bionic/main Translation-en ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:38 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main Sources ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:39 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main i386 Packages ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:40 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main amd64 Packages ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] エラー:41 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu bionic/main Translation-en ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] 83.6 kB を 33秒 で取得しました (2,507 B/s) パッケージリストを読み込んでいます... 完了 W: http://ppa.launchpad.net/jonmagon/kdiskmark/ubuntu/dists/bionic/InRelease の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/openshot.developers/ppa/ubuntu/dists/bionic/InRelease の取得に失敗しました ppa.launchpad.net:80 (91.189.95.85) へ接続できませんでした。接続がタイムアウトしました [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/ozmartian/apps/ubuntu/dists/bionic/InRelease の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/savoury1/digikam/ubuntu/dists/bionic/InRelease の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/bionic/InRelease の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu/dists/bionic/main/binary-i386/Packages の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu/dists/bionic/main/binary-amd64/Packages の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu/dists/bionic/main/i18n/Translation-en の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu/dists/bionic/main/binary-i386/Packages の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu/dists/bionic/main/binary-amd64/Packages の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/daniel-marynicz/filemanager-actions/ubuntu/dists/bionic/main/i18n/Translation-en の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu/dists/bionic/main/source/Sources の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu/dists/bionic/main/binary-amd64/Packages の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu/dists/bionic/main/binary-i386/Packages の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu/dists/bionic/main/i18n/Translation-en の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/japanese-testers/mozc/ubuntu/dists/bionic/main/source/Sources の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/japanese-testers/mozc/ubuntu/dists/bionic/main/binary-i386/Packages の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/japanese-testers/mozc/ubuntu/dists/bionic/main/binary-amd64/Packages の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/japanese-testers/mozc/ubuntu/dists/bionic/main/i18n/Translation-en の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu/dists/bionic/main/source/Sources の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu/dists/bionic/main/binary-i386/Packages の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu/dists/bionic/main/binary-amd64/Packages の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu/dists/bionic/main/i18n/Translation-en の取得に失敗しました ppa.launchpad.net:http へ接続できません: [IP: 91.189.95.85 80] W: いくつかのインデックスファイルのダウンロードに失敗しました。これらは無視されるか、古いものが代わりに使われます。 |
それならと、リトライやタイムアウトの数値を増やしてみたり、
1 |
$ sudo apt update --option Acquire::Retries=100 --option Acquire::http::Timeout="60" |
IPv6が悪さをするという例もネット上では散見されることから、IPv4使うことを明示的に指定したり
1 |
$ sudo apt -o Acquire::ForceIPv4=true update |
してみるも、所詮は付け刃な方策で状況が好転するはずもありません。もちろんLaunchpadウェブサイトへのアクセスや、ppa.launchpad.netへのping応答に問題は有りません。
Launchpad PPA以外のレポジトリは完走
問題を切り分ける為に一時的にLaunchpadにあるレポジトリを無効にようと思うのですが、レポジトリ毎に /etc/apt/source.list.d/ 以下に個別ファイルとして存在していることが多いので、ターミナルで一つ一つ編集するのは地味に面倒です。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
$ ls -l /etc/apt/sources.list.d -rw-r--r-- 1 root root 437 3月 31 08:28 balena-etcher.list -rw-r--r-- 1 root root 150 3月 31 08:28 bashtop-monitor-ubuntu-bashtop-bionic.list -rw-r--r-- 1 root root 174 3月 31 08:28 daniel-marynicz-ubuntu-filemanager-actions-bionic.list -rw-r--r-- 1 root root 170 3月 31 08:28 danielrichter2007-ubuntu-grub-customizer-xenial.list -rw-r--r-- 1 root root 68 3月 31 08:28 google.list -rw-r--r-- 1 root root 86 3月 31 08:28 home:IBBoard:cawbird.list -rw-r--r-- 1 root root 146 3月 31 08:28 japanese-testers-ubuntu-mozc.list -rw-r--r-- 1 root root 140 3月 31 08:28 jonmagon-ubuntu-kdiskmark-bionic.list -rw-r--r-- 1 root root 170 3月 31 08:28 kasra-mp-ubuntu-ubuntu-indicator-weather.list -rw-r--r-- 1 root root 166 3月 31 08:28 openshot_developers-ubuntu-ppa-bionic.list -rw-r--r-- 1 root root 132 3月 31 08:28 ozmartian-ubuntu-apps-bionic.list -rw-r--r-- 1 root root 0 3月 31 08:28 savoury1-ubuntu-digikam-bionic.list -rw-r--r-- 1 root root 56 3月 31 08:28 skype-stable.list -rw-r--r-- 1 root root 1201 3月 31 08:28 teamviewer.list -rw-r--r-- 1 root root 397 3月 31 08:28 ubuntu-ja.list -rw-r--r-- 1 root root 136 3月 31 08:28 webupd8team-ubuntu-java-xenial.list |
システム設定( unity-control-center )の中にある「ソフトウェアとアップデート」( software-properties-gtk )にある「他のソフトウェア」項を使えば、一元管理が可能です。
保持しているキャッシュを削除してから、
1 2 |
$ sudo apt clean $ sudo rm -rf /var/lib/apt/lists/* |
apt update を実行してみるとあっという間に完走します。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
$ sudo apt update 取得:1 http://dl.google.com/linux/chrome/deb stable InRelease 取得:2 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease 取得:3 https://linux.teamviewer.com/deb stable InRelease 取得:4 https://repo.skype.com/deb stable InRelease 取得:5 http://archive.ubuntulinux.jp/ubuntu bionic InRelease 取得:6 http://archive.ubuntulinux.jp/ubuntu-ja-non-free bionic InRelease 取得:7 http://archive.canonical.com/ubuntu bionic InRelease 取得:8 https://dl.cloudsmith.io/public/balena/etcher/deb/debian bullseye InRelease [5,067 B] 取得:9 http://download.opensuse.org/repositories/home:/IBBoard:/cawbird/xUbuntu_18.04 InRelease 取得:10 http://jp.archive.ubuntu.com/ubuntu bionic InRelease 取得:11 https://dl.cloudsmith.io/public/balena/etcher/deb/ubuntu bionic InRelease [5,063 B] 取得:12 http://jp.archive.ubuntu.com/ubuntu bionic-updates InRelease 取得:13 http://jp.archive.ubuntu.com/ubuntu bionic-backports InRelease 取得:14 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease 取得:15 http://jp.archive.ubuntu.com/ubuntu bionic-security InRelease 10.1 kB を 3秒 で取得しました (3,608 B/s) パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 アップグレードできるパッケージが 1 個あります。表示するには 'apt list --upgradable' を実行してください。 |
しかしここへ1つでもLaunchpad PPAのレポジトリを加えると、高確率でそのレポジトリがタイムアウトになることが分かりました(たまに完走することがある)。
インターネット接続方法を変えると完走
当初は鍵の不具合を疑いインポートし直したりで数時間費やしますが、そもそも「たまに完走するときがある」ところから、次第に疑惑の眼はネットワークへ。自宅のISPは香港大手のHKTで、家庭向け1000Mファイバーが来ています。終端装置とルータを再起動してもタイムアウトは解消しないので、試しにスマホのWiFiホットスポット(キャリアは3香港)に繋いでみると、何度試行してもLaunchpad PPAレポジトリがタイムアウトにならなくなりました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
$ sudo apt update 取得:1 http://hk.mirrors.thegigabit.com/ubuntu bionic InRelease [242 kB] 取得:2 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates InRelease [88.7 kB] 取得:3 http://hk.mirrors.thegigabit.com/ubuntu bionic-backports InRelease [74.6 kB] 取得:4 http://hk.mirrors.thegigabit.com/ubuntu bionic-security InRelease [88.7 kB] 取得:5 http://hk.mirrors.thegigabit.com/ubuntu bionic/main amd64 Packages [1,019 kB] 取得:6 https://dl.cloudsmith.io/public/balena/etcher/deb/ubuntu bionic InRelease [5,063 B] 取得:7 https://ppa.launchpadcontent.net/openshot.developers/ppa/ubuntu bionic InRelease [15.4 kB] 取得:8 http://hk.mirrors.thegigabit.com/ubuntu bionic/main i386 Packages [1,007 kB] 取得:9 http://hk.mirrors.thegigabit.com/ubuntu bionic/main Translation-en [516 kB] 取得:10 https://dl.cloudsmith.io/public/balena/etcher/deb/ubuntu bionic/main i386 Packages [1,233 B] 取得:11 http://hk.mirrors.thegigabit.com/ubuntu bionic/main Translation-ja [266 kB] 取得:12 http://hk.mirrors.thegigabit.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB] 取得:13 https://ppa.launchpadcontent.net/openshot.developers/ppa/ubuntu bionic/main i386 Packages [3,708 B] 取得:14 http://hk.mirrors.thegigabit.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB] 取得:15 https://dl.cloudsmith.io/public/balena/etcher/deb/ubuntu bionic/main amd64 Packages [1,234 B] 取得:16 http://hk.mirrors.thegigabit.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB] 取得:17 http://hk.mirrors.thegigabit.com/ubuntu bionic/restricted i386 Packages [9,156 B] 取得:18 http://hk.mirrors.thegigabit.com/ubuntu bionic/restricted amd64 Packages [9,184 B] 取得:19 http://hk.mirrors.thegigabit.com/ubuntu bionic/restricted Translation-en [3,584 B] 取得:20 http://hk.mirrors.thegigabit.com/ubuntu bionic/universe amd64 Packages [8,570 kB] 取得:21 https://ppa.launchpadcontent.net/openshot.developers/ppa/ubuntu bionic/main amd64 Packages [3,716 B] 取得:22 https://ppa.launchpadcontent.net/openshot.developers/ppa/ubuntu bionic/main Translation-en [892 B] 取得:23 http://hk.mirrors.thegigabit.com/ubuntu bionic/universe i386 Packages [8,531 kB] 取得:24 http://hk.mirrors.thegigabit.com/ubuntu bionic/universe Translation-en [4,941 kB] 取得:25 http://hk.mirrors.thegigabit.com/ubuntu bionic/universe Translation-ja [1,140 kB] 取得:26 http://hk.mirrors.thegigabit.com/ubuntu bionic/universe amd64 DEP-11 Metadata [3,287 kB] 取得:27 http://hk.mirrors.thegigabit.com/ubuntu bionic/universe DEP-11 48x48 Icons [2,151 kB] 取得:28 http://hk.mirrors.thegigabit.com/ubuntu bionic/universe DEP-11 64x64 Icons [8,420 kB] 取得:29 http://hk.mirrors.thegigabit.com/ubuntu bionic/multiverse i386 Packages [144 kB] 取得:30 http://hk.mirrors.thegigabit.com/ubuntu bionic/multiverse amd64 Packages [151 kB] 取得:31 http://hk.mirrors.thegigabit.com/ubuntu bionic/multiverse Translation-ja [8,432 B] 取得:32 http://hk.mirrors.thegigabit.com/ubuntu bionic/multiverse Translation-en [108 kB] 取得:33 http://hk.mirrors.thegigabit.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [49.7 kB] 取得:34 http://hk.mirrors.thegigabit.com/ubuntu bionic/multiverse DEP-11 48x48 Icons [8,931 B] 取得:35 http://hk.mirrors.thegigabit.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [225 kB] 取得:36 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/main amd64 Packages [2,498 kB] 取得:37 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/main i386 Packages [1,446 kB] 取得:38 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/main Translation-en [469 kB] 取得:39 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [297 kB] 取得:40 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [83.0 kB] 取得:41 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [154 kB] 取得:42 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/restricted amd64 Packages [702 kB] 取得:43 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/restricted i386 Packages [32.4 kB] 取得:44 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/restricted Translation-en [96.4 kB] 取得:45 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/universe i386 Packages [1,603 kB] 取得:46 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/universe amd64 Packages [1,799 kB] 取得:47 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/universe Translation-en [389 kB] 取得:48 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [301 kB] 取得:49 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [229 kB] 取得:50 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [507 kB] 取得:51 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/multiverse amd64 Packages [24.8 kB] 取得:52 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/multiverse i386 Packages [11.2 kB] 取得:53 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/multiverse Translation-en [6,012 B] 取得:54 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B] 取得:55 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/multiverse DEP-11 48x48 Icons [29 B] 取得:56 http://hk.mirrors.thegigabit.com/ubuntu bionic-updates/multiverse DEP-11 64x64 Icons [2,638 B] 取得:57 http://hk.mirrors.thegigabit.com/ubuntu bionic-backports/main amd64 Packages [10.8 kB] 取得:58 http://hk.mirrors.thegigabit.com/ubuntu bionic-backports/main i386 Packages [10.8 kB] 取得:59 http://hk.mirrors.thegigabit.com/ubuntu bionic-backports/main Translation-en [5,016 B] 取得:60 http://hk.mirrors.thegigabit.com/ubuntu bionic-backports/universe i386 Packages [11.6 kB] 取得:61 http://hk.mirrors.thegigabit.com/ubuntu bionic-backports/universe amd64 Packages [11.6 kB] 取得:62 http://hk.mirrors.thegigabit.com/ubuntu bionic-backports/universe Translation-en [5,864 B] 取得:63 http://hk.mirrors.thegigabit.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [9,260 B] 取得:64 http://hk.mirrors.thegigabit.com/ubuntu bionic-backports/universe DEP-11 48x48 Icons [2,809 B] 取得:65 http://hk.mirrors.thegigabit.com/ubuntu bionic-backports/universe DEP-11 64x64 Icons [3,943 B] 取得:66 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/main i386 Packages [1,137 kB] 取得:67 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/main amd64 Packages [2,143 kB] 取得:68 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/main Translation-en [376 kB] 取得:69 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [55.2 kB] 取得:70 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/main DEP-11 48x48 Icons [28.9 kB] 取得:71 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/main DEP-11 64x64 Icons [65.1 kB] 取得:72 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/restricted amd64 Packages [670 kB] 取得:73 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/restricted i386 Packages [25.7 kB] 取得:74 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/restricted Translation-en [91.3 kB] 取得:75 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/universe amd64 Packages [1,183 kB] 取得:76 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/universe i386 Packages [1,011 kB] 取得:77 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/universe Translation-en [272 kB] 取得:78 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [59.3 kB] 取得:79 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [28.4 kB] 取得:80 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [139 kB] 取得:81 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/multiverse i386 Packages [6,012 B] 取得:82 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/multiverse amd64 Packages [17.6 kB] 取得:83 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/multiverse Translation-en [3,660 B] 取得:84 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,468 B] 取得:85 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/multiverse DEP-11 48x48 Icons [29 B] 取得:86 http://hk.mirrors.thegigabit.com/ubuntu bionic-security/multiverse DEP-11 64x64 Icons [2,638 B] 60.0 MB を 21秒 で取得しました (2,791 kB/s) パッケージリストを読み込んでいます... 完了 |
接続別traceroute比較
インターネットへの接続方法に原因がありそうなことから、 traceroute でLaunchpad PPAへの経路を確認してみます。
まずは取得成功したスマホキャリア3香港のデータ通信の場合:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
$ traceroute ppa.launchpad.net traceroute to ppa.launchpad.net (91.189.95.85), 30 hops max, 60 byte packets 1 _gateway (192.168.84.232) 14.290 ms 14.273 ms 14.205 ms 2 * * * 3 10.65.90.17 (10.65.90.17) 58.193 ms 58.127 ms 58.111 ms 4 10.65.90.1 (10.65.90.1) 49.001 ms 48.990 ms 10.65.90.5 (10.65.90.5) 48.567 ms 5 * * * 6 10.65.5.234 (10.65.5.234) 271.988 ms 75.300 ms 79.030 ms 7 172.20.161.93 (172.20.161.93) 39.383 ms 172.20.161.89 (172.20.161.89) 39.193 ms 172.20.161.93 (172.20.161.93) 51.182 ms 8 172.20.162.34 (172.20.162.34) 36.687 ms 36.581 ms 36.538 ms 9 124.217.129.34 (124.217.129.34) 33.067 ms 21.052 ms 31.300 ms 10 hurricaneelectric1-lacp-100g.hkix.net (123.255.91.158) 24.071 ms 31.159 ms 28.926 ms 11 * * port-channel11.core2.sin1.he.net (184.104.198.34) 59.713 ms 12 port-channel5.core2.mrs1.he.net (184.105.65.14) 2767.297 ms * * 13 * * * 14 * port-channel7.core3.lon2.he.net (184.105.223.253) 279.072 ms 358.643 ms 15 100ge0-36.core1.lon7.he.net (184.104.196.6) 358.544 ms 358.482 ms 358.278 ms 16 swp26.annegrit.canonical.com (184.104.203.50) 222.656 ms 232.229 ms 225.729 ms 17 bond0.erlking.canonical.com (91.189.88.171) 225.731 ms 207.832 ms 217.663 ms 18 * * * 19 * * * 20 * * * |
しっかりCanonicalまで到達しているのが分かります。
続いてタイムアウトになる自宅ISPのHKT(netvigator.com)の場合:
1 2 3 4 5 6 7 8 9 10 11 12 |
$ traceroute ppa.launchpad.net traceroute to ppa.launchpad.net (91.189.95.85), 30 hops max, 60 byte packets 1 console.gl-inet.com (192.168.1.1) 1.312 ms 1.625 ms 1.637 ms 2 10.193.233.131 (10.193.233.131) 4.234 ms 10.193.232.131 (10.193.232.131) 4.736 ms 5.008 ms 3 10.193.233.149 (10.193.233.149) 14.209 ms 14.548 ms 14.516 ms 4 wtsc3a054.netvigator.com (218.102.40.54) 6.372 ms wtsc3a058.netvigator.com (218.102.40.58) 5.490 ms wtsc3a030.netvigator.com (218.102.40.30) 6.328 ms 5 10.195.41.121 (10.195.41.121) 6.273 ms 10.195.41.17 (10.195.41.17) 6.299 ms 10.195.41.113 (10.195.41.113) 6.288 ms 6 colt1-10g.hkix.net (123.255.91.14) 6.759 ms 8.140 ms 3.763 ms 7 193.114.170.193 (193.114.170.193) 204.841 ms 204.875 ms 204.851 ms 8 * * * 9 * * * 10 * * * |
ISPからHKIXへ入った先で行方知れず、ホップ数を増やして待ってみてもCanonicalへ到達する様子は有りませんでした。
翌日にはタイムアウト障害解消
エンドユーザ側ではもうどうしようもないところに原因が有ると分かったところでその日は諦めて翌朝、再度確かめてみると何も無かったかのように apt update は全レポジトリ完走するようになりました。
そしてあらためてネットワーク経路を確認してみるとHKIXの先が少し変わり、しっかりCanonicalまで到達するようになっていました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$ traceroute ppa.launchpad.net traceroute to ppa.launchpad.net (91.189.95.85), 30 hops max, 60 byte packets 1 console.gl-inet.com (192.168.1.1) 1.211 ms 1.683 ms 1.912 ms 2 10.193.232.131 (10.193.232.131) 4.823 ms 10.193.233.131 (10.193.233.131) 5.413 ms 5.935 ms 3 10.193.232.149 (10.193.232.149) 5.100 ms 10.193.233.150 (10.193.233.150) 6.167 ms 10.193.232.150 (10.193.232.150) 6.176 ms 4 wtsc3a030.netvigator.com (218.102.40.30) 6.491 ms wtsc3a014.netvigator.com (218.102.40.14) 7.837 ms wtsc3a074.netvigator.com (218.102.40.74) 7.813 ms 5 10.195.41.1 (10.195.41.1) 16.232 ms 10.195.41.17 (10.195.41.17) 7.794 ms 6.449 ms 6 colt1-10g.hkix.net (123.255.91.14) 7.769 ms 4.650 ms 4.751 ms 7 193.114.170.191 (193.114.170.191) 233.041 ms 193.114.170.193 (193.114.170.193) 233.082 ms 193.114.170.191 (193.114.170.191) 198.486 ms 8 80.169.119.221 (80.169.119.221) 198.355 ms 198.351 ms 198.353 ms 9 bond0.erlking.canonical.com (91.189.88.171) 198.384 ms 198.387 ms 198.384 ms 10 * * * 11 * * * 12 * * * |
どうやらレポジトリサーバとの疎通確認には、ブラウザや ping の他に traceroute を利用する必要もありそうです。