I try to install coda in Ubuntu 20.04.6 LTS focal following these instructions:
https://developer.nvidia.com/cuda-12-2-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=deb_local
I have gcc 9.4.0 and
executed sudo apt-get install linux-headers-$(uname -r) before tried to install CUDA
The command line error is:
Setting up nvidia-dkms-535 (535.54.03-0ubuntu1) ...
update-initramfs: deferring update (trigger activated)
A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau
from loading. This can be reverted by deleting the following file:
/etc/modprobe.d/nvidia-graphics-drivers.conf
A new initrd image has also been created. To revert, please regenerate your
initrd by running the following command after deleting the modprobe.d file:
`/usr/sbin/initramfs -u`
*****************************************************************************
*** Reboot your computer and verify that the NVIDIA graphics driver can ***
*** be loaded. ***
*****************************************************************************
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
Removing old nvidia-535.54.03 DKMS files...
------------------------------
Deleting module version: 535.54.03
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-535.54.03 DKMS files...
Building for 5.15.0-107-generic
Building for architecture x86_64
Building initial module for 5.15.0-107-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-kernel-source-535.0.crash'
Error! Bad return status for module build on kernel: 5.15.0-107-generic (x86_64)
Consult /var/lib/dkms/nvidia/535.54.03/build/make.log for more information.
dpkg: error processing package nvidia-dkms-535 (--configure):
installed nvidia-dkms-535 package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of cuda-drivers-535:
cuda-drivers-535 depends on nvidia-dkms-535 (>= 535.54.03); however:
Package nvidia-dkms-535 is not configured yet.
dpkg: error processing package cuda-drivers-535 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-drivers:
cuda-drivers depends on cuda-drivers-535 (= 535.54.03-1); however:
Package cuda-drivers-535 is not configured yet.
dpkg: error processing package cuda-drivers (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-driver-535:
nvidia-driver-535 depends on nvidia-dkms-535 (= 535.54.03-0ubuntu1); however:
Package nvidia-dkms-535 is not configured yet.
dpkg: error processing package nvidia-driver-535 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-runtNo apport report written because the error message indicates it's a follow-up error from a previous failure.
No apport report written because the error
message indicates it's a follow-up error from a previous failure.
No apport report written because MaxReports has already been reached
No apport report written because MaxReports has already been reached
No apport
report written because MaxReports has already been reached
No apport report written because MaxReports has already been reached
No apport report written because MaxReports has already been reached
ime-12-2:
cuda-runtime-12-2 depends on cuda-drivers (>= 535.54.03); however:
Package cuda-drivers is not configured yet.
dpkg: error processing package cuda-runtime-12-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-12-2:
cuda-12-2 depends on cuda-runtime-12-2 (>= 12.2.0); however:
Package cuda-runtime-12-2 is not configured yet.
dpkg: error processing package cuda-12-2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda:
cuda depends on cuda-12-2 (>= 12.2.0); however:
Package cuda-12-2 is not configured yet.
dpkg: error processing package cuda (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-demo-suite-12-2:
cuda-demo-suite-12-2 depends on cuda-runtime-12-2; however:
Package cuda-runtime-12-2 is not configured yet.
dpkg: error processing package cuda-demo-suite-12-2 (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-107-generic
Errors were encountered while processing:
nvidia-dkms-535
cuda-drivers-535
cuda-drivers
nvidia-driver-535
cuda-runtime-12-2
cuda-12-2
cuda
cuda-demo-suite-12-2
E: Sub-process /usr/bin/dpkg returned an error code (1)
The crash files:
crash_files.zip (136.4 KB)
The logfile located in /var/lib/dkms/nvidia/535.54.03/build/make.log
make.log (1.1 MB)
I need help to solve it. Thanks