nvidia-docker icon indicating copy to clipboard operation
nvidia-docker copied to clipboard

Unable to build ubuntu20.04 docker

Open gnthibault opened this issue 4 years ago • 2 comments

This issue seems to be recurrent according to what I saw in the past unfortunately. Image: nvidia/cuda:11.2.1-runtime-ubuntu20.04

Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/Packages.gz File has unexpected size (343435 != 345084). Mirror sync in progress? [IP: 152.195.19.142 443] Hashes of expected file: - Filesize:345084 [weak] - SHA256:e9af61c4b2f44d714b157c49e40e92f98f50c98ef7d0fa45fc52ddd47947549a - SHA1:79bf92660b1b0560c26d0d517c78778cad8a51ce [weak] - MD5Sum:5a2b1f6d478629f661cc4149f9f2a602 [weak] Release file created at: Tue, 06 Jul 2021 23:02:03 +0000 E: Some index files failed to download. They have been ignored, or old ones used instead.

gnthibault avatar Jul 07 '21 11:07 gnthibault

same issue also filed here: https://forums.developer.nvidia.com/t/failed-to-build-docker-based-on-cuda-image/182981

randomgraphics avatar Jul 07 '21 15:07 randomgraphics

Could this be a transient issue that comes up when developer.download.nvidia.com is down / syncing?

Running this now:

~$ docker build -t my-docker $@ -<<EOF
> FROM nvidia/cuda:11.4.0-devel-ubuntu20.04
> RUN apt-get update
> EOF
Sending build context to Docker daemon  2.048kB
Step 1/2 : FROM nvidia/cuda:11.4.0-devel-ubuntu20.04
11.4.0-devel-ubuntu20.04: Pulling from nvidia/cuda
c549ccf8d472: Pull complete
cbdf501d7752: Pull complete
7a1f1c045e33: Pull complete
e7569c5d1eae: Pull complete
c74b3fce51ac: Pull complete
483ca5f86ccd: Pull complete
b4b2520942fd: Pull complete
b4dfcc7c064c: Pull complete
1721dce1cae4: Pull complete
Digest: sha256:db65ccbdc79199a17a37d5647d0783e11fabd30c85cf207aeac7a6286344f9ac
Status: Downloaded newer image for nvidia/cuda:11.4.0-devel-ubuntu20.04
 ---> b2c4c623c230
Step 2/2 : RUN apt-get update
 ---> Running in 07cb3b8d0ba0
Ign:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease
Ign:2 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu2004/x86_64  InRelease
Get:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Release [697 B]
Get:4 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu2004/x86_64  Release [564 B]
Get:5 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Release.gpg [836 B]
Get:6 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu2004/x86_64  Release.gpg [833 B]
Get:7 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Ign:8 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages
Get:8 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages [345 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:10 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu2004/x86_64  Packages [2445 B]
Get:11 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [779 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [368 kB]
Get:13 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [930 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [27.6 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:20 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [416 kB]
Get:22 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1051 kB]
Get:23 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [32.0 kB]
Get:24 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1367 kB]
Get:25 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [6315 B]
Get:26 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [2668 B]
Fetched 18.8 MB in 3s (6062 kB/s)
Reading package lists...
Removing intermediate container 07cb3b8d0ba0
 ---> cdf1896dcef1
Successfully built cdf1896dcef1
Successfully tagged my-docker:latest

The result is the same for the nvidia/cuda:11.2.1-runtime-ubuntu20.04 image.

elezar avatar Jul 08 '21 07:07 elezar