Score:-3

nvidia driver package is broken

pk flag

I'm having a problem after trying to upgrade. The message shown is:

cuda-drivers-535 : Depends: nvidia-kernel-common-535 (>= 535.54.03) but it is not installed
nvidia-dkms-535 : Depends: nvidia-kernel-common-535 (= 535.54.03-0ubuntu1) but it is not installed
Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Terrance avatar
id flag
Please read through https://askubuntu.com/help/how-to-ask
Score:0
cn flag

Something like this happened to me in Ubuntu 22.04 after a routine normal update. I was able to resolve it like instructed at this question.

First:

sudo apt update && sudo apt upgrade -y

Second:

sudo apt --fix-broken install

Just in case there are broken packages (half-installed).

Third:

sudo apt-get --with-new-pkgs upgrade <list of packages held back>

In my case they where:

libnvidia-cfg1-535 libnvidia-common-535 libnvidia-compute-535 libnvidia-compute-535:i386 libnvidia-decode-535 libnvidia-decode-535:i386 libnvidia-encode-535 libnvidia-encode-535:i386  libnvidia-extra-535 libnvidia-fbc1-535 libnvidia-fbc1-535:i386 libnvidia-gl-535 libnvidia-gl-535:i386 nvidia-compute-utils-535 nvidia-dkms-535 nvidia-driver-530 nvidia-driver-535  nvidia-kernel-common-535 nvidia-kernel-source-535 nvidia-utils-535 xserver-xorg-video-nvidia-535

But they can be different depending on your configuration so just copy them from the result of apt upgrade. But remember to remove the new line characters.

And finally:

sudo apt autoremove

In case there are packages not needed anymore.

I hope this helps more people. The question is poorly asked but it is one of the first results in search engines.

I sit in a Tesla and translated this thread with Ai:

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.