ubuntu@ubuntu:~$ sudo apt update
...
Get:4 http://jp.archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Err:4 http://jp.archive.ubuntu.com/ubuntu focal/main i386 Packages
Hash Sum mismatch
Hashes of expected file:
- Filesize:4216000 [weak]
- SHA256:5f5fa48d499be259adcdd1d6dea4e6588a3473e0290460ead99ea945b141815d
- SHA1:8f477673f5aa0ca860273e9a0ffc53515baa1032 [weak]
- MD5Sum:021fb704764554808a9ec3b18e16599e [weak]
Hashes of received file:
- SHA256:4f406937d7384fd444d236fbf9bc6efd3689c56a27adce332cf302a7b10b3467
- SHA1:4b0bf940193a7714309c27f1326cdd2b6b87e3f1 [weak]
- MD5Sum:021fb704764554808a9ec3b18e16599e [weak]
- Filesize:4216000 [weak]
Last modification reported: Thu, 23 Apr 2020 16:40:26 +0000
Release file created at: Thu, 23 Apr 2020 17:33:17 +0000

VirtualBox 上のVM でsudo apt updatesudo apt upgrade をした際にHash Sum mismatch エラーが出力されました。MD5 は一致していますが、SHA256、SHA-1 が一致しない場合があるようです。
簡単に起こるとは考えにくいですが再現性があります。これは何に起因した事象なのでしょう。
手動でダウンロードしたファイルのハッシュ値は期待していたものでした。

2020-05-10 追記

virtualbox_ubuntu_boot_with_wsl
以下を有効にしていると、そもそも起動用ISO のチェック時にエラーが発生していました。

  • Linux 用 Windows サブシステム (Windows Subsystem for Linux)
  • 仮想マシンプラットフォーム (Virtual Machine Platform)

上記を無効にするとエラーは無くなり、Hash Sum mismatch も解決しました。
VM 初期構築時に上記を一時的に無効にすることがワークアラウンドのようです。

2020-05-28 追記

https://github.com/ktkr3d/ktkr3d.github.io/issues/1
解決策を教えていただきました。ありがとうございます!

$ sudo bash
# mkdir /etc/gcrypt
# echo all > /etc/gcrypt/hwf.deny

apt updateapt upgradeも正常に実行できました。
この事象はgcrypt20 モジュールに起因していたようです。

環境と発生状況

ソフトウェアバージョン

  • Windows 10 Insider Preview 19619.1000
  • VirtualBox 6.1.6
    • VirtualBox 6.1.6 Oracle VM VirtualBox Extension Pack
  • Hyper-V 10.0.19619.1000
  • WSL2 (Ubuntu 18.04) 導入済

発生状況

環境 Distro apt ver. OK/NG
VirtualBox on Windows 10 Ubuntu 20.04 apt 2.0.2 NG
UbuntuDDE 20.04 Beta apt 2.0.2 NG
Deepin 20 Beta apt 1.8.2 NG
Hyper-V on Windows 10 Ubuntu 20.04 apt 2.0.2 OK
UbuntuDDE 20.04 Beta apt 2.0.2 OK
物理環境 Ubuntu 20.04 apt 2.0.2 OK

調査

関連スレッド

気づき事項

  • 発生環境について
    • VirtualBox のVM で発生した
    • Hyper-V のVM や物理環境では発生しなかった
    • apt のバージョンに依存しないようです
  • 不一致箇所について
    • SHA256 だけ異なる場合があります(MD5 とSHA-1 は一致)
    • SHA256 とSHA-1 が異なる場合があります(MD5 は一致)
    • ファイルサイズは一致
    • sudo apt -d install <package name>で不一致になるのに、wget http/***/***.deb のファイルは期待されるハッシュ値になる
  • ワークアラウンド
    • sudo apt clean しても改善せず
    • sudo rm -rf /var/cache/apt/archives/* しても改善せず
    • deb ファイルをwget でダウンロードしたものは期待したハッシュ値になる
    • deb ファイルを/var/cache/apt/archives/ に格納すると正常にアップグレードできる場合がある
      $ sudo apt upgrade 2>&1 | tee upgrade.txt
      $ grep Failed upgrade.txt
      $ wget http://****/***.deb
      $ sudo cp *.deb /var/cache/apt/archives/
      $ sudo apt upgade

資料

apt update の結果

ubuntu@ubuntu:~$ export LC_ALL=en_US.UTF8
ubuntu@ubuntu:~$ sudo apt update
[sudo] password for ubuntu:
Hit:1 http://jp.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:2 http://jp.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:3 http://jp.archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Hit:13 http://security.ubuntu.com/ubuntu focal-security InRelease
Err:4 http://jp.archive.ubuntu.com/ubuntu focal/main i386 Packages
Hash Sum mismatch
Hashes of expected file:
- Filesize:4216000 [weak]
- SHA256:5f5fa48d499be259adcdd1d6dea4e6588a3473e0290460ead99ea945b141815d
- SHA1:8f477673f5aa0ca860273e9a0ffc53515baa1032 [weak]
- MD5Sum:021fb704764554808a9ec3b18e16599e [weak]
Hashes of received file:
- SHA256:4f406937d7384fd444d236fbf9bc6efd3689c56a27adce332cf302a7b10b3467
- SHA1:4b0bf940193a7714309c27f1326cdd2b6b87e3f1 [weak]
- MD5Sum:021fb704764554808a9ec3b18e16599e [weak]
- Filesize:4216000 [weak]
Last modification reported: Thu, 23 Apr 2020 16:40:26 +0000
Release file created at: Thu, 23 Apr 2020 17:33:17 +0000
Get:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Err:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages

