[Issue] Package hash mismatch from https://dl.winehq.org on apt-get update

Post issues, bugs, and feature requests about the various WineHQ websites to this forum.
Post Reply
aperarnaud
Newbie
Newbie
Posts: 1
Joined: Wed May 21, 2025 9:13 am

[Issue] Package hash mismatch from https://dl.winehq.org on apt-get update

Post by aperarnaud »

Hi all,

I'm encountering an issue when running apt-get update using the Docker image electronuserland/builder:18-wine, which pulls WineHQ sources from https://dl.winehq.org/wine-builds/ubuntu.

Here's the error I'm receiving:

Code: Select all

E: Failed to fetch https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/main/binary-amd64/Packages.gz  File has unexpected size (377283 != 375183). Mirror sync in progress? [IP: 199.232.26.217 443]
   Hashes of expected file:
    - Filesize:375183 [weak]
    - SHA512:d0c6d08b05bdfd7f615b83678e3164d8e4cbb19bd48bf108260bf5156b7bf57ba3c12af60dbed0a4e14df28921510755c56446429a7798af5c2de291dfb96d91
    - SHA256:f46f19c9a5f8df95184ee8064716ba73e17c180f4dae4d1019505d5230164316
    - SHA1:547f08008a4dfb1d90adcb7d52008a401879c81f [weak]
    - MD5Sum:36d9fa050b74428e65774e968bb44e7a [weak]
   Release file created at: Sat, 17 May 2025 13:08:54 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
This looks like a possible mirror sync issue or a delay in updating the release file metadata. Can someone from the WineHQ team confirm if this is known and being worked on?

Thanks in advance for the help!
msetzerii
Level 2
Level 2
Posts: 27
Joined: Tue May 12, 2020 2:45 pm

Re: [Issue] Package hash mismatch from https://dl.winehq.org on apt-get update

Post by msetzerii »

I have a similar issue with Fedora 41 using dnf5?

Stranger thing. Have 5 machines in Guam that have no problems, but 2 here in Nevada that get checksum issue?
Seems to be an issue with /var/cache/libdnf5/WineHQ* folder.
On machines were it gets checksum error, but downloads ok? there is a folder
/var/cache/libdnf5/WineHQ-9dce16cb982ed15a/attrs that has an empty file called expired.

On machines that work that same directory has the attrs directory empty.
But has other directories and files.
./repodata
./repodata/repomd.xml
./repodata/primary.xml.zst
./solv
./solv/WineHQ.solv
./attrs

I've found if I copy the contents from the good directory, to the bad machine, the dnf5 update runds with out the error. But after a while, it will once again get the expired file, and others disappear. Not sure what causes it, but redoing the copy gets it working again.
p00zer
Newbie
Newbie
Posts: 1
Joined: Tue May 27, 2025 3:38 am

Re: [Issue] Package hash mismatch from https://dl.winehq.org on apt-get update

Post by p00zer »

I'm also having the same issue for several days now. Anyone any idea what's going on or how I can fix/workaround this?

Thanks!

Dockerfile

Code: Select all

FROM electronuserland/builder:18-wine
RUN apt-get update
Error

Code: Select all

0.548 Get:5 https://dl.winehq.org/wine-builds/ubuntu jammy/main amd64 Packages [375 kB]
0.548 Err:5 https://dl.winehq.org/wine-builds/ubuntu jammy/main amd64 Packages
0.548   File has unexpected size (377283 != 375183). Mirror sync in progress? [IP: 199.232.26.217 443]
0.548   Hashes of expected file:
0.548    - Filesize:375183 [weak]
0.548    - SHA512:d0c6d08b05bdfd7f615b83678e3164d8e4cbb19bd48bf108260bf5156b7bf57ba3c12af60dbed0a4e14df28921510755c56446429a7798af5c2de291dfb96d91
0.548    - SHA256:f46f19c9a5f8df95184ee8064716ba73e17c180f4dae4d1019505d5230164316
0.548    - SHA1:547f08008a4dfb1d90adcb7d52008a401879c81f [weak]
0.548    - MD5Sum:36d9fa050b74428e65774e968bb44e7a [weak]
0.548   Release file created at: Sat, 17 May 2025 13:08:54 +0000
Full Output

Code: Select all

