Score:0

CUDA installation on Ubuntu 21.04 raises 'Unable to correct problems, you have held broken packages.'

kr flag
PPR

I'm trying to install NVIDIA CUDA drivers on my Dell XPS 15 9560 laptop. Do you know how I can address this error? I attempted installing the missing packages using sudo apt install {package-name} without any success.

___@___-XPS-15-9560:~$ sudo apt install nvidia-cuda-toolkit
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:
 libcuinj64-11.2 : Depends: libnvidia-compute-460 (>= 460) but it is not going to be installed or
                            libnvidia-compute-460-server (>= 460) but it is not going to be installed or
                            libcuda.so.1 (>= 460) but it is not installable or
                            libcuda-11.2-1
 libnvidia-ml-dev : Depends: libnvidia-compute-460 (>= 460) but it is not going to be installed or
                             libnvidia-compute-460-server (>= 460) but it is not going to be installed or
                             libnvidia-ml.so.1 (>= 460) but it is not installable
 nvidia-cuda-dev : Depends: libnvidia-compute-460 (>= 460) but it is not going to be installed or
                            libnvidia-compute-460-server (>= 460) but it is not going to be installed or
                            libcuda.so.1 (>= 460) but it is not installable or
                            libcuda-11.2-1
                   Recommends: libnvcuvid1 but it is not installable
E: Unable to correct problems, you have held broken packages.
user10489 avatar
in flag
There is a conflicting version of cuda installed and the conflicting pieces must be uninstalled to install the new ones. `apt install cuda -oldpackage` will fix it, but you have to get a list of the oldpackages that conflict, and I haven't found a trivial way to do that yet.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.