So I am using Pytroch and so on requiring CUDA 11.3, therefore to make everythin run successfully I wanted to install the nvidia graphic card driver ‘nvidia-driver-465’
It is also listed in the list of available drivers and I can also select it in the UI to update my drivers. However I always encounter the error below. I already tried removing everything nvidia related, and clean installed but I can not make it work. The same occurs for nvidia-driver-455 which would be the other option using Pytorch LTS with Cuda 11.1,
I can install every other driver version from nvidia enabling cuda 11.2, 11.4 or 11.6 (last one is the latest and recommended)
I am using Ubuntu LTS 20.04 freshly installed.
gcc version 9.4
5.13.0-35-generic, x86_64: installed
------------------------------
Deleting module version: 465.19.01
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-465.19.01 DKMS files...
Building for 5.13.0-35-generic
Building for architecture x86_64
Building initial module for 5.13.0-35-generic
Error! Bad return status for module build on kernel: 5.13.0-35-generic (x86_64)
Consult /var/lib/dkms/nvidia/465.19.01/build/make.log for more information.
dpkg: error processing package nvidia-dkms-465 (--configure):
installed nvidia-dkms-465 package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-465:
nvidia-driver-465 depends on nvidia-dkms-465 (= 465.19.01-0ubuntu1); however:
Package nvidia-dkms-465 is not configured yet.
dpkg: error processing package nvidia-driver-465 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: Generating /boot/initrd.img-5.13.0-35-generic
Errors were encountered while processing:
nvidia-dkms-465
nvidia-driver-465
E: Sub-process /usr/bin/dpkg returned an error code (1)