Hi all,
My ultimate objective is to get cuda 12.1.1 (or 12.1) installed for use with Anaconda3's Python. I have two qualified laptops (Core i7s w/32 GB, Quadro P2000s) that I've been ping-ponging between with clean installs of Ubuntu 22.04 LTS and have had various difficulties just getting the environment to work. The order in which Anaconda and cuda are installed seems to affect which errors are manifest but I'll just focus on the current attempt with is to install cuda after Anaconda3.
It seems that to get cuda to work with python, the current limitation is version 12.1 for cuda (as opposed to 12.3 that is otherwise available) which comes with the 530 version of the video drivers for the Nvidia chip. I know the computer should be cuda capable since an earlier attempt where I tried to install cuda first (but before I knew about the version limit for python), I installed cuda 12.3 first with the 545 video driver and it seemed to work okay. At least, the cuda package installed, the video driver installed and was displayed in the "About" system setting and some of the cuda samples executed. However, Anaconda didn't link in and I attribute it to Anaconda's python incompatibility with 12.3 cuda.
So, now to the current attempt. I followed the instructions on
https://developer.nvidia.com/cuda-12...type=deb_local
Previously, I had followed the detailed instructions in nvidia's detailed docs (https://docs.nvidia.com/cuda/cuda-in...nux/index.html) in the instructions but a) there are many extraneous features I don't think I need, at least yet, b) the instructions for 12.1 eventually feed you back to the instructions for 12.3 and c) once you've done this 2 or 6 times , you're apt to strip this down to the minimum to minimize the BS to "is this going to work or not" level. Getting this down to the minimum for 12.1 after Anaconda3 has been installed, on the very last instruction, i.e.
sudo apt-get -y install cuda
the following results where the gist seems to be that package dependencies prevent the last package set (pasted in at the bottom) are prevented from being processed. Various attempts at fixing this don't work so please don't suggest "apt --fix-broken install" as that won't work. I've searched various fixes and they don't work and that's really not what I'm looking for. I can strip this back to the bare bones and get back to the base install. And I can use the other machine to get back to a bare install. I'm looking for a way to get either cuda 12.1 to install and work with anaconda3 or do I need to backlevel to an earlier version of Ubunta, or cuda (or last option python). I need to get to my ultimate objectve eventually. Thanks to all in advance who can offer insight.
-Rocky714
dpkg: dependency problems prevent configuration of nvidia-driver-530:
nvidia-driver-530 depends on nvidia-dkms-530 (= 530.30.02-0ubuntu1); however:
Package nvidia-dkms-530 is not configured yet.
dpkg: error processing package nvidia-driver-530 (--configure):
dependency problems - leaving unconfigured
Setting up libcublas-dev-12-1 (12.1.3.1-1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of cuda-drivers:
cuda-drivers depends on cuda-drivers-530 (= 530.30.02-1); however:
Package cuda-drivers-530 is not configured yet.
dpkg: error processing package cuda-drivers (--configure):
dependency problems - leaving unconfigured
Setting up cuda-opencl-dev-12-1 (12.1.105-1) ...
No apport report written because MaxReports is reached already
Setting up cuda-libraries-dev-12-1 (12.1.1-1) ...
dpkg: dependency problems prevent configuration of cuda-runtime-12-1:
cuda-runtime-12-1 depends on cuda-drivers (>= 530.30.02); however:
Package cuda-drivers is not configured yet.
dpkg: error processing package cuda-runtime-12-1 (--configure):
dependency problems - leaving unconfigured
Setting up cuda-visual-tools-12-1 (12.1.1-1) ...
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of cuda-12-1:
cuda-12-1 depends on cuda-runtime-12-1 (>= 12.1.1); however:
Package cuda-runtime-12-1 is not configured yet.
dpkg: error processing package cuda-12-1 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda:
cuda depends on cuda-12-1 (>= 12.1.1); however:
Package cuda-12-1 is not configured yet.
dpkg: error processing package cuda (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-demo-suite-12-1:
cuda-demo-suite-12-1 depends on cuda-runtime-12-1; however:
Package cuda-runtime-12-1 is not configured yet.
dpkg: error processing package cuda-demo-suite-12-1 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
Setting up cuda-tools-12-1 (12.1.1-1) ...
Setting up cuda-toolkit-12-1 (12.1.1-1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-15-generic
Errors were encountered while processing:
nvidia-dkms-530
cuda-drivers-530
nvidia-driver-530
cuda-drivers
cuda-runtime-12-1
cuda-12-1
cuda
cuda-demo-suite-12-1
E: Sub-process /usr/bin/dpkg returned an error code (1)
Bookmarks