Using Docker image
ARG CUDA_IMAGE="12.4.1-devel-ubuntu22.04"
FROM nvidia/cuda:${CUDA_IMAGE}
RUN apt-get update
RUN apt-get install -y python3 python3-pip wget git build-essential
...
Log Errors:
=> ERROR [fastapi-vllm 2/14] RUN apt-get update
...
...
5.953 Reading package lists...
6.498 E: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/Packages.gz File has unexpected size (1804439 != 1800926). Mirror sync in progress? [IP: 2.21.231.32 443]
6.498 Hashes of expected file:
6.498 - Filesize:1800926 [weak]
6.498 - SHA256:9bb9ea1316ef4b78007f8f08ea93dec5e20f1f83d27df0fc06a81640774eb818
6.498 - SHA1:022a40ca261ac9a03eedd168f4f3ea0b6955e2dc [weak]
6.498 - MD5Sum:6e2941b94b44cdbc27f27332fa6c6061 [weak]
6.498 Release file created at: Thu, 26 Jun 2025 23:02:37 +0000
6.498 E: Some index files failed to download. They have been ignored, or old ones used instead.
From the error logs, it seems like the package metadata is mismatched with the package size. I suppose this issue is from the Nvidia side, I hope to fix the ASAP as our services are dependent. I tried using different versions of CUDA but all I’m getting the same error message. However, downgrading to Ubuntu 20 has no such issue but it didn’t work for me.