The K80 has Compute Capability 3.7 and the last driver to support it is the 470 series. If you need to install the Cuda Toolkit, 11.8 is the last to support it.
But which should I install, among the below two
sudo apt install nvidia-utils-470 # version 470.256.02-0ubuntu0.22.04.1
sudo apt install nvidia-utils-470-server # version 470.256.02-0ubuntu0.22.04.1
If try to install install āsudo apt install nvidia-utils-470ā, the I am getting the following error. And also, should I install the Toolkit first and then drivers or drivers first and then Toolkit.
Error
Error! Bad return status for module build on kernel: 6.8.0-45-generic (x86_64)
Consult /var/lib/dkms/nvidia/470.256.02/build/make.log for more information.
dpkg: error processing package nvidia-dkms-470 (āconfigure):
installed nvidia-dkms-470 package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-470:
nvidia-driver-470 depends on nvidia-dkms-470 (<= 470.256.02-1); however:
Package nvidia-dkms-470 is not configured yet.
nvidia-driver-470 depends on nvidia-dkms-470 (>= 470.256.02); however:
Package nvidia-dkms-470 is not configured yet.
dpkg: error processing package nvidia-driver-470 (āconfigure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous fai
lure.
Processing triggers for initramfs-tools (0.140ubuntu13.4) ā¦
update-initramfs: Generating /boot/initrd.img-6.8.0-45-generic
Errors were encountered while processing:
nvidia-dkms-470
nvidia-driver-470
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have no experience using ubuntu packages. Your original post mentioned the nvidia-utils package, which I understand does not contain the driver and your machine appears to be currently using the nouveau driver, so I was suggesting which driver version you might like to install.
Looking at what you have just posted, it may be that you have attempted to install the driver and/or toolkit and perhaps have a broken installation, so may want to remove any nvidia packages and start again.
If you havenāt already, and you want the toolkit, read this, in particular section 3. A full toolkit install includes a driver.
thats definitely the right document to read but its also a lot to read. I am also not an obuntu user, but if your still having problems, perhaps this might help:
read the section about preinstallation actions and do the kernel development thing etc.
included in this would be: (you need to specify distro, version and architecture appropriate to your system - what these are is explained in the fileā¦
sudo dpkg -i cuda-repo-.deb
then:
sudo apt-get install cuda-drivers-470
if it bleats about a conflict with other nvidia drivers remove them as per the document, try again
reboot.
you should be able to run nvidia-smi (forgive me if I am wrong but I believe it is installed with the driver)
If it can see the card and tell you anything about it (info that can be provided varies by card type). Also dont be confused by ācuda versionā top right. It does not mean what you have, it means the latest supported version by that driver.
if all good,
sudo apt-get install cuda-toolkit
that will install everything without messing with the driver
AFAIK this method will help survive:
sudo apt update
sudo apt full-upgrade
I am only guessing here, but both crash reports relate to a kernel header file.
If you look at the start of the install document I refered to above, the kernel versions mentioned do not match the version you seem to have installed, which could well be the issue.