Hash Missmatch on apt update & pvecephinstall

jsterr

Famous Member
Jul 24, 2020
902
269
108
34
Hello Proxmox

any tips on howto fix this, this happend after internet got lost while downloading packages from repos:

Code:
E: Failed to fetch http://ftp.ch.debian.org/debian/pool/main/b/binutils/libctf-nobfd0_2.35.2-2_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:74bbaddb02d19e6ccb331819087aa02e94ded72e93294c51e3ba3c29dbcd9a2b
- MD5Sum:5d6f7f764d1de7d3907b20f300429c6a [weak]
- Filesize:110224 [weak]
Hashes of received file:
- SHA256:16e80441b5ad82d1657021c971b4dab130ef5e9e2c2c95e8ef913bce090de4e8
- MD5Sum:6091d1796a4ae592068a610bbdbdf4d5 [weak]
- Filesize:110224 [weak]
Last modification reported: Sat, 20 Feb 2021 20:42:12 +0000
E: Failed to fetch http://ftp.ch.debian.org/debian/pool/main/b/binutils/binutils-x86-64-linux-gnu_2.35.2-2_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:b71ad0ec4328fd5da01fbd060714dafb1471d68dbfd2f897ad890b2ecf50b204
- MD5Sum:4edcd39386fd29de7cc5c4e8f9630c10 [weak]
- Filesize:1808556 [weak]
Hashes of received file:
- SHA256:a1f2877c92639e09d03545c5e3f0875d47d167f90b61ba9e62a4a1883ca3c78e
- MD5Sum:4515727407abf5752f21aaa57edf91c2 [weak]
- Filesize:1808556 [weak]
Last modification reported: Sat, 20 Feb 2021 20:42:12 +0000
E: Failed to fetch http://download.proxmox.com/debian/ceph-pacific/dists/bullseye/main/binary-amd64/ceph-common_16.2.7_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA512:76e8766c3da5868929201ea73b1cf2a70a038c670e6aad90f3d81ce5ca873ffb23472ccbf261822572fbfd6905e9bef0c30f7442ed8fa52cfb674cec1b5bba50
- SHA256:8a82eb3eac65bcdc7ff8433a5092a487b67882c26b4cccf37780617cecb7b678
- SHA1:ab4885f173d6cd173d0c9f26913b40bcbda90c7d [weak]
- MD5Sum:c61d55cb00b0d1f9da1fbfd19aaac208 [weak]
- Filesize:21439408 [weak]
Hashes of received file:
- SHA512:761861156694b8053290194a17753f3ff299c33746168e3af3e1cda5c12f6c930036a377f172596fefc1f37b4e0ad9169805ba7c7e7c66d626a0a7ccaf638023
- SHA256:dbd23ecd27a01cee7450f5858fb62baa88f4604b8f472b7a3add090122d46ce9
- SHA1:1c6b570a0cd8526e743bcc24d844ce22e018a54a [weak]
- MD5Sum:09b328d8b765ed1a90c5aa04221e1860 [weak]
- Filesize:21439408 [weak]
Last modification reported: Wed, 08 Dec 2021 13:11:49 +0000
E: Failed to fetch http://ftp.ch.debian.org/debian/pool/main/p/python3-stdlib-extensions/python3-distutils_3.9.2-1_all.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:05ec4080e0f05ba6b1c339d89c97f6343919be450b66cf4cfb215f54dcb85e58
- MD5Sum:81737e57a280d62f6326d5ad2b0d1a3b [weak]
- Filesize:142952 [weak]
Hashes of received file:
- SHA256:85cf919a58e2866d8332dc67c3b4826055a1edc29fe1209b4d1a900a93bc0c58
- MD5Sum:188f90b0bb568bffc7d779fbf96bf9e4 [weak]
- Filesize:142952 [weak]
Last modification reported: Sat, 20 Feb 2021 14:29:08 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
apt failed during ceph installation (25600)

I cant do a pveceph install --fix-missing. We already tried apt update & apt autoclean & apt update --fix-missing
Thats how the sources.list looks like:

Code:
deb http://ftp.ch.debian.org/debian bullseye main contrib

deb http://ftp.ch.debian.org/debian bullseye-updates main contrib

# security updates
deb http://security.debian.org bullseye-security main contrib

deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

Regards
Jonas
 
