Apt-get error: File has unexpected size... Mirror sync in progress?

I am running KDE neon 6.3 (based on Ubuntu 24.04) and I’ve installed the 575 series drivers using the datacenter repos (along with cudnn and cuda-toolkit). I am getting the following errors when I am running apt-get update && apt-get dist-upgrade:

Get:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64  libxnvctrl0 575.57.08-0ubuntu1 [36.9 kB]
Err:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64  libxnvctrl0 575.57.08-0ubuntu1
  File has unexpected size (11564 != 36936). Mirror sync in progress? [IP: 23.212.62.142 443]
  Hashes of expected file:
   - SHA512:2487b310041a3648d9e30b70549cdad3f0b6df01f3242499107c72eca257fe42702517520d0f3ba244113f7722e91c89e9b9e90587ae1344e7149cb88aa77d72
   - SHA256:d4b48fdd58e41e73ad81f4e7a296627626db032aefc124965661a04ed80e7f56
   - SHA1:f65137a7e5b963df7faa254a8922b45ab605c3f2 [weak]
   - MD5Sum:4f24d638286d2e43b7a510a513a5312c [weak]
   - Filesize:36936 [weak]
Get:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64  nvidia-persistenced 575.57.08-0ubuntu1 [81.4 kB]
Err:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64  nvidia-persistenced 575.57.08-0ubuntu1
  File has unexpected size (81668 != 81396). Mirror sync in progress? [IP: 23.212.62.142 443]
  Hashes of expected file:
   - SHA512:177ca03914f3a58321b5664d383faf0183139e6ed695be220cc6bc96e5304980afcaffb9bdc0d6c3026956ae9dfe729a911d569800d2c9593083b2e6a897b553
   - SHA256:572707c13a1fcd9134c3340b073551968f5f4b4d1c50784f5f51f85aeb34a03e
   - SHA1:2033d4ee4c93c43982cf64d89d4a4d85ab901c4b [weak]
   - MD5Sum:66b0651e95c0628fe9619dfd1a1e306c [weak]
   - Filesize:81396 [weak]
Get:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64  nvidia-settings 575.57.08-0ubuntu1 [884 kB]
Err:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64  nvidia-settings 575.57.08-0ubuntu1
  File has unexpected size (919670 != 883926). Mirror sync in progress? [IP: 23.212.62.142 443]
  Hashes of expected file:
   - SHA512:e62495764bb61a719f0794212b9613c34d0774e3a8c6be3a42b2c76bb2d96f4fe3eaf12cc4daf19df3e14d8d544bc5430b9b8c8c31bfa5217d41704a07ad2424
   - SHA256:1e77add5a5d6be9d31a41c9bbdea37e49e5a82ac60ba37750b9fd7d18d7ce3de
   - SHA1:3ade0910abcef55a47692a654bc75ad529300e9e [weak]
   - MD5Sum:9d4b8dc037001edcb22978a73a21b966 [weak]
   - Filesize:883926 [weak]
E: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/./libxnvctrl0_575.57.08-0ubuntu1_amd64.deb  File has unexpected size (11564 != 36936). Mirror sync in progress? [IP: 23.212.62.142 443]
   Hashes of expected file:
    - SHA512:2487b310041a3648d9e30b70549cdad3f0b6df01f3242499107c72eca257fe42702517520d0f3ba244113f7722e91c89e9b9e90587ae1344e7149cb88aa77d72
    - SHA256:d4b48fdd58e41e73ad81f4e7a296627626db032aefc124965661a04ed80e7f56
    - SHA1:f65137a7e5b963df7faa254a8922b45ab605c3f2 [weak]
    - MD5Sum:4f24d638286d2e43b7a510a513a5312c [weak]
    - Filesize:36936 [weak]