Get:19 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 Packages [8,628 kB]
Err:19 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 Packages

Get:20 http://jp.archive.ubuntu.com/ubuntu focal/universe i386 Packages [4,642 kB]
Err:20 http://jp.archive.ubuntu.com/ubuntu focal/universe i386 Packages

Get:21 http://jp.archive.ubuntu.com/ubuntu focal/universe Translation-en [5,124 kB]
Err:21 http://jp.archive.ubuntu.com/ubuntu focal/universe Translation-en

Get:22 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 DEP-11 Metadata [3,603 kB]
Fetched 23.2 MB in 2s (10.6 MB/s)
Reading package lists... Done
E: Failed to fetch store:/var/lib/apt/lists/partial/jp.archive.ubuntu.com_ubuntu_dists_focal_main_binary-i386_Packages.xz Hash Sum mismatch
Hashes of expected file:
- Filesize:4216000 [weak]
- SHA256:5f5fa48d499be259adcdd1d6dea4e6588a3473e0290460ead99ea945b141815d
- SHA1:8f477673f5aa0ca860273e9a0ffc53515baa1032 [weak]
- MD5Sum:021fb704764554808a9ec3b18e16599e [weak]
Hashes of received file:
- SHA256:4f406937d7384fd444d236fbf9bc6efd3689c56a27adce332cf302a7b10b3467
- SHA1:4b0bf940193a7714309c27f1326cdd2b6b87e3f1 [weak]
- MD5Sum:021fb704764554808a9ec3b18e16599e [weak]
- Filesize:4216000 [weak]
Last modification reported: Thu, 23 Apr 2020 16:40:26 +0000
Release file created at: Thu, 23 Apr 2020 17:33:17 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/dists/focal/main/binary-amd64/by-hash/SHA256/7757921ff8feed9c3934a0c9936d441ba4a238bee3ea6c8c1df5cbcd43fc9861
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/dists/focal/universe/binary-amd64/by-hash/SHA256/46a746dac789bd9537aca54db1680b9dff51c248153111350382199d7d96b9d1
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/dists/focal/universe/binary-i386/by-hash/SHA256/a00e79d71544f34be89543e090ccafce943577e1a1b997780c07bb75766750b3
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/dists/focal/universe/i18n/by-hash/SHA256/a9c6ca6ce2913776bf753ae5132c7814139880784e98672525b4059c61f209dd
E: Some index files failed to download. They have been ignored, or old ones used instead.
ubuntu@ubuntu:~$

apt uprade の結果