Code:
Reading changelogs... Done
(Reading database ... 47856 files and directories currently installed.)
Preparing to unpack .../0-corosync_3.1.5-pve2_amd64.deb ...
Unpacking corosync (3.1.5-pve2) over (3.1.2-pve2) ...
Preparing to unpack .../1-lxc-pve_4.0.11-1_amd64.deb ...
Unpacking lxc-pve (4.0.11-1) over (4.0.9-4) ...
Preparing to unpack .../2-pve-docs_7.1-2_all.deb ...
Unpacking pve-docs (7.1-2) over (7.0-5) ...
Preparing to unpack .../3-zfs-initramfs_2.1.2-pve1_all.deb ...
Unpacking zfs-initramfs (2.1.2-pve1) over (2.0.5-pve1) ...
Preparing to unpack .../4-zfsutils-linux_2.1.2-pve1_amd64.deb ...
Unpacking zfsutils-linux (2.1.2-pve1) over (2.0.5-pve1) ...
Preparing to unpack .../5-zfs-zed_2.1.2-pve1_amd64.deb ...
Unpacking zfs-zed (2.1.2-pve1) over (2.0.5-pve1) ...
Setting up corosync (3.1.5-pve2) ...
Setting up pve-docs (7.1-2) ...
Setting up zfsutils-linux (2.1.2-pve1) ...
Installing new version of config file /etc/zfs/zfs-functions ...
Setting up zfs-initramfs (2.1.2-pve1) ...
Setting up lxc-pve (4.0.11-1) ...
Setting up zfs-zed (2.1.2-pve1) ...
Installing new version of config file /etc/zfs/zed.d/zed-functions.sh ...
Installing new version of config file /etc/zfs/zed.d/zed.rc ...
Processing triggers for libc-bin (2.31-13+deb11u2) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for initramfs-tools (0.140) ...
update-initramfs: Generating /boot/initrd.img-5.11.22-4-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
E: Failed to fetch http://download.proxmox.com/debian/pve/dists/bullseye/pve-no-subscription/binary-amd64/pve-firmware_3.3-4_all.deb Hash Sum mismatch
Hashes of expected file:
- SHA512:f8d654ef1c41fb246bd30e0bb62f5ffe03fccef94be7979db82397867f9b133880088dca1771e95f4a891f1fc86901ff61e25c1005cbc1467cee45418ce79aca
- SHA256:419dd030c58d5fce3896b3713421f9e89ced1ccbecbd03c1dc756a6d6ba57cea
- SHA1:064cae8c2eec64738d31bb8c449ba9e444cce27a [weak]
- MD5Sum:e3475639d521c2f30ea313c2db33dbb8 [weak]
- Filesize:55258020 [weak]
Hashes of received file:
- SHA512:eddd2c2fc56dc44dbfadc26174ef385d43718161aac0aa206f7d953f3bf967b6a57f7e8495e2fd01a1e3111ca986525c00d70cb075375c2ceb80c09e994b8a45
- SHA256:b8b1f9aaa5c760b0e7b3504ba9ad4eadae77f3ce729b929f70517b070fa7e055
- SHA1:3b1ada782be337ee374d647a108fa8f936528b98 [weak]
- MD5Sum:e0e0a86987a4141b3c895bc950098768 [weak]
- Filesize:55258020 [weak]
Last modification reported: Thu, 09 Dec 2021 13:04:41 +0000
E: Failed to fetch http://download.proxmox.com/debian/pve/dists/bullseye/pve-no-subscription/binary-amd64/pve-kernel-5.13.19-3-pve_5.13.19-7_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA512:ac230e2312321c3e8ef64d6763d1ba6b7507faa3ad623289b0a27a4bd028a782b90c66963524b5f811e461bef4084559bd3e05b6efa5737471eb61f5af1c2b04
- SHA256:7fdece57a9894e9ddca7cfbd1c04b5e366b536c8a71db02756da1d7b66f966e6
- SHA1:23680e46fc64bf6f0591d4993a876ed9c13a7014 [weak]
- MD5Sum:d75230ea3b88c78f886049e07353ebc9 [weak]
- Filesize:66867988 [weak]
Hashes of received file:
- SHA512:ab76bfed172a7798310e6ed54b50a288b0cb0da7edbb42f445c24e68fab8a2842a8ff2c314030e4a8c5dfa0e23d0c8ed66a3b0afe48554c24112a20fe5c33be3
- SHA256:08e99951201b683273a2f2dfc123b25fd0855b826b985ae069ce545882af59b3
- SHA1:89807b6fa4f385b3b0b38a0722c6fa5a63f17035 [weak]
- MD5Sum:86d12508e470d8e536ed9cf505de0e6d [weak]
- Filesize:66867988 [weak]
Last modification reported: Thu, 20 Jan 2022 17:00:24 +0000
E: Failed to fetch http://download.proxmox.com/debian/pve/dists/bullseye/pve-no-subscription/binary-amd64/pve-kernel-5.11.22-7-pve_5.11.22-12_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA512:d5ef33e53e6b7527877c94680db20482d5565bbf81ca352873e784e64ee224b662a8550bbd4b62bfdbfa54e45dbabd29dfce2c26a996a590c5ad91a5e827be47
- SHA256:afe8792750992afbbd1ec67cb5b51e86dc1477bb71a7cf7bf2e268701362a773
- SHA1:337eb3e31cbe7120d3fe6e83512e8a5b7bf29bd9 [weak]
- MD5Sum:80eb65f56de50a4ea34c409600532f0a [weak]
- Filesize:75683264 [weak]
Hashes of received file:
- SHA512:941b90a7f0d217e94deb3ad179e4be958c26dd1c46c05e9c984482d2833db028ee37e8ff52d4e09a58ea2f638bd4f7b9bab3fae4ca6d8a689f76e50b5eb815a0
- SHA256:559c9a450d4930404eb5660205f6425d2e11e3884dba1f2776a9e7dfa13bc681
- SHA1:b30a639a435dedc92110eb001def4121fa171579 [weak]
- MD5Sum:44726b73ab18557541b7c1d43ae73895 [weak]
- Filesize:75683264 [weak]
Last modification reported: Sun, 07 Nov 2021 21:33:15 +0000
E: Failed to fetch http://download.proxmox.com/debian/pve/dists/bullseye/pve-no-subscription/binary-amd64/pve-kernel-5.11.22-4-pve_5.11.22-9_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA512:084a2353ddcadbfba011d4e6748648afbad69a01f0e4301827a756a1cbec5fea47704cafdc7723612d2c349838a1db7c4e91aaacd72b8bc8b608eade417332de
- SHA256:8788a83a5727541e65831090cafca98e19f8a8d86871b561fd28bac0bdba49e1
- SHA1:97e76ae790db2ec3e040c545e784789e93747f87 [weak]
- MD5Sum:3f18a92907bf1c0af4e55d6b99a936ac [weak]
- Filesize:75560948 [weak]
Hashes of received file:
- SHA512:2289f96a3a7643e8740a94dbcfdd522ade80556e72c1cbd3bcf61fdfa7b4eeb70bb835fffcc6522f6cac05add20d2124e92836e6a0b2866a99f79e8a092f3ecc
- SHA256:88fd2067162abc8f8515f2ac0ecc39f09f85cbbd70e279a7156c48a846e6164c
- SHA1:9302b3bfc2c5e1fae82a0171e4875d4aa78b7746 [weak]
- MD5Sum:28ae17acff7711200d5323711f909c9b [weak]
- Filesize:75560948 [weak]
Last modification reported: Wed, 22 Sep 2021 09:03:05 +0000
 
Last edited:
Do you use any kind of proxy?

maybe this can help:
copy the text below into the file /etc/apt/apt.conf.d/99fixbadproxy
Code:
Acquire::http::Pipeline-Depth 0;
Acquire::http::No-Cache true;
Acquire::BrokenProxy true;

source: https://stackoverflow.com/questions/15505775/debian-apt-packages-hash-sum-mismatch

No proxy, we tried this aswell because client was unsure. Did not work. Problem exists on atleast two nodes so it has nothing to do with the interruption of the downloading of the ceph packages. We tried nearly everything from your source (stackoverflow)

Customer said that he did a apt upgrade instead of dist-upgrade before. Could this cause this issue? I said him that this is the wrong way to upgrade because package dependencies are not considerd between repos with apt upgrade.
 
Last edited:
Is the Wrong Hashsum consistent if you rerun apt?
 
Customer said that he did a apt upgrade instead of dist-upgrade before. Could this cause this issue? I said him that this is the wrong way to upgrade because package dependencies are not considerd between repos with apt upgrade.
Can you check the /var/log/apt/history.log and /var/log/apt/term.log files (and maybe their log-rotated variants) for what the user actually did, and about what apt do at the transaction with upgrade instead of full-upgrade?