E: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/./nvidia-persistenced_575.57.08-0ubuntu1_amd64.deb  File has unexpected size (81668 != 81396). Mirror sync in progress? [IP: 23.212.62.142 443]
   Hashes of expected file:
    - SHA512:177ca03914f3a58321b5664d383faf0183139e6ed695be220cc6bc96e5304980afcaffb9bdc0d6c3026956ae9dfe729a911d569800d2c9593083b2e6a897b553
    - SHA256:572707c13a1fcd9134c3340b073551968f5f4b4d1c50784f5f51f85aeb34a03e
    - SHA1:2033d4ee4c93c43982cf64d89d4a4d85ab901c4b [weak]
    - MD5Sum:66b0651e95c0628fe9619dfd1a1e306c [weak]
    - Filesize:81396 [weak]
E: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/./nvidia-settings_575.57.08-0ubuntu1_amd64.deb  File has unexpected size (919670 != 883926). Mirror sync in progress? [IP: 23.212.62.142 443]
   Hashes of expected file:
    - SHA512:e62495764bb61a719f0794212b9613c34d0774e3a8c6be3a42b2c76bb2d96f4fe3eaf12cc4daf19df3e14d8d544bc5430b9b8c8c31bfa5217d41704a07ad2424
    - SHA256:1e77add5a5d6be9d31a41c9bbdea37e49e5a82ac60ba37750b9fd7d18d7ce3de
    - SHA1:3ade0910abcef55a47692a654bc75ad529300e9e [weak]
    - MD5Sum:9d4b8dc037001edcb22978a73a21b966 [weak]
    - Filesize:883926 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Just wondering if anyone else was getting this.

same issue

2 upgraded, 26 newly installed, 0 to remove and 215 not upgraded.
Need to get 376 MB of archives.
After this operation, 1,142 MB of additional disk space will be used.
Get:1 Index of /compute/cuda/repos/ubuntu2404/x86_64 dkms 1:3.2.1-1ubuntu1 [53.9 kB]
Get:2 Index of /compute/cuda/repos/ubuntu2404/x86_64 libnvidia-decode-575 575.57.08-0ubuntu1 [2,555 kB]
File has unexpected size (2554914 != 2555002). Mirror sync in progress? [IP: 23.212.62.149 443]
Hashes of expected file:

Same here.

E: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/./libxnvctrl0_575.57.08-0ubuntu1_amd64.deb File has unexpected size (11536 != 37228). Mirror sync in progress? [IP: 23.222.17.72 443]
Hashes of expected file:
- SHA512:2a1c0c92f1bccb59a09246bb7da403ff0397180591bc8920c2914a4ccb795c35d727d58b2f2be5e9850807f25b858c22564f191299d5e3eb63e9ac4fe052a6c3
- SHA256:957a5d2f33a2905dc16dd26b7542b9c4d18925467714c460bce4a6f97954fe42
- SHA1:af3d6376330f11cc9beb68b3fc1b2780cd879919 [weak]
- MD5Sum:efd16a58614981e7f3b0ed5a31536576 [weak]
- Filesize:37228 [weak]
E: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/./nvidia-persistenced_575.57.08-0ubuntu1_amd64.deb File has unexpected size (82416 != 82428). Mirror sync in progress? [IP: 23.222.17.72 443]
Hashes of expected file:
- SHA512:120136b1df9acbf48d9a5aed8b13da7faeae779b4f28d478ed5cd563fa7973770b2bd6b796ceb06230454032d53bd258f0ac64763a6106c2dd168c42a7739a9a
- SHA256:6d83875f1da5b9849530f6b5e91d3a56ffd570d3f54e212b5acb80b2af6d0e95
- SHA1:6fcba9cf0cf6a70e70491c71543db7dd502950ec [weak]
- MD5Sum:241364210b3d9e84a46f8e2dd2f9dcc1 [weak]
- Filesize:82428 [weak]
E: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/./nvidia-settings_575.57.08-0ubuntu1_amd64.deb File has unexpected size (959558 != 922366). Mirror sync in progress? [IP: 23.222.17.72 443]
Hashes of expected file:
- SHA512:97696ecbc01d12d56841b5e9e707d7dd1583c8dda29a9f9317bf1d62311c1aaea925b3992ab3d4fa9dfad947ae9ff6041615d417431170ef71ad64a0e5083d33
- SHA256:56637b9e3c9d1a687f1934439a855e8056ee8a7491230422dd365453191e0cb3
- SHA1:9f7e9a156f56a66d97e9ff7dd2b836b096b1103d [weak]
- MD5Sum:80991a51d544cbceb09dde1e06040129 [weak]
- Filesize:922366 [weak]

