apt-get failure - file size/hash mismatch

It looks like something is wrong with the Whonix’s apt-get repository - whonix-firewall and anon-ws-disable-stacked-tor deb files do not match Packages file:

$ sudo apt-get download whonix-firewall
Get:1 tor+https://deb.whonix.org bookworm/main amd64 whonix-firewall all 3:15.1-1 [71.9 kB]
Err:1 tor+https://deb.whonix.org bookworm/main amd64 whonix-firewall all 3:15.1-1
  File has unexpected size (71896 != 71904). Mirror sync in progress? [IP: 127.0.0.1 9050]
  Hashes of expected file:
   - SHA256:4a8e217ee0f3d74597a51f137b3c2dcde3d977004e26f8f07dc32c56c24dd85f
   - SHA1:bf65c1bc4df7cbb4b91d439653eb1247519146c1 [weak]
   - MD5Sum:28cc62e0fc65dbd2724228b3d6a5b6a7 [weak]
   - Filesize:71904 [weak]
W: Download is performed unsandboxed as root as file '/home/user/whonix-firewall_3%3a15.1-1_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Failed to fetch tor+https://deb.whonix.org/pool/main/w/whonix-firewall/whonix-firewall_15.1-1_all.deb  File has unexpected size (71896 != 71904). Mirror sync in progress? [IP: 127.0.0.1 9050]
   Hashes of expected file:
    - SHA256:4a8e217ee0f3d74597a51f137b3c2dcde3d977004e26f8f07dc32c56c24dd85f
    - SHA1:bf65c1bc4df7cbb4b91d439653eb1247519146c1 [weak]
    - MD5Sum:28cc62e0fc65dbd2724228b3d6a5b6a7 [weak]
    - Filesize:71904 [weak]
$ sudo apt-get download anon-ws-disable-stacked-tor
Get:1 tor+https://deb.whonix.org bookworm/main amd64 anon-ws-disable-stacked-tor all 3:8.9-1 [45.1 kB]
Err:1 tor+https://deb.whonix.org bookworm/main amd64 anon-ws-disable-stacked-tor all 3:8.9-1
  File has unexpected size (45132 != 45140). Mirror sync in progress? [IP: 127.0.0.1 9050]
  Hashes of expected file:
   - SHA256:b593c7c8b2a48432ec614b6687b0c985281df7411eababc6cc1312b74aba29b0
   - SHA1:6ea3df86ffdafcac3ed390c3e885e46e3315034a [weak]
   - MD5Sum:35ce9290e31ddcb82d0e1e9a8b3b7f37 [weak]
   - Filesize:45140 [weak]
W: Download is performed unsandboxed as root as file '/home/user/anon-ws-disable-stacked-tor_3%3a8.9-1_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Failed to fetch tor+https://deb.whonix.org/pool/main/a/anon-ws-disable-stacked-tor/anon-ws-disable-stacked-tor_8.9-1_all.deb  File has unexpected size (45132 != 45140). Mirror sync in progress? [IP: 127.0.0.1 9050]
   Hashes of expected file:
    - SHA256:b593c7c8b2a48432ec614b6687b0c985281df7411eababc6cc1312b74aba29b0
    - SHA1:6ea3df86ffdafcac3ed390c3e885e46e3315034a [weak]
    - MD5Sum:35ce9290e31ddcb82d0e1e9a8b3b7f37 [weak]
    - Filesize:45140 [weak]

It’s very recent issue - openQA run 19h ago was okay, and the one 7h ago failed.

1 Like

Could it be maybe update uploaded to bookworm-developers without bumping the version? whonix-firewall package size/hash in https://deb.whonix.org/dists/bookworm-developers/main/binary-amd64/Packages.gz matches the deb file on the server.

1 Like

Unfortunately, I had some data loss and my local version of the remote APT repository.

Therefore, the repository had to be rebuild from source code and re-uploaded.

This has been done.

Did that fix the issue?

1 Like

For those two packages yes. Let me try to restart the full test.

1 Like

After installing the latest updates I experience a dracut: input/output error when using Live Mode. Can this be related to the repository rebuild?

1 Like

I highly doubt that.

1 Like

Do you have an idea what can cause it? It appeared just after the update dracut failed to set up standard: input/output error. This causes the Live Mode to

1 Like

No.

Off-topic here. Separate forum thread required.

Proper bug report / support request as per Bug Reports, Software Development and Feature Requests required.

1 Like

Separate forum thread started.

1 Like

All seems to be fine now.

2 Likes