I have a K2200 on Ubuntu server 20.04 and trying to install drivers first with NVIDIA-Linux-x86_64-465.27.run with no success so i ran from ppa
sudo apt install --no-install-recommends nvidia-cuda-toolkit nvidia-headless-460 nvidia-utils-460 libnvidia-encode-460
and get these issues
(Reading database ... 149493 files and directories currently installed.)
Removing libnvidia-cfg1-450:amd64 (450.119.03-0ubuntu0.20.04.1) ...
Removing libnvidia-encode-450:amd64 (450.119.03-0ubuntu0.20.04.1) ...
Removing libnvidia-decode-450:amd64 (450.119.03-0ubuntu0.20.04.1) ...
dpkg: libnvidia-compute-450: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) | lib
cuda-10.1-1; however:
Package libcuda1 is not installed.
Package libnvidia-compute-460:amd64 which provides libcuda1 is not installed.
Package libnvidia-compute-450: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-460:amd64 which provides libcuda-10.1-1 is not installed.
Package libnvidia-compute-450: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) | lib
cuda-10.1-1; however:
Package libcuda1 is not installed.
Package libnvidia-compute-460:amd64 which provides libcuda1 is not installed.
Package libnvidia-compute-450: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-460:amd64 which provides libcuda-10.1-1 is not installed.
Package libnvidia-compute-450: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) | libnvidia-tesla-418-ml1 (>=
418.39) | libnvidia-ml.so.1 (>= 418.39); however:
Package libnvidia-ml1 is not installed.
Package libnvidia-compute-460:amd64 which provides libnvidia-ml1 is not installed.
Package libnvidia-compute-450: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.
Removing libnvidia-compute-450:amd64 (450.119.03-0ubuntu0.20.04.1) ...
Selecting previously unselected package libnvidia-compute-460:amd64.
(Reading database ... 149453 files and directories currently installed.)
Preparing to unpack .../00-libnvidia-compute-460_460.73.01-0ubuntu0.20.04.1_amd64.deb ...
Unpacking libnvidia-compute-460:amd64 (460.73.01-0ubuntu0.20.04.1) ...
Selecting previously unselected package libnvidia-cfg1-460:amd64.
Preparing to unpack .../01-libnvidia-cfg1-460_460.73.01-0ubuntu0.20.04.1_amd64.deb ...
Unpacking libnvidia-cfg1-460:amd64 (460.73.01-0ubuntu0.20.04.1) ...
Selecting previously unselected package libnvidia-decode-460:amd64.
Preparing to unpack .../02-libnvidia-decode-460_460.73.01-0ubuntu0.20.04.1_amd64.deb ...
Unpacking libnvidia-decode-460:amd64 (460.73.01-0ubuntu0.20.04.1) ...
Selecting previously unselected package libnvidia-encode-460:amd64.
Preparing to unpack .../03-libnvidia-encode-460_460.73.01-0ubuntu0.20.04.1_amd64.deb ...
Unpacking libnvidia-encode-460:amd64 (460.73.01-0ubuntu0.20.04.1) ...
Selecting previously unselected package nvidia-compute-utils-460.
Preparing to unpack .../04-nvidia-compute-utils-460_460.73.01-0ubuntu0.20.04.1_amd64.deb ...
Unpacking nvidia-compute-utils-460 (460.73.01-0ubuntu0.20.04.1) ...
Selecting previously unselected package nvidia-kernel-source-460.
Preparing to unpack .../05-nvidia-kernel-source-460_460.73.01-0ubuntu0.20.04.1_amd64.deb ...
Unpacking nvidia-kernel-source-460 (460.73.01-0ubuntu0.20.04.1) ...
Selecting previously unselected package nvidia-kernel-common-460.
Preparing to unpack .../06-nvidia-kernel-common-460_460.73.01-0ubuntu0.20.04.1_amd64.deb ...
Unpacking nvidia-kernel-common-460 (460.73.01-0ubuntu0.20.04.1) ...
Selecting previously unselected package nvidia-dkms-460.
Preparing to unpack .../07-nvidia-dkms-460_460.73.01-0ubuntu0.20.04.1_amd64.deb ...
Unpacking nvidia-dkms-460 (460.73.01-0ubuntu0.20.04.1) ...
Selecting previously unselected package nvidia-headless-no-dkms-460.
Preparing to unpack .../08-nvidia-headless-no-dkms-460_460.73.01-0ubuntu0.20.04.1_amd64.deb ...
Unpacking nvidia-headless-no-dkms-460 (460.73.01-0ubuntu0.20.04.1) ...
Selecting previously unselected package nvidia-headless-460.
Preparing to unpack .../09-nvidia-headless-460_460.73.01-0ubuntu0.20.04.1_amd64.deb ...
Unpacking nvidia-headless-460 (460.73.01-0ubuntu0.20.04.1) ...
Selecting previously unselected package nvidia-utils-460.
Preparing to unpack .../10-nvidia-utils-460_460.73.01-0ubuntu0.20.04.1_amd64.deb ...
Unpacking nvidia-utils-460 (460.73.01-0ubuntu0.20.04.1) ...
Selecting previously unselected package nvidia-cuda-dev.
Preparing to unpack .../11-nvidia-cuda-dev_10.1.243-3_amd64.deb ...
Unpacking nvidia-cuda-dev (10.1.243-3) ...
Selecting previously unselected package nvidia-profiler.
Preparing to unpack .../12-nvidia-profiler_10.1.243-3_amd64.deb ...
Unpacking nvidia-profiler (10.1.243-3) ...
Selecting previously unselected package nvidia-cuda-toolkit.
Preparing to unpack .../13-nvidia-cuda-toolkit_10.1.243-3_amd64.deb ...
Unpacking nvidia-cuda-toolkit (10.1.243-3) ...
Setting up nvidia-cuda-dev (10.1.243-3) ...
Setting up libnvidia-compute-460:amd64 (460.73.01-0ubuntu0.20.04.1) ...
Setting up nvidia-kernel-common-460 (460.73.01-0ubuntu0.20.04.1) ...
update-initramfs: deferring update (trigger activated)
Setting up nvidia-profiler (10.1.243-3) ...
Setting up nvidia-cuda-toolkit (10.1.243-3) ...
Setting up libnvidia-cfg1-460:amd64 (460.73.01-0ubuntu0.20.04.1) ...
Setting up nvidia-kernel-source-460 (460.73.01-0ubuntu0.20.04.1) ...
Setting up nvidia-utils-460 (460.73.01-0ubuntu0.20.04.1) ...
Setting up libnvidia-decode-460:amd64 (460.73.01-0ubuntu0.20.04.1) ...
Setting up nvidia-compute-utils-460 (460.73.01-0ubuntu0.20.04.1) ...
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `nvidia-persistenced' (UID 112) ...
Adding new group `nvidia-persistenced' (GID 117) ...
Adding new user `nvidia-persistenced' (UID 112) with group `nvidia-persistenced' ...
Not creating home directory `/nonexistent'.
Setting up nvidia-dkms-460 (460.73.01-0ubuntu0.20.04.1) ...
update-initramfs: deferring update (trigger activated)
Loading new nvidia-460.73.01 DKMS files...
Building for 5.4.0-72-generic
Building for architecture x86_64
Building initial module for 5.4.0-72-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-dkms-460.0.crash'
Error! Bad return status for module build on kernel: 5.4.0-72-generic (x86_64)
Consult /var/lib/dkms/nvidia/460.73.01/build/make.log for more information.
dpkg: error processing package nvidia-dkms-460 (--configure):
installed nvidia-dkms-460 package post-installation script subprocess returned error exit status 10
Setting up nvidia-headless-no-dkms-460 (460.73.01-0ubuntu0.20.04.1) ...
Setting up libnvidia-encode-460:amd64 (460.73.01-0ubuntu0.20.04.1) ...
dpkg: dependency problems prevent configuration of nvidia-headless-460:
nvidia-headless-460 depends on nvidia-dkms-460; however:
Package nvidia-dkms-460 is not configured yet.
dpkg: error processing package nvidia-headless-460 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Processing trigge
rs for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for initramfs-tools (0.136ubuntu6.4) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-72-generic
Errors were encountered while processing:
nvidia-dkms-460
nvidia-headless-460
E: Sub-process /usr/bin/dpkg returned an error code (1)
I removed it + reboot and tryed again with same issue
sudo apt update && sudo apt remove '^nvidia' && sudo apt autoremove
cat /proc/version
Linux version 5.4.0-72-generic (buildd@lcy01-amd64-019) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #80-Ubuntu SMP Mon Apr 12 17:35:00 UTC 2021