Broken packages after Ubuntu 24.04.3 upgrade, can't install NVIDIA driver

Ubuntu Version:

Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noble

Desktop Environment (if applicable):
GNOME

Problem Description:
Hi all,

After upgrading to Ubuntu 24.04.3 , my second monitor stopped working. I think it’s a driver issue. I tried removing and reinstalling the Nvidia drivers but ran into problems.

When I run :

sudo ubuntu-drivers autoinstall

I get :

udevadm hwdb is deprecated. Use systemd-hwdb instead.

The following packages have unmet dependencies:
linux-modules-nvidia-580-open-6.8.0-84-generic :
Depends: nvidia-kernel-common-580 (<= 580.65.06-1) but 580.82.09-0ubuntu0~gpu24.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

But I don’t understand what exactly I have to install to fix this.

nvidia-smi fails with :

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

I spent hours trying to solve it and it is really getting on my nerves, how can I at least downgrade to have a working system ?

Relevant System Information:

> ubuntu-drivers devices                                                                                                  ─╯
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v00001xxxxxxx
vendor   : NVIDIA Corporation
model    : AD107M [GeForce RTX 4060 Max-Q / Mobile]
driver   : nvidia-driver-565-open - third-party non-free
driver   : nvidia-driver-580-open - third-party non-free recommended
driver   : nvidia-driver-570 - third-party non-free
driver   : nvidia-driver-570-open - third-party non-free
driver   : nvidia-driver-580-server - distro non-free
driver   : nvidia-driver-565 - third-party non-free
driver   : nvidia-driver-570-server-open - distro non-free
driver   : nvidia-driver-570-server - distro non-free
driver   : nvidia-driver-580-server-open - distro non-free
driver   : nvidia-driver-580 - third-party non-free
driver   : nvidia-driver-535-open - distro non-free
driver   : nvidia-driver-535 - distro non-free
driver   : nvidia-driver-550 - distro non-free
driver   : nvidia-driver-535-server - distro non-free
driver   : nvidia-driver-550-open - distro non-free
driver   : nvidia-driver-535-server-open - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

What I’ve Tried:

I’ve tried:

sudo apt remove --purge '^nvidia-.*' '^libnvidia-.*'
sudo apt autoremove
sudo apt autoclean

I’ve tried :

sudo apt install nvidia-driver-580/noble-updates                                                                        ─╯

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Selected version '580.65.06-0ubuntu0.24.04.4' (Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]) for 'nvidia-driver-580'
Selected version '580.65.06-0ubuntu0.24.04.4' (Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]) for 'libnvidia-gl-580' because of 'nvidia-driver-580'
Selected version '580.65.06-0ubuntu0.24.04.4' (Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]) for 'nvidia-dkms-580' because of 'nvidia-driver-580'
Selected version '580.65.06-0ubuntu0.24.04.4' (Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]) for 'nvidia-kernel-source-580' because of 'nvidia-dkms-580'
Selected version '580.65.06-0ubuntu0.24.04.4' (Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]) for 'nvidia-kernel-common-580' because of 'nvidia-dkms-580'
Selected version '580.65.06-0ubuntu0.24.04.4' (Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]) for 'libnvidia-compute-580' because of 'nvidia-driver-580'
Selected version '580.65.06-0ubuntu0.24.04.4' (Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]) for 'libnvidia-extra-580' because of 'nvidia-driver-580'
Selected version '580.65.06-0ubuntu0.24.04.4' (Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]) for 'nvidia-compute-utils-580' because of 'nvidia-driver-580'
Selected version '580.65.06-0ubuntu0.24.04.4' (Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]) for 'libnvidia-decode-580' because of 'nvidia-driver-580'
Selected version '580.65.06-0ubuntu0.24.04.4' (Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]) for 'libnvidia-encode-580' because of 'nvidia-driver-580'
Selected version '580.65.06-0ubuntu0.24.04.4' (Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]) for 'nvidia-utils-580' because of 'nvidia-driver-580'
Selected version '580.65.06-0ubuntu0.24.04.4' (Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]) for 'xserver-xorg-video-nvidia-580' because of 'nvidia-driver-580'
Selected version '580.65.06-0ubuntu0.24.04.4' (Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]) for 'libnvidia-cfg1-580' because of 'xserver-xorg-video-nvidia-580'
Selected version '580.65.06-0ubuntu0.24.04.4' (Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64]) for 'libnvidia-fbc1-580' because of 'nvidia-driver-580'
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-580 : Depends: libnvidia-gl-580 (= 580.65.06-0ubuntu0.24.04.4) but 580.82.09-0ubuntu0~gpu24.04.1 is to be installed
                     Depends: libnvidia-compute-580 (= 580.65.06-0ubuntu0.24.04.4) but 580.82.09-0ubuntu0~gpu24.04.1 is to be installed
                     Depends: libnvidia-decode-580 (= 580.65.06-0ubuntu0.24.04.4) but 580.82.09-0ubuntu0~gpu24.04.1 is to be installed
                     Depends: libnvidia-encode-580 (= 580.65.06-0ubuntu0.24.04.4) but 580.82.09-0ubuntu0~gpu24.04.1 is to be installed
                     Depends: libnvidia-fbc1-580 (= 580.65.06-0ubuntu0.24.04.4) but 580.82.09-0ubuntu0~gpu24.04.1 is to be installed
                     Recommends: libnvidia-compute-580:i386 (= 580.65.06-0ubuntu0.24.04.4)
                     Recommends: libnvidia-decode-580:i386 (= 580.65.06-0ubuntu0.24.04.4)
                     Recommends: libnvidia-encode-580:i386 (= 580.65.06-0ubuntu0.24.04.4)
                     Recommends: libnvidia-fbc1-580:i386 (= 580.65.06-0ubuntu0.24.04.4)
                     Recommends: libnvidia-gl-580:i386 (= 580.65.06-0ubuntu0.24.04.4)
E: Unable to correct problems, you have held broken packages.

Please I would appreciate any help getting this resolved and my second monitor working again. I spent hours trying to find a solution but I just lack the skill and now the patience.

If not solvable, how can I downgrade this “upgrade” ?

Thanks!


I found this that may be related :

It looks like rubber ducking the problem helped.

I had to follow these very specific steps

sudo apt install aptitude                                                
sudo aptitude install nvidia-driver-580/noble-updates

With aptitude, I was able to choose strategies to mitigate the dependencies errors which was not available before and it worked. Happily typing looking at my monitor.

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.