Apt-get update fails when building Docker image - Mirror sync in progress

Hi,

I’m trying to build a docker image based off of http://nvcr.io/nvidia/deepstream:6.3-gc-triton-devel
The build process fails as soon as I run apt-get update.

For example, for a simple Dockerfile like this

ARG BASE_IMAGE=nvcr.io/nvidia/deepstream:6.3-gc-triton-devel
FROM ${BASE_IMAGE}
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update

I get the following output

 > [2/2] RUN apt-get update:                                                                                                                                                                                                                                                                
0.406 Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                                                                                                                                                                                             
0.450 Get:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease [1581 B]                                                                                                                                                                                  
0.539 Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease                                                                                                                                                                                                                                
0.579 Get:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages [1127 kB]                                                                                                                                                                                  
0.579 Err:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages
0.579   File has unexpected size (1127072 != 1126689). Mirror sync in progress? [IP: 152.195.19.142 443]
0.579   Hashes of expected file:
0.579    - Filesize:1126689 [weak]
0.579    - SHA256:7cee2584ca6d97b2f07018ba4f9c3c473fb4e299ed170968a1f8c99c090cc59f
0.579    - SHA1:4ee24fac5518a3fcc3702590a0dab32c95484c54 [weak]
0.579    - MD5Sum:593faff511765d11055c9919bf2e3bf8 [weak]
0.579   Release file created at: Thu, 17 Aug 2023 19:03:05 +0000
0.654 Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
0.848 Hit:6 https://librealsense.intel.com/Debian/apt-repo focal InRelease
0.865 Get:7 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2938 kB]
1.245 Get:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
1.296 Get:9 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [2648 kB]
1.464 Get:10 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1393 kB]
1.731 Get:11 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1092 kB]
2.094 Get:12 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [2795 kB]
2.720 Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3430 kB]
3.060 Fetched 14.6 MB in 3s (5300 kB/s)
3.060 Reading package lists...
3.562 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]
3.562    Hashes of expected file:
3.562     - Filesize:1126689 [weak]
3.562     - SHA256:7cee2584ca6d97b2f07018ba4f9c3c473fb4e299ed170968a1f8c99c090cc59f
3.562     - SHA1:4ee24fac5518a3fcc3702590a0dab32c95484c54 [weak]
3.562     - MD5Sum:593faff511765d11055c9919bf2e3bf8 [weak]
3.562    Release file created at: Thu, 17 Aug 2023 19:03:05 +0000
3.562 E: Some index files failed to download. They have been ignored, or old ones used instead.

I found this blog post and it says

Solution: Report CDN issue to NVIDIA.

Any tips to get this thing working?

If you try again later this typically goes away after a time, when the APT server sync is complete.

I would check that your base image is for aarch64 though, because this says x86_64.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.