ubuntu@ubuntu:~$ export LC_ALL=en_US.UTF8
ubuntu@ubuntu:~$ sudo apt upgrade
[sudo] password for ubuntu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-headers-5.4.0-29 linux-headers-5.4.0-29-generic
linux-image-5.4.0-29-generic linux-modules-5.4.0-29-generic
linux-modules-extra-5.4.0-29-generic
The following packages will be upgraded:
firefox firefox-locale-en fonts-opensymbol libjavascriptcoregtk-4.0-18
libjuh-java libjurt-java libldap-2.4-2 libldap-common libmysqlclient21
libpython3.8 libpython3.8-minimal libpython3.8-stdlib libreoffice-base-core
libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw
libreoffice-gnome libreoffice-gtk3 libreoffice-help-common
libreoffice-help-en-us libreoffice-impress libreoffice-math
libreoffice-ogltrans libreoffice-pdfimport libreoffice-style-breeze
libreoffice-style-colibre libreoffice-style-elementary
libreoffice-style-tango libreoffice-writer libridl-java libsmbclient
libuno-cppu3 libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3
libuno-salhelpergcc3-3 libunoloader-java libwbclient0 libwebkit2gtk-4.0-37
linux-generic-hwe-20.04 linux-headers-generic-hwe-20.04
linux-image-generic-hwe-20.04 python3-uno python3.8 python3.8-minimal
samba-libs uno-libs-private ure
49 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 230 MB/253 MB of archives.
After this operation, 360 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 samba-libs amd64 2:4.11.6+dfsg-0ubuntu1.1 [5,261 kB]
Err:1 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 samba-libs amd64 2:4.11.6+dfsg-0ubuntu1.1
Hash Sum mismatch
Hashes of expected file:
- SHA256:7bed91ce3edf3740430198d7ec45ed5b2959a9a942f044c9be4898ac201626a4
- SHA1:94267b35634ebffcc955c7d72eb9c7de77c068f8 [weak]
- MD5Sum:9432b5164cec773a47fb5bf1d1f0b370 [weak]
- Filesize:5260888 [weak]
Hashes of received file:
- SHA256:695fb0e54c2b784a59c055ac6ff0858606a2e0de1075eab646551d654cb66338
- SHA1:0173b20ebbd9fcfd2a0c1471788a613f380ccd3f [weak]
- MD5Sum:9432b5164cec773a47fb5bf1d1f0b370 [weak]
- Filesize:5260888 [weak]
Last modification reported: Tue, 28 Apr 2020 17:40:59 +0000
Get:2 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 firefox amd64 76.0+build2-0ubuntu0.20.04.1 [52.2 MB]
Err:2 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 firefox amd64 76.0+build2-0ubuntu0.20.04.1
Hash Sum mismatch
Hashes of expected file:
- SHA256:f098ba8a832d87683ff01703219ff0b0357ae299c2d499b2340566d6b53967f7
- SHA1:2741b84930733d17cae5d793b95d849dd7b0328c [weak]
- MD5Sum:9ec591c3e087c60f9e7320b5b49b0202 [weak]
- Filesize:52175432 [weak]
Hashes of received file:
- SHA256:b8ae1ae2faf2e474ef6a57885bacdb871d87eb4adecbf3396c31d5c2595779d5
- SHA1:fec3bd3dcc93a0c4a14604ab92ccf75dadd6159c [weak]
- MD5Sum:9ec591c3e087c60f9e7320b5b49b0202 [weak]
- Filesize:52175432 [weak]
Last modification reported: Wed, 06 May 2020 13:29:04 +0000
Get:3 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libwebkit2gtk-4.0-37 amd64 2.28.2-0ubuntu0.20.04.1 [12.8 MB]
Err:3 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libwebkit2gtk-4.0-37 amd64 2.28.2-0ubuntu0.20.04.1
Hash Sum mismatch
Hashes of expected file:
- SHA256:2a8af32c629854413d07987911137c279da81c5f06d565d64ef25444759da062
- SHA1:561c9e9ecb4bfeec7b855bb60b0701d93f8f2499 [weak]
- MD5Sum:50656dc088dd044a0e383d092b5e8667 [weak]
- Filesize:12756060 [weak]
Hashes of received file:
- SHA256:4ee92a27d1605952a9f5aee83b415246d024c257676b621b97c85ae1ea8acb89
- SHA1:1f38f830845f780a74bf81967e67a4458b7bcb66 [weak]
- MD5Sum:50656dc088dd044a0e383d092b5e8667 [weak]
- Filesize:12756060 [weak]
Last modification reported: Wed, 29 Apr 2020 14:23:43 +0000
Get:4 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libjavascriptcoregtk-4.0-18 amd64 2.28.2-0ubuntu0.20.04.1 [5,534 kB]
Err:4 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libjavascriptcoregtk-4.0-18 amd64 2.28.2-0ubuntu0.20.04.1
Hash Sum mismatch
Hashes of expected file:
- SHA256:d187b2c30d78358e730ef62d5f2680dffe7e3afcae227e9312bb480787c9de29
- SHA1:315c8b4d03e56a2685b96d908b02a4cac48370f9 [weak]
- MD5Sum:a4b1ad218199230a10a62a14435acea2 [weak]
- Filesize:5533640 [weak]
Hashes of received file:
- SHA256:cae5f2c387c44f779f53d51874840037eb806965ee851b8683ef8bc84002b59e
- SHA1:d685f742577227ecf70e5ea3050a3c67a843092a [weak]
- MD5Sum:a4b1ad218199230a10a62a14435acea2 [weak]
- Filesize:5533640 [weak]
Last modification reported: Wed, 29 Apr 2020 14:23:44 +0000
Get:5 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 ure amd64 1:6.4.3-0ubuntu0.20.04.1 [1,222 kB]
Err:5 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 ure amd64 1:6.4.3-0ubuntu0.20.04.1
Hash Sum mismatch
Hashes of expected file:
- SHA256:8ee05bef46026c857b48dcc5f256a4cd31d18a58227775c7b14778eaf4088726
- SHA1:3319c7b3f5242d70964f0280a248b835d3ff7f46 [weak]
- MD5Sum:13d3e584bd687e615293b060b164ada9 [weak]
- Filesize:1221992 [weak]
Hashes of received file:
- SHA256:e9963a2c39b69378a22330b6fa588f4ba6a4dea151e2e8bfceb7c642f4dfb5f8
- SHA1:687b56efc11fdadbad35f6a46089009abdacab82 [weak]
- MD5Sum:13d3e584bd687e615293b060b164ada9 [weak]
- Filesize:1221992 [weak]
Last modification reported: Wed, 29 Apr 2020 01:58:52 +0000
Get:6 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libreoffice-calc amd64 1:6.4.3-0ubuntu0.20.04.1 [7,187 kB]
Err:6 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libreoffice-calc amd64 1:6.4.3-0ubuntu0.20.04.1
Hash Sum mismatch
Hashes of expected file:
- SHA256:02edab80e340e154d5ce38f645e90d5c8387e3ce959c21ba98d0cf6686e02f6c
- SHA1:7fd0eccded7023860b61addbf90748dec63c5169 [weak]
- MD5Sum:35fe7bc79a91217b90988710925dc98d [weak]
- Filesize:7187136 [weak]
Hashes of received file:
- SHA256:103b563cf37eea895af08a538a3a8bcba14b48beba1891ed185f557cd21250b8
- SHA1:209dc6d63a0212029770a8176a6ccab72265beef [weak]
- MD5Sum:35fe7bc79a91217b90988710925dc98d [weak]
- Filesize:7187136 [weak]
Last modification reported: Wed, 29 Apr 2020 01:59:14 +0000
Get:7 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libreoffice-writer amd64 1:6.4.3-0ubuntu0.20.04.1 [8,592 kB]
Err:7 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libreoffice-writer amd64 1:6.4.3-0ubuntu0.20.04.1
Hash Sum mismatch
Hashes of expected file:
- SHA256:0b1e1358b4d46d874db8c3acf7bb7b44fc6ab40cc946fb2e92c182b7e384e28f
- SHA1:5f65366aefedd7eca5a5614cbd7848ff14c15c0e [weak]
- MD5Sum:4161d6cec292a321dfc03f8e2694e0ae [weak]
- Filesize:8591980 [weak]
Hashes of received file:
- SHA256:3b5cb4249ac383cce62e1fa1290f1742beb991511f45be2f95a9bd8f9b0e3bc7
- SHA1:5f65366aefedd7eca5a5614cbd7848ff14c15c0e [weak]
- MD5Sum:4161d6cec292a321dfc03f8e2694e0ae [weak]
- Filesize:8591980 [weak]
Last modification reported: Wed, 29 Apr 2020 01:59:03 +0000
Get:8 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libreoffice-help-common all 1:6.4.3-0ubuntu0.20.04.1 [2,344 kB]
Err:8 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libreoffice-help-common all 1:6.4.3-0ubuntu0.20.04.1
Hash Sum mismatch
Hashes of expected file:
- SHA256:55b38c6380d434aed28cc17c1328a668d8383a013e8d3aec589b9d60a9560743
- SHA1:5fc49be8d6b320993ac972d54a1a7dc7c67cf85a [weak]
- MD5Sum:7df4e0f5f53b52149afb6aa40da0de6d [weak]
- Filesize:2344500 [weak]
Hashes of received file:
- SHA256:4594830fa7a7d41d6e18d837798e4af2d299df45fd732296c41f48af19d742bc
- SHA1:98aadec42b41cbf28c246ada3949375456cedb38 [weak]
- MD5Sum:7df4e0f5f53b52149afb6aa40da0de6d [weak]
- Filesize:2344500 [weak]
Last modification reported: Wed, 29 Apr 2020 01:58:56 +0000
Get:9 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libreoffice-common all 1:6.4.3-0ubuntu0.20.04.1 [23.5 MB]
Err:9 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libreoffice-common all 1:6.4.3-0ubuntu0.20.04.1
Hash Sum mismatch
Hashes of expected file:
- SHA256:1345003b8aa16ff648cbfe5a95ad483a61d6fc496ecea80a8322424006eeeb1d
- SHA1:5685830ca49384f1d576bd2e8a666196cb855f5b [weak]
- MD5Sum:b6de9f912f6cb73655d1b8b391aaaa66 [weak]
- Filesize:23530824 [weak]
Hashes of received file:
- SHA256:cb2320259b24ad2285a101adadbce86730860d23c297bf0ef88457b8a3ec9096
- SHA1:76cab841ea9320f6bc035152d0e0ce77d0351d2f [weak]
- MD5Sum:b6de9f912f6cb73655d1b8b391aaaa66 [weak]
- Filesize:23530824 [weak]
Last modification reported: Wed, 29 Apr 2020 01:58:32 +0000
Get:10 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libreoffice-core amd64 1:6.4.3-0ubuntu0.20.04.1 [31.5 MB]
Err:10 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libreoffice-core amd64 1:6.4.3-0ubuntu0.20.04.1
Hash Sum mismatch
Hashes of expected file:
- SHA256:50dfe70884838dcc4ea33a291e1c13f22245ecd4fbb82e51abc07715338b2753
- SHA1:8786ac37e8f911a82da5e4a4e4627e75b88e98b8 [weak]
- MD5Sum:02a2c3ca6e2c8401e73d1a2dd59616aa [weak]
- Filesize:31494924 [weak]
Hashes of received file:
- SHA256:9f779e0854a83935538e9eaa9908233b26e38f5e40461939e38f313549a684c9
- SHA1:a8835b41063cf0423fd945dc2f9c91e39218a19c [weak]
- MD5Sum:02a2c3ca6e2c8401e73d1a2dd59616aa [weak]
- Filesize:31494924 [weak]
Last modification reported: Wed, 29 Apr 2020 01:59:04 +0000
Get:11 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libreoffice-style-elementary all 1:6.4.3-0ubuntu0.20.04.1 [7,088 kB]
Err:11 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libreoffice-style-elementary all 1:6.4.3-0ubuntu0.20.04.1
Hash Sum mismatch
Hashes of expected file:
- SHA256:905c1b8799d6e7e48b0bdb86d0eec8f87bd29f3099923802b3eb1916693b6c24
- SHA1:9746b83278db8a25fa1d879d9b089cef7b87639a [weak]
- MD5Sum:178edca173240b630b26e29b592a488a [weak]
- Filesize:7087888 [weak]
Hashes of received file:
- SHA256:ce739f37cc58d6af15f3b6dcc4a5ebf7c8f21bd2b810b27c5ae1e20f61bd2e79
- SHA1:3272522ac5d7d97961945b89aefdab98be7f250a [weak]
- MD5Sum:178edca173240b630b26e29b592a488a [weak]
- Filesize:7087888 [weak]
Last modification reported: Wed, 29 Apr 2020 01:59:10 +0000
Get:12 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-modules-5.4.0-29-generic amd64 5.4.0-29.33 [14.3 MB]
Err:12 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-modules-5.4.0-29-generic amd64 5.4.0-29.33
Hash Sum mismatch
Hashes of expected file:
- SHA256:e0d345e5579b494515ba3cb9ad19a7f87f3bc25103abd0a87aaeab501b096fd4
- SHA1:0ce9892fe4b326e750bf495fc823df9c8ae96279 [weak]
- MD5Sum:ffc87ed1422980993b82424d0817cc31 [weak]
- Filesize:14278064 [weak]
Hashes of received file:
- SHA256:3dcf94d68fd3b3fdd9e19e7e75c2289347cb2fc79dbe4ce36bfdf78b06d48942
- SHA1:470a68e4b45628e91a709156070e2fba864d583f [weak]
- MD5Sum:ffc87ed1422980993b82424d0817cc31 [weak]
- Filesize:14278064 [weak]
Last modification reported: Thu, 30 Apr 2020 08:23:38 +0000
Get:13 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-image-5.4.0-29-generic amd64 5.4.0-29.33 [8,871 kB]
Err:13 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-image-5.4.0-29-generic amd64 5.4.0-29.33
Hash Sum mismatch
Hashes of expected file:
- SHA256:eb420ae6d31dd3cbf341de32035976271e568b868416e8bd00b644dcb39cde1a
- SHA1:389bd3f05310f2adc7c1110890afc1ef4a2acc19 [weak]
- MD5Sum:5af753b944eb16b8f248e236edb6ce54 [weak]
- Filesize:8870728 [weak]
Hashes of received file:
- SHA256:1941ee3062a81cf74ef04b82a1e5f8802084e729c7f695df8d0231e53094264d
- SHA1:05c066148d3ae7268a39b9a31d40a41e83880a0e [weak]
- MD5Sum:5af753b944eb16b8f248e236edb6ce54 [weak]
- Filesize:8870728 [weak]
Last modification reported: Thu, 30 Apr 2020 17:18:29 +0000
Get:14 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-modules-extra-5.4.0-29-generic amd64 5.4.0-29.33 [38.6 MB]
Err:14 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-modules-extra-5.4.0-29-generic amd64 5.4.0-29.33
Hash Sum mismatch
Hashes of expected file:
- SHA256:ad077c729e81adae7f3daf481f7a3ffa418d2ef36201f3cb784846c554bf772e
- SHA1:18155a5d5870cf36e9f584af4f6460c7cd0dc42d [weak]
- MD5Sum:7d966a61e974671d117f98e607ef6088 [weak]
- Filesize:38616816 [weak]
Hashes of received file:
- SHA256:60dfd033c6ae750219ab16d4f558f4d22dcc6e11db3de4ce0d935b96254dc416
- SHA1:26c2b19db142da011c17f39e2cfae9be16fb9a31 [weak]
- MD5Sum:7d966a61e974671d117f98e607ef6088 [weak]
- Filesize:38616816 [weak]
Last modification reported: Thu, 30 Apr 2020 08:23:59 +0000
Get:15 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-headers-5.4.0-29 all 5.4.0-29.33 [10.9 MB]
Err:15 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-headers-5.4.0-29 all 5.4.0-29.33
Hash Sum mismatch
Hashes of expected file:
- SHA256:edde13dcd52c51e2404d37731948d491e6e215b22f599239326809754f8d5633
- SHA1:3e46354d6aaa92f82d5392a80f6b72c3fcc78a91 [weak]
- MD5Sum:4ccf38c666c836f29fc3602314de47b9 [weak]
- Filesize:10936232 [weak]
Hashes of received file:
- SHA256:b29b2b9527ad30ddb98bc568a68a02577fb129db3352503b36bce9a32229ff29
- SHA1:84c5c0d99ec86177c3f1f39a8998f42d43221ddb [weak]
- MD5Sum:4ccf38c666c836f29fc3602314de47b9 [weak]
- Filesize:10936232 [weak]
Last modification reported: Thu, 30 Apr 2020 08:23:38 +0000
Fetched 230 MB in 24s (9,497 kB/s)
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/s/samba/samba-libs_4.11.6+dfsg-0ubuntu1.1_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:7bed91ce3edf3740430198d7ec45ed5b2959a9a942f044c9be4898ac201626a4
- SHA1:94267b35634ebffcc955c7d72eb9c7de77c068f8 [weak]
- MD5Sum:9432b5164cec773a47fb5bf1d1f0b370 [weak]
- Filesize:5260888 [weak]
Hashes of received file:
- SHA256:695fb0e54c2b784a59c055ac6ff0858606a2e0de1075eab646551d654cb66338
- SHA1:0173b20ebbd9fcfd2a0c1471788a613f380ccd3f [weak]
- MD5Sum:9432b5164cec773a47fb5bf1d1f0b370 [weak]
- Filesize:5260888 [weak]
Last modification reported: Tue, 28 Apr 2020 17:40:59 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/f/firefox/firefox_76.0+build2-0ubuntu0.20.04.1_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:f098ba8a832d87683ff01703219ff0b0357ae299c2d499b2340566d6b53967f7
- SHA1:2741b84930733d17cae5d793b95d849dd7b0328c [weak]
- MD5Sum:9ec591c3e087c60f9e7320b5b49b0202 [weak]
- Filesize:52175432 [weak]
Hashes of received file:
- SHA256:b8ae1ae2faf2e474ef6a57885bacdb871d87eb4adecbf3396c31d5c2595779d5
- SHA1:fec3bd3dcc93a0c4a14604ab92ccf75dadd6159c [weak]
- MD5Sum:9ec591c3e087c60f9e7320b5b49b0202 [weak]
- Filesize:52175432 [weak]
Last modification reported: Wed, 06 May 2020 13:29:04 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/w/webkit2gtk/libwebkit2gtk-4.0-37_2.28.2-0ubuntu0.20.04.1_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:2a8af32c629854413d07987911137c279da81c5f06d565d64ef25444759da062
- SHA1:561c9e9ecb4bfeec7b855bb60b0701d93f8f2499 [weak]
- MD5Sum:50656dc088dd044a0e383d092b5e8667 [weak]
- Filesize:12756060 [weak]
Hashes of received file:
- SHA256:4ee92a27d1605952a9f5aee83b415246d024c257676b621b97c85ae1ea8acb89
- SHA1:1f38f830845f780a74bf81967e67a4458b7bcb66 [weak]
- MD5Sum:50656dc088dd044a0e383d092b5e8667 [weak]
- Filesize:12756060 [weak]
Last modification reported: Wed, 29 Apr 2020 14:23:43 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/w/webkit2gtk/libjavascriptcoregtk-4.0-18_2.28.2-0ubuntu0.20.04.1_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:d187b2c30d78358e730ef62d5f2680dffe7e3afcae227e9312bb480787c9de29
- SHA1:315c8b4d03e56a2685b96d908b02a4cac48370f9 [weak]
- MD5Sum:a4b1ad218199230a10a62a14435acea2 [weak]
- Filesize:5533640 [weak]
Hashes of received file:
- SHA256:cae5f2c387c44f779f53d51874840037eb806965ee851b8683ef8bc84002b59e
- SHA1:d685f742577227ecf70e5ea3050a3c67a843092a [weak]
- MD5Sum:a4b1ad218199230a10a62a14435acea2 [weak]
- Filesize:5533640 [weak]
Last modification reported: Wed, 29 Apr 2020 14:23:44 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/libr/libreoffice/ure_6.4.3-0ubuntu0.20.04.1_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:8ee05bef46026c857b48dcc5f256a4cd31d18a58227775c7b14778eaf4088726
- SHA1:3319c7b3f5242d70964f0280a248b835d3ff7f46 [weak]
- MD5Sum:13d3e584bd687e615293b060b164ada9 [weak]
- Filesize:1221992 [weak]
Hashes of received file:
- SHA256:e9963a2c39b69378a22330b6fa588f4ba6a4dea151e2e8bfceb7c642f4dfb5f8
- SHA1:687b56efc11fdadbad35f6a46089009abdacab82 [weak]
- MD5Sum:13d3e584bd687e615293b060b164ada9 [weak]
- Filesize:1221992 [weak]
Last modification reported: Wed, 29 Apr 2020 01:58:52 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/libr/libreoffice/libreoffice-calc_6.4.3-0ubuntu0.20.04.1_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:02edab80e340e154d5ce38f645e90d5c8387e3ce959c21ba98d0cf6686e02f6c
- SHA1:7fd0eccded7023860b61addbf90748dec63c5169 [weak]
- MD5Sum:35fe7bc79a91217b90988710925dc98d [weak]
- Filesize:7187136 [weak]
Hashes of received file:
- SHA256:103b563cf37eea895af08a538a3a8bcba14b48beba1891ed185f557cd21250b8
- SHA1:209dc6d63a0212029770a8176a6ccab72265beef [weak]
- MD5Sum:35fe7bc79a91217b90988710925dc98d [weak]
- Filesize:7187136 [weak]
Last modification reported: Wed, 29 Apr 2020 01:59:14 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/libr/libreoffice/libreoffice-writer_6.4.3-0ubuntu0.20.04.1_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:0b1e1358b4d46d874db8c3acf7bb7b44fc6ab40cc946fb2e92c182b7e384e28f
- SHA1:5f65366aefedd7eca5a5614cbd7848ff14c15c0e [weak]
- MD5Sum:4161d6cec292a321dfc03f8e2694e0ae [weak]
- Filesize:8591980 [weak]
Hashes of received file:
- SHA256:3b5cb4249ac383cce62e1fa1290f1742beb991511f45be2f95a9bd8f9b0e3bc7
- SHA1:5f65366aefedd7eca5a5614cbd7848ff14c15c0e [weak]
- MD5Sum:4161d6cec292a321dfc03f8e2694e0ae [weak]
- Filesize:8591980 [weak]
Last modification reported: Wed, 29 Apr 2020 01:59:03 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/libr/libreoffice/libreoffice-help-common_6.4.3-0ubuntu0.20.04.1_all.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:55b38c6380d434aed28cc17c1328a668d8383a013e8d3aec589b9d60a9560743
- SHA1:5fc49be8d6b320993ac972d54a1a7dc7c67cf85a [weak]
- MD5Sum:7df4e0f5f53b52149afb6aa40da0de6d [weak]
- Filesize:2344500 [weak]
Hashes of received file:
- SHA256:4594830fa7a7d41d6e18d837798e4af2d299df45fd732296c41f48af19d742bc
- SHA1:98aadec42b41cbf28c246ada3949375456cedb38 [weak]
- MD5Sum:7df4e0f5f53b52149afb6aa40da0de6d [weak]
- Filesize:2344500 [weak]
Last modification reported: Wed, 29 Apr 2020 01:58:56 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/libr/libreoffice/libreoffice-common_6.4.3-0ubuntu0.20.04.1_all.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:1345003b8aa16ff648cbfe5a95ad483a61d6fc496ecea80a8322424006eeeb1d
- SHA1:5685830ca49384f1d576bd2e8a666196cb855f5b [weak]
- MD5Sum:b6de9f912f6cb73655d1b8b391aaaa66 [weak]
- Filesize:23530824 [weak]
Hashes of received file:
- SHA256:cb2320259b24ad2285a101adadbce86730860d23c297bf0ef88457b8a3ec9096
- SHA1:76cab841ea9320f6bc035152d0e0ce77d0351d2f [weak]
- MD5Sum:b6de9f912f6cb73655d1b8b391aaaa66 [weak]
- Filesize:23530824 [weak]
Last modification reported: Wed, 29 Apr 2020 01:58:32 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/libr/libreoffice/libreoffice-core_6.4.3-0ubuntu0.20.04.1_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:50dfe70884838dcc4ea33a291e1c13f22245ecd4fbb82e51abc07715338b2753
- SHA1:8786ac37e8f911a82da5e4a4e4627e75b88e98b8 [weak]
- MD5Sum:02a2c3ca6e2c8401e73d1a2dd59616aa [weak]
- Filesize:31494924 [weak]
Hashes of received file:
- SHA256:9f779e0854a83935538e9eaa9908233b26e38f5e40461939e38f313549a684c9
- SHA1:a8835b41063cf0423fd945dc2f9c91e39218a19c [weak]
- MD5Sum:02a2c3ca6e2c8401e73d1a2dd59616aa [weak]
- Filesize:31494924 [weak]
Last modification reported: Wed, 29 Apr 2020 01:59:04 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/libr/libreoffice/libreoffice-style-elementary_6.4.3-0ubuntu0.20.04.1_all.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:905c1b8799d6e7e48b0bdb86d0eec8f87bd29f3099923802b3eb1916693b6c24
- SHA1:9746b83278db8a25fa1d879d9b089cef7b87639a [weak]
- MD5Sum:178edca173240b630b26e29b592a488a [weak]
- Filesize:7087888 [weak]
Hashes of received file:
- SHA256:ce739f37cc58d6af15f3b6dcc4a5ebf7c8f21bd2b810b27c5ae1e20f61bd2e79
- SHA1:3272522ac5d7d97961945b89aefdab98be7f250a [weak]
- MD5Sum:178edca173240b630b26e29b592a488a [weak]
- Filesize:7087888 [weak]
Last modification reported: Wed, 29 Apr 2020 01:59:10 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-modules-5.4.0-29-generic_5.4.0-29.33_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:e0d345e5579b494515ba3cb9ad19a7f87f3bc25103abd0a87aaeab501b096fd4
- SHA1:0ce9892fe4b326e750bf495fc823df9c8ae96279 [weak]
- MD5Sum:ffc87ed1422980993b82424d0817cc31 [weak]
- Filesize:14278064 [weak]
Hashes of received file:
- SHA256:3dcf94d68fd3b3fdd9e19e7e75c2289347cb2fc79dbe4ce36bfdf78b06d48942
- SHA1:470a68e4b45628e91a709156070e2fba864d583f [weak]
- MD5Sum:ffc87ed1422980993b82424d0817cc31 [weak]
- Filesize:14278064 [weak]
Last modification reported: Thu, 30 Apr 2020 08:23:38 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/l/linux-signed/linux-image-5.4.0-29-generic_5.4.0-29.33_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:eb420ae6d31dd3cbf341de32035976271e568b868416e8bd00b644dcb39cde1a
- SHA1:389bd3f05310f2adc7c1110890afc1ef4a2acc19 [weak]
- MD5Sum:5af753b944eb16b8f248e236edb6ce54 [weak]
- Filesize:8870728 [weak]
Hashes of received file:
- SHA256:1941ee3062a81cf74ef04b82a1e5f8802084e729c7f695df8d0231e53094264d
- SHA1:05c066148d3ae7268a39b9a31d40a41e83880a0e [weak]
- MD5Sum:5af753b944eb16b8f248e236edb6ce54 [weak]
- Filesize:8870728 [weak]
Last modification reported: Thu, 30 Apr 2020 17:18:29 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-modules-extra-5.4.0-29-generic_5.4.0-29.33_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:ad077c729e81adae7f3daf481f7a3ffa418d2ef36201f3cb784846c554bf772e
- SHA1:18155a5d5870cf36e9f584af4f6460c7cd0dc42d [weak]
- MD5Sum:7d966a61e974671d117f98e607ef6088 [weak]
- Filesize:38616816 [weak]
Hashes of received file:
- SHA256:60dfd033c6ae750219ab16d4f558f4d22dcc6e11db3de4ce0d935b96254dc416
- SHA1:26c2b19db142da011c17f39e2cfae9be16fb9a31 [weak]
- MD5Sum:7d966a61e974671d117f98e607ef6088 [weak]
- Filesize:38616816 [weak]
Last modification reported: Thu, 30 Apr 2020 08:23:59 +0000
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-5.4.0-29_5.4.0-29.33_all.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:edde13dcd52c51e2404d37731948d491e6e215b22f599239326809754f8d5633
- SHA1:3e46354d6aaa92f82d5392a80f6b72c3fcc78a91 [weak]
- MD5Sum:4ccf38c666c836f29fc3602314de47b9 [weak]
- Filesize:10936232 [weak]
Hashes of received file:
- SHA256:b29b2b9527ad30ddb98bc568a68a02577fb129db3352503b36bce9a32229ff29
- SHA1:84c5c0d99ec86177c3f1f39a8998f42d43221ddb [weak]
- MD5Sum:4ccf38c666c836f29fc3602314de47b9 [weak]
- Filesize:10936232 [weak]
Last modification reported: Thu, 30 Apr 2020 08:23:38 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ubuntu@ubuntu:~$

