$ sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
Hit:1 http://azure.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:3 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:4 http://azure.archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:5 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
Get:6 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease [1581 B]
Get:7 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 Packages [1127 kB]
Err:7 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 Packages
File has unexpected size (1127072 != 1126689). Mirror sync in progress? [IP: 152.195.19.142 443]
Hashes of expected file:
- Filesize:1126689 [weak]
- SHA256:7cee2584ca6d97b2f07018ba4f9c3c473fb4e299ed170968a1f8c99c090cc59f
- SHA1:4ee24fac5518a3fcc3702590a0dab32c95484c54 [weak]
- MD5Sum:593faff511765d11055c9919bf2e3bf8 [weak]
Release file created at: Thu, 17 Aug 2023 19:03:05 +0000
Fetched 222 kB in 0s (552 kB/s)
Reading package lists... Done
W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/cuda-ubuntu2004-x86_64.list:1
W: Target Translations (en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/cuda-ubuntu2004-x86_64.list:1
E: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/Packages.gz File has unexpected size (1127072 != 1126689). Mirror sync in progress? [IP: 152.195.19.142 443]
Hashes of expected file:
- Filesize:1126689 [weak]
- SHA256:7cee2584ca6d97b2f07018ba4f9c3c473fb4e299ed170968a1f8c99c090cc59f
- SHA1:4ee24fac5518a3fcc3702590a0dab32c95484c54 [weak]
- MD5Sum:593faff511765d11055c9919bf2e3bf8 [weak]
Same issue here, hope this can be fixed soon…
If in Docker images, we can try following solution:
RUN apt-get clean && apt-get update
Same problem here.
Even after
RUN apt-get clean && apt-get update
Still getting the same message.
Yes, for me too
yes, same problem still persist.
Same issue here, as a workaround (if you don’t actually need to update the nvidia package list) you can do something like this:
mv /etc/apt/sources.list.d/cuda.list ~/cuda.list.bak
maybe we can try another base images.
I use nvidia/cuda:11.8.0-base-ubuntu20.04
have this problem.
I could skip the problem when use nvcr.io/nvidia/pytorch:22.12-py3
as base image
Yes, it’s work for me too. Thanks.
I’m using image nvidia/cuda:11.3.1-devel-ubuntu20.04
and have same issue so it has to be something related with nvidia/cuda base images
I’m pretty sure this is a problem with Nvidia’s apt repo and not the base image itself. The error message says that the remote Packages.gz is slightly larger than expected and I’m certain that my nvcr.io/nvidia/cuda:12.2.0-devel-ubuntu20.04
image is cached and was working just fine yesterday.
Yes, I mean, I completely agree, what I tried to say is that maybe the haven’t update the Sha256 with some new update for the repos and that is causing failures when try to check those files
Since I was using it for a container for PyTorch, I’ve switched to the latest nvcr.io/nvidia/pytorch:23.07-py3
without any problems.
Getting the same error while running sudo apt update
for nvcr.io/nvidia/deepstream:6.3-triton-multiarch
Same issue since about 14 hours ago.
Is there an official channel/site where we can see the status and updates on this issue?
Same issue here :( but i can confirm it works with
tensorflow/tensorflow:2.14.0rc0-gpu-jupyter
Having the same issue here from the pytorchlightning/pytorch_lightning:base-cuda-py3.10-torch2.0-cuda11.8.0 containers
getting the same issue with nvidia/cuda:11.8.0-runtime-ubuntu20.04
same issue since this morning… with FROM nvidia/cuda:11.1.1-base-ubuntu20.04