Following the docs for installation on Ubuntu I get these warnings and errors:
$ sudo apt-key del 7fa2af80
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
$ 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-kernel-common-525 : Conflicts: nvidia-kernel-common
nvidia-kernel-common-530 : Conflicts: nvidia-kernel-common
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
What do I have to do to install CUDA on Ubuntu 22?
1 Like
i have similar error this is ubuntu desktop fresh instalation
i falow the instruction NVIDIA CUDA Installation Guide for Linux
sudo apt-get -y 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.
libnvidia-decode-530 : Depends: libnvidia-compute-530 (= 530.30.02-0ubuntu1) but 530.41.03-0ubuntu0.22.04.2 is to be installed
nvidia-driver-530 : Depends: libnvidia-compute-530 (= 530.30.02-0ubuntu1) but 530.41.03-0ubuntu0.22.04.2 is to be installed
Recommends: nvidia-prime (>= 0.8) but it is not going to be installed
Recommends: libnvidia-compute-530:i386 (= 530.30.02-0ubuntu1)
Recommends: libnvidia-decode-530:i386 (= 530.30.02-0ubuntu1)
Recommends: libnvidia-encode-530:i386 (= 530.30.02-0ubuntu1)
Recommends: libnvidia-fbc1-530:i386 (= 530.30.02-0ubuntu1)
Recommends: libnvidia-gl-530:i386 (= 530.30.02-0ubuntu1)
E: Unable to correct problems, you have held broken packages.
1 Like
me too
ubuntu 22.04, gpu 4090
sudo apt -y 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:
libnvidia-decode-530 : Depends: libnvidia-compute-530 (= 530.30.02-0ubuntu1) but 530.41.03-0ubuntu0.22.04.2 is to be installed
nvidia-driver-530 : Depends: libnvidia-compute-530 (= 530.30.02-0ubuntu1) but 530.41.03-0ubuntu0.22.04.2 is to be installed
Depends: nvidia-utils-530 (= 530.30.02-0ubuntu1) but 530.41.03-0ubuntu0.22.04.2 is to be installed
Recommends: nvidia-prime (>= 0.8) but it is not going to be installed
Recommends: libnvidia-compute-530:i386 (= 530.30.02-0ubuntu1)
Recommends: libnvidia-decode-530:i386 (= 530.30.02-0ubuntu1)
Recommends: libnvidia-encode-530:i386 (= 530.30.02-0ubuntu1)
Recommends: libnvidia-fbc1-530:i386 (= 530.30.02-0ubuntu1)
Recommends: libnvidia-gl-530:i386 (= 530.30.02-0ubuntu1)
E: Unable to correct problems, you have held broken packages.