Same here.

same here, this should never occur

we are having the same issue here :(

Same here

same here

Also experiencing this. Looks like the 575 apt package release has issues.

Insert Linus meme here

Same here, has been like this for at least the past 6h

31.02 E: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/./libxnvctrl0_575.57.08-0ubuntu1_amd64.deb  File has unexpected size (37228 != 11536). Mirror sync in progres
s? [IP: 88.221.196.129 443]
31.02    Hashes of expected file:
31.02     - SHA512:55f4e397e7a2e6fd3e58d5ecb907d2b80543d9b777211b41c24e240a776d63a2d3616f394f7ef9482dbb6bdd80b84e5286c114c3bf80cd5261d5b14ca2029e24
31.02     - SHA256:9b94d8e44821355239f701b50ca597d0de4dd8d9ca2c8f4f196dac0c376b6722
31.02     - SHA1:dfcc4bb86c1b1788f75b4188f95cb5044b7c841c [weak]
31.02     - MD5Sum:a3950ec389e79d67666e0db77183483a [weak]
31.02     - Filesize:11536 [weak]
31.02 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

570.3 E: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/./libxnvctrl0_575.57.08-0ubuntu1_amd64.deb File has unexpected size (37228 != 11536). Mirror sync in progress? [IP: 23.46.9.25 443]570.3 Hashes of expected file:570.3 - SHA512:55f4e397e7a2e6fd3e58d5ecb907d2b80543d9b777211b41c24e240a776d63a2d3616f394f7ef9482dbb6bdd80b84e5286c114c3bf80cd5261d5b14ca2029e24570.3 - SHA256:9b94d8e44821355239f701b50ca597d0de4dd8d9ca2c8f4f196dac0c376b6722570.3 - SHA1:dfcc4bb86c1b1788f75b4188f95cb5044b7c841c [weak]570.3 - MD5Sum:a3950ec389e79d67666e0db77183483a [weak]570.3 - Filesize:11536 [weak]570.3 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?------Dockerfile:62--------------------61 | # install ros2 packages62 | >>> RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends \63 | >>> ros-$ROS_DISTRO-desktop \64 | >>> && sudo rm -rf /var/lib/apt/lists/65 |--------------------ERROR: failed to solve: process "/bin/bash -c sudo apt-get update && sudo apt-get install -y --no-install-recommends ros-$ROS_DISTRO-desktop && sudo rm -rf /var/lib/apt/lists/" did not complete successfully: exit code: 100

Same here :(

The checksums don’t match the ones in the Packages file on the repo.

Example
Expected:
nvidia-settings_575.57.08-0ubuntu1_amd64.deb: SHA256: 1de7d0021362957bd77a0484374f9138330f166403fc965517ee2304102429d6
Actual:
nvidia-settings_575.57.08-0ubuntu1_amd64.deb: SHA256: 56637b9e3c9d1a687f1934439a855e8056ee8a7491230422dd365453191e0cb3

Apart from commenting out the cuda-related repos in the list files in /etc/apt/sources.list.d/, I could not find a solution.

If you try this, it should be an ok work around that worked for me on a RunPod cloud GPU (assuming you don’t need to update the drivers):

find your list file: grep -R “developer.download.nvidia.com” /etc/apt/sources.list /etc/apt/sources.list.d/*.list

sed -i ‘s|.developer.download.nvidia.com.|#&|’ /etc/apt/sources.list.d/cuda-ubuntu2204-x86_64.list
apt-get update

proceeed as normal

It comments out the CUDA/Cu DNN repo temporarily if you’re not installing anything from it atm.

seems fixed now

Same here. How did you fix it?

Looks like nvidia updated the repo and things work again. Im going to mark this as solved unless it acts up again.