wget した.deb ファイルのハッシュ値

wget した.deb ファイルのハッシュ値はHashes of expected file: のハッシュ値と一致します。

ubuntu@ubuntu:~$ wget http://jp.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-5.4.0-29_5.4.0-29.33_all.deb
--2020-05-07 02:59:22-- http://jp.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-5.4.0-29_5.4.0-29.33_all.deb
Resolving jp.archive.ubuntu.com (jp.archive.ubuntu.com)... 160.26.2.187
Connecting to jp.archive.ubuntu.com (jp.archive.ubuntu.com)|160.26.2.187|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10936232 (10M) [application/x-debian-package]
Saving to: ‘linux-headers-5.4.0-29_5.4.0-29.33_all.deb’

linux-headers-5.4.0 100%[===================>] 10.43M 8.68MB/s in 1.2s

2020-05-07 02:59:23 (8.68 MB/s) - ‘linux-headers-5.4.0-29_5.4.0-29.33_all.deb’ saved [10936232/10936232]

ubuntu@ubuntu:~$ ls -l *.deb
-rw-rw-r-- 1 ubuntu ubuntu 10936232 Apr 30 17:23 linux-headers-5.4.0-29_5.4.0-29.33_all.deb
ubuntu@ubuntu:~$ which sha256sum sha1sum md5sum
/usr/bin/sha256sum
/usr/bin/sha1sum
/usr/bin/md5sum
ubuntu@ubuntu:~$ sha256sum *.deb
edde13dcd52c51e2404d37731948d491e6e215b22f599239326809754f8d5633 linux-headers-5.4.0-29_5.4.0-29.33_all.deb
ubuntu@ubuntu:~$ sha1sum *.deb
3e46354d6aaa92f82d5392a80f6b72c3fcc78a91 linux-headers-5.4.0-29_5.4.0-29.33_all.deb
ubuntu@ubuntu:~$ md5sum *.deb
4ccf38c666c836f29fc3602314de47b9 linux-headers-5.4.0-29_5.4.0-29.33_all.deb
ubuntu@ubuntu:~$