Hash Sum mismatch

Post issues, bugs, and feature requests about the various WineHQ websites to this forum.
Post Reply
Posts: 1
Joined: Wed Oct 14, 2020 12:40 am

Hash Sum mismatch

Post by thanosa » Wed Oct 14, 2020 12:56 am

I am trying to upgrade ubuntu using "sudo apt-get update; sudo apt-get upgrade" and I am getting the following error:
Get:2 https://dl.winehq.org/wine-builds/ubuntu focal/main i386 wine-stable-i386 i386 5.0.2~focal [66,1 MB]
Err:2 https://dl.winehq.org/wine-builds/ubuntu focal/main i386 wine-stable-i386 i386 5.0.2~focal
Hash Sum mismatch
Hashes of expected file:
- SHA512:79da73bf551db859ae1b61acdfa5a8e6e2bb36481e1084136886726e7e47496c00c8ecc873e44a27f5b85ba4319378ae20ae40d2c8ffae28ef2bb6b0a2f8a018
- SHA256:e9baea1099947c268df16692c46eda36a09659e9f0615a97b15faa70cf7c1959
- SHA1:e707f6915f784ebdd03e610dcbd380aba7d0bd20 [weak]
- MD5Sum:0ef16494f46d600fedd4f86db5e906b7 [weak]
- Filesize:66070660 [weak]
Hashes of received file:
- SHA512:0a62a4d4a2ee2b31326ced1f26a61b3bd38975fa0713e9a0e738a9877fdee89ca8ef6e56399e5c0f14003b768bcda46bf5777b5b8befe8f0449807f8ccc95944
- SHA256:810141a505c35a175a90f6d46e7770ab9106315a02babb5ad43f49fe08fcff5c
- SHA1:ef4cfad3529c2e2130e757f8d99e68698e2609c4 [weak]
- MD5Sum:ae53daa8f299d4854071d2bb1c932dea [weak]
- Filesize:66070660 [weak]
Last modification reported: Thu, 13 Aug 2020 19:11:56 +0000
Similar error happens for the upcoming Get:2 and Get:3.

How can I fix this?

User avatar
Posts: 12852
Joined: Tue Mar 25, 2008 10:30 pm

Re: Hash Sum mismatch

Post by dimesio » Wed Oct 14, 2020 7:24 am

One way that can happen is if you try to install Wine while the repository is in the process of being synced; if you haven't tried since last weekend, try again.

I can verify that the checksums that apt reports to you as expected match what is in the Packages file, and when I download wine-stable-i386_5.0.2~focal_i386.deb and check the sha512sum manually that is what I get:

Code: Select all

sha512sum '/data1/downloads/wine-stable-i386_5.0.2~focal_i386.deb' 
79da73bf551db859ae1b61acdfa5a8e6e2bb36481e1084136886726e7e47496c00c8ecc873e44a27f5b85ba4319378ae20ae40d2c8ffae28ef2bb6b0a2f8a018  /data1/downloads/wine-stable-i386_5.0.2~focal_i386.deb
So the file apt-get downloaded on your system appears to be corrupt, but I don't know why. Try downloading it manually from the repository.

Post Reply