Hello Forums! I’m trying to get the cuda toolkit installed in a docker environment but every time I get to the point of issuing apt-get install cuda
it runs for a while, then spits out:
Selecting previously unselected package xserver-xorg-legacy.
Preparing to unpack .../418-xserver-xorg-legacy_2%3a1.20.9-2ubuntu1.2~20.04.2_amd64.deb ...
Unpacking xserver-xorg-legacy (2:1.20.9-2ubuntu1.2~20.04.2) ...
Errors were encountered while processing:
/tmp/apt-dpkg-install-Klzpwz/110-nvidia-compute-utils-465_465.19.01-0ubuntu1_amd64.deb
/tmp/apt-dpkg-install-Klzpwz/115-nvidia-utils-465_465.19.01-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
#
From then on, my apt-get in that docker returns this type of message:
# sudo apt-get install cuda
Reading package lists... Done
Building dependency tree
Reading state information... Done
cuda is already the newest version (11.3.1-1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
cuda-drivers-465 : Depends: nvidia-compute-utils-465 (>= 465.19.01) but it is not going to be installed
Depends: nvidia-utils-465 (>= 465.19.01) but it is not going to be installed
nvidia-driver-465 : Depends: nvidia-compute-utils-465 (= 465.19.01-0ubuntu1) but it is not going to be installed
Depends: nvidia-utils-465 (= 465.19.01-0ubuntu1) but it is not going to be installed
Recommends: libnvidia-compute-465:i386 (= 465.19.01-0ubuntu1) but it is not installable
Recommends: libnvidia-decode-465:i386 (= 465.19.01-0ubuntu1) but it is not installable
Recommends: libnvidia-encode-465:i386 (= 465.19.01-0ubuntu1) but it is not installable
Recommends: libnvidia-ifr1-465:i386 (= 465.19.01-0ubuntu1) but it is not installable
Recommends: libnvidia-fbc1-465:i386 (= 465.19.01-0ubuntu1) but it is not installable
Recommends: libnvidia-gl-465:i386 (= 465.19.01-0ubuntu1) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
#
And if I try the --fix-broken-install
option it returns this:
# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
nvidia-compute-utils-465 nvidia-utils-465
The following NEW packages will be installed:
nvidia-compute-utils-465 nvidia-utils-465
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
417 not fully installed or removed.
Need to get 0 B/470 kB of archives.
After this operation, 1518 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 file:/var/cuda-repo-ubuntu2004-11-3-local nvidia-compute-utils-465 465.19.01-0ubuntu1 [106 kB]
Get:2 file:/var/cuda-repo-ubuntu2004-11-3-local nvidia-utils-465 465.19.01-0ubuntu1 [364 kB]
(Reading database ... 114185 files and directories currently installed.)
Preparing to unpack .../nvidia-compute-utils-465_465.19.01-0ubuntu1_amd64.deb ...
Unpacking nvidia-compute-utils-465 (465.19.01-0ubuntu1) ...
dpkg: error processing archive /var/cuda-repo-ubuntu2004-11-3-local/./nvidia-compute-utils-465_465.19.01-0ubuntu1_amd64.deb (--unpack):
unable to make backup link of './usr/bin/nvidia-cuda-mps-control' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../nvidia-utils-465_465.19.01-0ubuntu1_amd64.deb ...
Unpacking nvidia-utils-465 (465.19.01-0ubuntu1) ...
dpkg: error processing archive /var/cuda-repo-ubuntu2004-11-3-local/./nvidia-utils-465_465.19.01-0ubuntu1_amd64.deb (--unpack):
unable to make backup link of './usr/bin/nvidia-debugdump' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cuda-repo-ubuntu2004-11-3-local/./nvidia-compute-utils-465_465.19.01-0ubuntu1_amd64.deb
/var/cuda-repo-ubuntu2004-11-3-local/./nvidia-utils-465_465.19.01-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
#
Is this problem on my side? If it is anyone know how to resolve it?
Thanks,
-Greg