Score:0

apt update not working.. getting Hash Sum mismatch error - Ubuntu 20.04.6 LTS

tz flag

We have configured local server where we get the packages using apt-mirror and there client trying to pull packages using apt update:

Err:30 http://xxx.xxx.xxx.xxx/ubuntu/mirror/azure.archive.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata
  
Hash Sum mismatch
  Hashes of expected file:
   - Filesize:12500 [weak]
   - SHA256:ffb0ba77d733b726e0dc35331cf1e03fe1ab8a297b705211f9d1fa28ed0ebc90
   - SHA1:fa4445298ccf0ac4baa0c4563731c34aab805c76 [weak]
   - MD5Sum:4771bd40550239c2d5b16c65ad2e8113 [weak]
  Hashes of received file:
   - SHA256:d2c1bfaebc00349c33b50d969ab6d8305e694cd5923dd82127da018efc66e050
   - SHA1:d559a78c31fb6b4734154c27713a3a5f47c47154 [weak]
   - MD5Sum:f8ec5ea7790713a1846e6ac781889155 [weak]
   - Filesize:12500 [weak]

We tried almost all solutions but still its not working.

rm -rf /var/lib/apt/lists/*
apt clean
apt update

Also tried to remove the mirror and rerun the apt-mirror

I checked the md5sum hash value on server and client and it contains the same hash value not sure why the apt update taking the old hash values.

Any suggestion please.

Artur Meinild avatar
vn flag
In particular, did you try [this answer](https://askubuntu.com/a/779924/1066942) (with a different compression method)?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.