Problem installing CUDA on Ubuntu 22.04.5

Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy

I’ve download https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb) and installed the DEB file.

$ sudo apt install cuda
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nvidia-driver-565-open : Depends: libnvidia-gl-565 (= 565.57.01-0ubuntu1) but it is not installable
Depends: nvidia-dkms-565-open (= 565.57.01-0ubuntu1) but it is not installable
Depends: nvidia-kernel-common-565 (= 565.57.01-0ubuntu1) but it is not installable
Depends: nvidia-kernel-source-565-open (= 565.57.01-0ubuntu1) but it is not installable
Depends: libnvidia-compute-565 (= 565.57.01-0ubuntu1) but it is not installable
Depends: libnvidia-extra-565 (= 565.57.01-0ubuntu1) but it is not installable
Depends: nvidia-compute-utils-565 (= 565.57.01-0ubuntu1) but it is not installable
Depends: libnvidia-decode-565 (= 565.57.01-0ubuntu1) but it is not installable
Depends: libnvidia-encode-565 (= 565.57.01-0ubuntu1) but it is not installable
Depends: nvidia-utils-565 (= 565.57.01-0ubuntu1) but it is not installable
Depends: xserver-xorg-video-nvidia-565 (= 565.57.01-0ubuntu1) but it is not installable
Depends: libnvidia-cfg1-565 (= 565.57.01-0ubuntu1) but it is not installable
Depends: libnvidia-fbc1-565 (= 565.57.01-0ubuntu1) but it is not installable
Recommends: libnvidia-compute-565:i386 (= 565.57.01-0ubuntu1)
Recommends: libnvidia-decode-565:i386 (= 565.57.01-0ubuntu1)
Recommends: libnvidia-encode-565:i386 (= 565.57.01-0ubuntu1)
Recommends: libnvidia-fbc1-565:i386 (= 565.57.01-0ubuntu1)
Recommends: libnvidia-gl-565:i386 (= 565.57.01-0ubuntu1)
E: Unable to correct problems, you have held broken packages.

I’ve updated and upgraded all
sudo apt-get -f upgrade
sudo apt update

and other removal and purging suggested solutions:
sudo apt-get remove nvidia*
sudo apt-get remove libnvidia*
sudo apt-get autoremove

but I always end up with the same result.
1 Like