mario@marietto:/home/mario# sudo apt install nvidia-cuda-toolkit
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
dkms libegl-dev libglu1-mesa-dev libqt5concurrent5 libqt5opengl5 libqt5opengl5-dev libqt5sql5
libqt5sql5-sqlite libvulkan-dev libxext-dev linux-headers-5.4.0-26
linux-headers-5.4.0-26-generic linux-headers-generic qt5-default qt5-qmake qt5-qmake-bin
qtbase5-dev qtbase5-dev-tools qtchooser x11proto-xext-dev
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
g++-8 libaccinj64-10.1 libcublas10 libcublaslt10 libcudart10.1 libcufft10 libcufftw10
libcuinj64-10.1 libcupti-dev libcupti-doc libcupti10.1 libcurand10 libcusolver10 libcusolvermg10
libcusparse10 libjs-underscore libncurses5 libnppc10 libnppial10 libnppicc10 libnppicom10
libnppidei10 libnppif10 libnppig10 libnppim10 libnppist10 libnppisu10 libnppitc10 libnpps10
libnvblas10 libnvgraph10 libnvidia-compute-435 libnvidia-ml-dev libnvjpeg10 libnvrtc10.1
libnvtoolsext1 libnvvm3 libstdc++-8-dev libthrust-dev libtinfo5 libvdpau-dev node-html5shiv
nsight-compute nsight-systems nvidia-cuda-dev nvidia-cuda-doc nvidia-cuda-gdb nvidia-opencl-dev
nvidia-profiler nvidia-visual-profiler ocl-icd-opencl-dev opencl-c-headers
Suggested packages:
g++-8-multilib gcc-8-doc libstdc++-8-doc libvdpau-doc nodejs nvidia-driver
| nvidia-tesla-440-driver | nvidia-tesla-418-driver libpoclu-dev
Recommended packages:
libnvcuvid1
The following NEW packages will be installed:
g++-8 libaccinj64-10.1 libcublas10 libcublaslt10 libcudart10.1 libcufft10 libcufftw10
libcuinj64-10.1 libcupti-dev libcupti-doc libcupti10.1 libcurand10 libcusolver10 libcusolvermg10
libcusparse10 libjs-underscore libncurses5 libnppc10 libnppial10 libnppicc10 libnppicom10
libnppidei10 libnppif10 libnppig10 libnppim10 libnppist10 libnppisu10 libnppitc10 libnpps10
libnvblas10 libnvgraph10 libnvidia-compute-435 libnvidia-ml-dev libnvjpeg10 libnvrtc10.1
libnvtoolsext1 libnvvm3 libstdc++-8-dev libthrust-dev libtinfo5 libvdpau-dev node-html5shiv
nsight-compute nsight-systems nvidia-cuda-dev nvidia-cuda-doc nvidia-cuda-gdb
nvidia-cuda-toolkit nvidia-opencl-dev nvidia-profiler nvidia-visual-profiler ocl-icd-opencl-dev
opencl-c-headers
0 upgraded, 53 newly installed, 0 to remove and 0 not upgraded.
Need to get 1399 MB of archives.
After this operation, 3750 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
mario@marietto:/home/mario# nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243
mario@marietto:/home/mario# nvidia-smi
Could not find command-not-found database. Run 'sudo apt update' to populate it.
nvidia-smi: command not found
mario@marietto:/home/mario# apt install nvidia-settings
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python3-xkit screen-resolution-extra
The following NEW packages will be installed:
nvidia-settings python3-xkit screen-resolution-extra
mario@marietto:/home/mario# nvidia-smi
Could not find command-not-found database. Run 'sudo apt update' to populate it.
nvidia-smi: command not found
mario@marietto:/home/mario# nvidia-settings
nvidia-settings: error while loading shared libraries: libXNVCtrl.so.0: cannot open shared object file: No such file or directory
mario:/home/mario# apt install nvidia-driver-440
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libnvidia-cfg1-440 libnvidia-common-440 libnvidia-compute-440 libnvidia-decode-440
libnvidia-encode-440 libnvidia-extra-440 libnvidia-fbc1-440 libnvidia-gl-440 libnvidia-ifr1-440
nvidia-compute-utils-440 nvidia-dkms-440 nvidia-kernel-common-440 nvidia-kernel-source-440
nvidia-prime nvidia-utils-440 xserver-xorg-video-nvidia-440
Get:17 http://archive.ubuntu.com/ubuntu focal/main amd64 nvidia-prime all 0.8.14 [9164 B]
Fetched 101 MB in 31s (3204 kB/s)
dpkg: libnvidia-compute-435:amd64: dependency problems, but removing anyway as you requested:
libcuinj64-10.1:amd64 depends on libcuda1 (>= 418.39) | libnvidia-tesla-cuda1 (>= 418.39) | libcuda
.so.1 (>= 418.39) | libcuda-10.1-1; however:
Package libcuda1 is not installed.
Package libnvidia-compute-435:amd64 which provides libcuda1 is to be removed.
Package libnvidia-tesla-cuda1 is not installed.
Package libcuda.so.1 is not installed.
Package libcuda-10.1-1 is not installed.
Package libnvidia-compute-435:amd64 which provides libcuda-10.1-1 is to be removed.
libcuinj64-10.1:amd64 depends on libcuda1 (>= 418.39) | libnvidia-tesla-cuda1 (>= 418.39) | libcuda
.so.1 (>= 418.39) | libcuda-10.1-1; however:
Package libcuda1 is not installed.
Package libnvidia-compute-435:amd64 which provides libcuda1 is to be removed.
Package libnvidia-tesla-cuda1 is not installed.
Package libcuda.so.1 is not installed.
Package libcuda-10.1-1 is not installed.
Package libnvidia-compute-435:amd64 which provides libcuda-10.1-1 is to be removed.
libnvidia-ml-dev depends on libnvidia-ml1 (>= 418.39) | libnvidia-tesla-440-ml1 (>= 418.39) | libnv
idia-tesla-418-ml1 (>= 418.39) | libnvidia-ml.so.1 (>= 418.39); however:
Package libnvidia-ml1 is not installed.
Package libnvidia-compute-435:amd64 which provides libnvidia-ml1 is to be removed.
Package libnvidia-tesla-440-ml1 is not installed.
Package libnvidia-tesla-418-ml1 is not installed.
Package libnvidia-ml.so.1 is not installed.
Setting up libnvidia-cfg1-440:amd64 (440.82+really.440.64-0ubuntu6) ...
Setting up nvidia-kernel-source-440 (440.82+really.440.64-0ubuntu6) ...
Setting up nvidia-prime (0.8.14) ...
Setting up libnvidia-extra-440:amd64 (440.82+really.440.64-0ubuntu6) ...
Setting up libnvidia-common-440 (440.82+really.440.64-0ubuntu6) ...
Setting up libnvidia-fbc1-440:amd64 (440.82+really.440.64-0ubuntu6) ...
Setting up libnvidia-compute-440:amd64 (440.82+really.440.64-0ubuntu6) ...
Setting up nvidia-kernel-common-440 (440.82+really.440.64-0ubuntu6) ...
Setting up xserver-xorg-video-nvidia-440 (440.82+really.440.64-0ubuntu6) ...
Setting up libnvidia-decode-440:amd64 (440.82+really.440.64-0ubuntu6) ...
Setting up nvidia-utils-440 (440.82+really.440.64-0ubuntu6) ...
Setting up libnvidia-gl-440:amd64 (440.82+really.440.64-0ubuntu6) ...
Setting up nvidia-compute-utils-440 (440.82+really.440.64-0ubuntu6) ...
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `nvidia-persistenced' (UID 116) ...
Adding new group `nvidia-persistenced' (GID 125) ...
Adding new user `nvidia-persistenced' (UID 116) with group `nvidia-persistenced' ...
Not creating home directory `/nonexistent'.
Setting up nvidia-dkms-440 (440.82+really.440.64-0ubuntu6) ...
INFO:Enable nvidia
DEBUG:/usr/share/ubuntu-drivers-common/quirks does not exist
/var/lib/dpkg/info/nvidia-dkms-440.postinst: 140: /usr/lib/dkms/common.postinst: not found
dpkg: error processing package nvidia-dkms-440 (--configure):
installed nvidia-dkms-440 package post-installation script subprocess returned error exit status 12
7
Setting up libnvidia-encode-440:amd64 (440.82+really.440.64-0ubuntu6) ...
dpkg: dependency problems prevent configuration of nvidia-driver-440:
nvidia-driver-440 depends on nvidia-dkms-440 (= 440.82+really.440.64-0ubuntu6) | nvidia-dkms-440 (=
440.82+really.440.64-0ubuntu4); however:
Package nvidia-dkms-440 is not configured yet.
Version of nvidia-dkms-440 on system is 440.82+really.440.64-0ubuntu6.
dpkg: error processing package nvidia-driver-440 (--configure):
dependency problems - leaving unconfigured
Setting up libnvidia-ifr1-440:amd64 (440.82+really.440.64-0ubuntu6) ...
Processing triggers for man-db (2.9.1-1) ...
No apport report written because the error message indicates its a followup error from a previous fa
ilure.
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Errors were encountered while processing:
nvidia-dkms-440
nvidia-driver-440
E: Sub-process /usr/bin/dpkg returned an error code (1)