➜  docker build .                              
[+] Building 33.5s (5/5) FINISHED                                                                                                                                                                                                      docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                                                             0.0s
 => => transferring dockerfile: 111B                                                                                                                                                                                                             0.0s
 => [internal] load metadata for docker.io/electronuserland/builder:18-wine                                                                                                                                                                      0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                0.0s
 => => transferring context: 2B                                                                                                                                                                                                                  0.0s
 => CACHED [1/2] FROM docker.io/electronuserland/builder:18-wine                                                                                                                                                                                 0.0s
 => ERROR [2/2] RUN apt-get update                                                                                                                                                                                                              33.4s
------                                                                                                                                                                                                                                                
 > [2/2] RUN apt-get update:                                                                                                                                                                                                                          
0.278 Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]                                                                                                                                                                                 
0.296 Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]                                                                                                                                                                       
0.394 Get:3 https://dl.winehq.org/wine-builds/ubuntu jammy InRelease [8041 B]                                                                                                                                                                         
0.418 Get:4 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease [3632 B]                                                                                                                                                                 
0.548 Get:5 https://dl.winehq.org/wine-builds/ubuntu jammy/main amd64 Packages [375 kB]
0.548 Err:5 https://dl.winehq.org/wine-builds/ubuntu jammy/main amd64 Packages
0.548   File has unexpected size (377283 != 375183). Mirror sync in progress? [IP: 199.232.26.217 443]
0.548   Hashes of expected file:
0.548    - Filesize:375183 [weak]
0.548    - SHA512:d0c6d08b05bdfd7f615b83678e3164d8e4cbb19bd48bf108260bf5156b7bf57ba3c12af60dbed0a4e14df28921510755c56446429a7798af5c2de291dfb96d91
0.548    - SHA256:f46f19c9a5f8df95184ee8064716ba73e17c180f4dae4d1019505d5230164316
0.548    - SHA1:547f08008a4dfb1d90adcb7d52008a401879c81f [weak]
0.548    - MD5Sum:36d9fa050b74428e65774e968bb44e7a [weak]
0.548   Release file created at: Sat, 17 May 2025 13:08:54 +0000
0.608 Get:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages [219 kB]
0.646 Get:7 http://security.ubuntu.com/ubuntu jammy-security/universe i386 Packages [820 kB]
0.663 Get:8 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
0.886 Get:9 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
0.940 Get:10 https://dl.winehq.org/wine-builds/ubuntu jammy/main i386 Packages [374 kB]
0.940 Err:10 https://dl.winehq.org/wine-builds/ubuntu jammy/main i386 Packages
0.940   
1.138 Get:11 http://archive.ubuntu.com/ubuntu jammy/multiverse i386 Packages [134 kB]
1.227 Get:13 http://archive.ubuntu.com/ubuntu jammy/main i386 Packages [1324 kB]
1.597 Get:14 https://dl.winehq.org/wine-builds/ubuntu jammy/main all Packages [856 B]
1.597 Get:15 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main arm64 Packages [61.1 kB]
1.767 Get:16 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main all Packages [1252 B]
1.798 Get:17 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main armhf Packages [19.2 kB]
1.890 Get:18 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages [790 kB]
2.170 Get:12 https://packagecloud.io/github/git-lfs/ubuntu jammy InRelease [29.2 kB]
2.476 Get:19 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
2.752 Get:21 http://archive.ubuntu.com/ubuntu jammy/universe i386 Packages [9385 kB]
3.049 Get:23 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [47.7 kB]
3.079 Get:20 https://packagecloud.io/github/git-lfs/ubuntu jammy/main i386 Packages [2196 B]
3.110 Get:24 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [2944 kB]
3.638 Get:22 https://packagecloud.io/github/git-lfs/ubuntu jammy/main amd64 Packages [2213 B]
7.034 Get:25 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [4387 kB]
12.18 Get:26 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1245 kB]
12.57 Get:27 http://archive.ubuntu.com/ubuntu jammy/restricted i386 Packages [36.7 kB]
12.59 Get:28 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
13.34 Get:29 http://security.ubuntu.com/ubuntu jammy-security/multiverse i386 Packages [1713 B]
13.34 Get:30 http://security.ubuntu.com/ubuntu jammy-security/restricted i386 Packages [51.4 kB]
25.09 Get:31 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
25.16 Get:32 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
26.01 Get:33 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [55.7 kB]
26.03 Get:34 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1552 kB]
26.85 Get:35 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [4540 kB]
29.77 Get:36 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [1008 kB]
30.28 Get:37 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse i386 Packages [5380 B]
30.28 Get:38 http://archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [958 kB]
30.78 Get:39 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [3255 kB]
32.37 Get:40 http://archive.ubuntu.com/ubuntu jammy-updates/restricted i386 Packages [53.5 kB]
32.40 Get:41 http://archive.ubuntu.com/ubuntu jammy-backports/main i386 Packages [72.9 kB]
32.43 Get:42 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [83.2 kB]
32.47 Get:43 http://archive.ubuntu.com/ubuntu jammy-backports/universe i386 Packages [21.3 kB]
32.49 Get:44 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [35.2 kB]
32.52 Fetched 53.5 MB in 32s (1654 kB/s)
32.52 Reading package lists...
33.36 E: Failed to fetch https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/main/binary-amd64/Packages.gz  File has unexpected size (377283 != 375183). Mirror sync in progress? [IP: 199.232.26.217 443]
33.36    Hashes of expected file:
33.36     - Filesize:375183 [weak]
33.36     - SHA512:d0c6d08b05bdfd7f615b83678e3164d8e4cbb19bd48bf108260bf5156b7bf57ba3c12af60dbed0a4e14df28921510755c56446429a7798af5c2de291dfb96d91
33.36     - SHA256:f46f19c9a5f8df95184ee8064716ba73e17c180f4dae4d1019505d5230164316
33.36     - SHA1:547f08008a4dfb1d90adcb7d52008a401879c81f [weak]
33.36     - MD5Sum:36d9fa050b74428e65774e968bb44e7a [weak]
33.36    Release file created at: Sat, 17 May 2025 13:08:54 +0000
33.36 E: Failed to fetch https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/main/binary-i386/Packages.gz  
33.36 E: Some index files failed to download. They have been ignored, or old ones used instead.
------
Dockerfile:2
--------------------
   1 |     FROM electronuserland/builder:18-wine
   2 | >>> RUN apt-get update
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update" did not complete successfully: exit code: 100
srinidhikrs
Newbie
Newbie
Posts: 4
Joined: Sat Dec 21, 2024 10:18 pm

