When running apt full-upgrade
or apt update
I'm getting several logs that are more or less the same as this one, where there is an identical filesize, SHA1 and MD5 but different SHA256:
E: Failed to fetch store:/var/lib/apt/lists/partial/jp.archive.ubuntu.com_ubuntu_dists_focal_main_binary-amd64_Packages.xz Hash Sum mismatch
Hashes of expected file:
- Filesize:5826751 [weak]
- SHA256:af226b4496cbb524bd4814d102047ae77769836203274dffc91cb543d5da13cc
- SHA1:aef5c36ce45bd5c3154a1bb03c62b6cfb33e2bc6 [weak]
- MD5Sum:7ef83228ec207df10acac48fbdd81112 [weak]
Hashes of received file:
- SHA256:e2c7fc5a2d86f75f03612fec614dcf84d3d502976558fbe40928c1dd120bb05e
- SHA1:aef5c36ce45bd5c3154a1bb03c62b6cfb33e2bc6 [weak]
- MD5Sum:7ef83228ec207df10acac48fbdd81112 [weak]
- Filesize:5826751 [weak]
Last modification reported: Thu, 23 Apr 2020 16:40:26 +0000
Release file created at: Thu, 23 Apr 2020 17:33:17 +0000
Whereas others have the same MD5, but different SHA1 and SHA256:
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:9af606f85850ba3010ac8743f62dca91bbef3e5e60da5a7df62dac53eb5a4fb7
- SHA1:61c842d896676ac9af0fef9f9f48bc4a3c39cce6 [weak]
- MD5Sum:4ccf38c666c836f29fc3602314de47b9 [weak]
- Filesize:10936232 [weak]
Last modification reported: Thu, 30 Apr 2020 08:23:38 +0000
This problem is similar to what is asked here, and indeed I tried several of the solutions offered there (and elsewhere) but they did not help. However I am wondering specifically about why the SHA-1 and MD5Sum are identical, and only SHA256 is different. Does this mean that there is a security problem somewhere along the line? Or is my system reading SHA256 incorrectly? Something else?
Thanks