# Failed to fetch https:.../Packages.gz File has unexpected size (1804439 != 1800926). Mirror sync in progress?

**URL:** <https://forums.developer.nvidia.com/t/failed-to-fetch-https-packages-gz-file-has-unexpected-size-1804439-1800926-mirror-sync-in-progress/338600>\
**Category:** Docker and NVIDIA Docker\
**Tags:** docker, ubuntu, cuda\
**Created:** [July 10, 2025, 11:06am UTC](https://forums.developer.nvidia.com/t/failed-to-fetch-https-packages-gz-file-has-unexpected-size-1804439-1800926-mirror-sync-in-progress/338600 "2025-07-10T11:06:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![naumanhsa965](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/naumanhsa965/32/42187_2.png) [@naumanhsa965](https://forums.developer.nvidia.com/u/naumanhsa965)\
**Post date:** [July 10, 2025, 11:06am UTC](https://forums.developer.nvidia.com/t/failed-to-fetch-https-packages-gz-file-has-unexpected-size-1804439-1800926-mirror-sync-in-progress/338600/1 "2025-07-10T11:06:27Z")

</div>

Using Docker image

```auto
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:

```auto
=> 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.

---

<div class="post-metadata">

**Author:** ![raphael.duerscheid1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@raphael.duerscheid1](https://forums.developer.nvidia.com/u/raphael.duerscheid1)\
**Post date:** [July 25, 2025, 7:15am UTC](https://forums.developer.nvidia.com/t/failed-to-fetch-https-packages-gz-file-has-unexpected-size-1804439-1800926-mirror-sync-in-progress/338600/2 "2025-07-25T07:15:13Z")

</div>

And another one of these happened yesterday: [Apt-get update is failing](https://forums.developer.nvidia.com/t/apt-get-update-is-failing/340190)

---

<div class="post-metadata">

**Author:** ![naumanhsa965](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/naumanhsa965/32/42187_2.png) [@naumanhsa965](https://forums.developer.nvidia.com/u/naumanhsa965)\
**Post date:** [July 25, 2025, 7:23am UTC](https://forums.developer.nvidia.com/t/failed-to-fetch-https-packages-gz-file-has-unexpected-size-1804439-1800926-mirror-sync-in-progress/338600/3 "2025-07-25T07:23:02Z")

</div>

Yeah, I used Ubuntu 24.04 with CUDA 12.6. It worked for me.
