How do you install a specific cuda package version on Ubuntu 22?
The recommended nvidia driver for my graphics card is nvidia-driver-535.
After installing that, nvidia-smi says it supports up to Cuda 12.2.
However if I install cuda via:
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get install cuda
that installs cuda 12.6, which removes the 535 driver, breaking everything and resulting in a non-working Cuda install.
Unfortunately, there doesn’t appear to be any versioned cuda packages, like “cuda-12-2”. Only “cuda”. So it seems Cuda is completely unsupported for my hardware if I go the package route. This is very frustrating, because this package correctly installed cuda 12.2 just four months ago.
1 Like
sudo apt-get install cuda-toolkit-12-2
see here.
I don’t know if this is your cross posting, or not, but at any rate a very similar posting seems to suggest that the cuda-12-2 package is available. As I indicated in the comments there, I had no trouble installing cuda-toolkit-12-2 on a system that has no GPU and no GPU driver.
This is however, not the case for debian bookworm:
I’m using the proprietary drivers from debian12 which is 12.2 and cannot find it in the repo.
Not sure how to best solve this….
CUDA versions prior to 12.3 did not support Debian 12. See here.
I can’t speak to anything packaged by Debian or what their thought process is. GPU drivers and CUDA toolkits are essentially separate trajectories that have some level of independence. That means while you can find a GPU driver for most distros/versions, because NVIDIA intends it that way/attempts to make that possible, the same is not necessarily the case for CUDA toolkits. It looks to me like if you want CUDA toolkit support on Debian 12, the minimum version is 12.3. Even though you can find a GPU driver that can be installed prior to 12.3.
Since you’ve provided no other description of constraints/requirements, if it were my machine, I would update the GPU driver and install a newer CUDA toolkit version than 12.2. If you can’t do that for some reason, I have no solution to suggest.
1 Like