This is still a problem, at least with some repos:
1. `apt-get update` returns a non-zero exit code and so automated scripts that do `apt-get update && apt-get install ...` will fail to install the required packages.
2. Even if we ignore the error, the index files are not being accepted and packages described in the index cannot be installed.
Here is an example of a trying to install the CUDA driver inside an Ubuntu 16.04 docker container:
@juliank:
This is still a problem, at least with some repos:
1. `apt-get update` returns a non-zero exit code and so automated scripts that do `apt-get update && apt-get install ...` will fail to install the required packages.
2. Even if we ignore the error, the index files are not being accepted and packages described in the index cannot be installed.
Here is an example of a trying to install the CUDA driver inside an Ubuntu 16.04 docker container:
Step 4 : RUN dpkg -i cuda-repo- ubuntu1504_ 7.5-18_ amd64.deb && apt-get update ; apt-get install -y --no-install- recommends cuda ubuntu1504. ubuntu1504_ 7.5-18_ amd64.deb ... ubuntu1504 (7.5-18) ... ubuntu1504 (7.5-18) ... archive. ubuntu. com/ubuntu xenial InRelease [116 kB] archive. ubuntu. com/ubuntu xenial-updates InRelease archive. ubuntu. com/ubuntu xenial-security InRelease developer. download. nvidia. com/compute/ cuda/repos/ ubuntu1504/ x86_64 InRelease developer. download. nvidia. com/compute/ cuda/repos/ ubuntu1504/ x86_64 Release [186 B] developer. download. nvidia. com/compute/ cuda/repos/ ubuntu1504/ x86_64 Release.gpg [181 B] developer. download. nvidia. com/compute/ cuda/repos/ ubuntu1504/ x86_64/ Release. gpg: Signature by key 889BEE522DA6901 03C4B085ED88C3D 385C37D3BE uses weak digest algorithm (SHA1) developer. download. nvidia. com/compute/ cuda/repos/ ubuntu1504/ x86_64/ Release No Hash entry in Release file /var/lib/ apt/lists/ partial/ developer. download. nvidia. com_compute_ cuda_repos_ ubuntu1504_ x86%5f64_ Release, which is considered strong enough for security purposes
---> Running in 3034cbd1c6e2
Selecting previously unselected package cuda-repo-
(Reading database ... 10067 files and directories currently installed.)
Preparing to unpack cuda-repo-
Unpacking cuda-repo-
Setting up cuda-repo-
OK
Get:1 http://
Hit:2 http://
Hit:3 http://
Ign:4 http://
Get:5 http://
Get:6 http://
Fetched 116 kB in 1s (82.1 kB/s)
Reading package lists...
W: http://
E: Failed to fetch http://
E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package cuda
As you can see the package is not being installed.