Unmet dependencies in Nvidia driver packages Ubuntu 24.04 LTS
https://askubuntu.com/questions/1566551/unmet-dependencies-in-nvidia-driver-packages-ubuntu-24-04-lts
This week my OS updated a few packages and after the update my nvidia drivers stopped working. I was using nvidia-driver-580-open and tried switching to nvidia-driver-590. The computer still felt laggy so I tried switching back to the 580 drivers but I ran into the following issue
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:
linux-modules-nvidia-580-open-generic-hwe-24.04 : Depends: linux-modules-nvidia-580-open-6.17.0-23-generic (= 6.17.0-23.23~24.04.1+1) but it is not going to be installed
Depends: nvidia-kernel-common-580 (>= 580.142) but 580.126.09-0ubuntu0.24.04.2 is to be installed
E: Unable to correct problems, you have held broken packages.
I also tried using
ubuntu-drivers autoinstall
as well as purging, updating and re-installing the drivers.
I am using Ubuntu 24.04 LTS and have a 3060 RTX Mobile
Currently I've tried the 570 and they showed the same issue as the 590, laggy, without smooth transitions in the desktop and couldn't run games.
And I've also tried the 535 drivers that led me to have to log in with tty4 to purge them.
When I try to manually install the packages manually
sudo aptitude -f install nvidia-kernel-common-580
The following NEW packages will be installed:
nvidia-firmware-580-580.126.09{a} nvidia-kernel-common-580
I tried looking online and I couldn't find nvidia-kernel-common-580.142 available anywhere
After trying many solutions from Unable to correct problems, you have held broken packages, none of them worked as when I perform the install I do not have any nvidia related packages on my computer.
Currently the only drivers that somehow work are the Xorg drivers and that's what I'm trying to switch from into nvidia drivers.
It seems to me like the packages are still not available but I cannot confirm the issue is on my side
Also my sources list reads as
Types: deb deb-src URIs: http://pt.archive.ubuntu.com/ubuntu/ Suites: noble noble-updates noble-backports Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg Types: deb deb-src URIs: http://security.ubuntu.com/ubuntu/ Suites: noble-security Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
I've now tried downgrading the kernel from version 6.17.0-23-generic to 6.17.0-22-generic, running into the same issues as before.
I also tried
sudo apt install ca-certificate
sudo rm -rf /var/lib/apt/lists/*
sudo apt update
sudo apt upgrade
sudo ubuntu-drivers autoinstall
And still got the same error as before
Potential temporary fix
So I tried purging and installing the packages once more, but then had trouble returning to not having drivers
I disabled secure boot and after a restart the X.org drivers in the Additional Drivers menu were selected.
To try and properly install them I pressed another random driver, then X.org drivers and selected "apply selected".
I rebooted the computer and after the reboot the 590 proprieetary drivers of nvidia were installed and working correctly.
Still did not fix the issue with the 580 drivers but at least this works.