Re: [Issue] Package hash mismatch from https://dl.winehq.org on apt-get update

Post by srinidhikrs »

The files in url are not of same date

https://dl.winehq.org/wine-builds/ubunt ... nary-i386/
Cybermax
Level 4
Level 4
Posts: 221
Joined: Fri Dec 01, 2017 5:26 pm

Re: [Issue] Package hash mismatch from https://dl.winehq.org on apt-get update

Post by Cybermax »

Same when i am trying to set up my docker image today..
17.98 Reading package lists...
18.74 E: Failed to fetch https://dl.winehq.org/wine-builds/ubunt ... ackages.gz File has unexpected size (136704 != 134638). Mirror sync in progress? [IP: 151.101.194.217 443]
18.74 Hashes of expected file:
18.74 - Filesize:134638 [weak]
18.74 - SHA512:10291c80193c96a4b12587e8fbbfaade0e878254c145d3f1401fd521a5f6a1d4964a18c996bc9ff6c59fcdb70f834c6b329fae04beb14c06cc0f9f149355b81a
18.74 - SHA256:255762b0e5dc747ff564c06aedc4fa73ff44dd77dd85b177ea4a98325f433fbf
18.74 - SHA1:642f17bb9843195bc1dd02d3162c6254cabef521 [weak]
18.74 - MD5Sum:247545e68c55999f76b59e02dde9a28e [weak]
18.74 Release file created at: Sat, 17 May 2025 13:11:11 +0000
18.74 E: Failed to fetch https://dl.winehq.org/wine-builds/ubunt ... ackages.gz
18.74 E: Some index files failed to download. They have been ignored, or old ones used instead.
User avatar
jnewman
Site Admin
Site Admin
Posts: 112
Joined: Thu Feb 21, 2008 3:23 pm

Re: [Issue] Package hash mismatch from https://dl.winehq.org on apt-get update

Post by jnewman »

Try again and let me know if is any better. I've manually cache purged our package files on the CDN.
Cybermax
Level 4
Level 4
Posts: 221
Joined: Fri Dec 01, 2017 5:26 pm

Re: [Issue] Package hash mismatch from https://dl.winehq.org on apt-get update

Post by Cybermax »

jnewman wrote: Fri May 30, 2025 11:00 am Try again and let me know if is any better. I've manually cache purged our package files on the CDN.
Seems to work fine for me now. Thanks.
Post Reply