Nvidia-driver-570 installation is broken (again)

570.133 was working fine, then 570.148 was released some days ago and it introduced some additional dependencies to compile dkms or something like that.
I updated the dependencies and yesterday was working fine, but today I have this error:

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-persistenced : Depends: libnvidia-cfg1 (= 575.57.08-0ubuntu1)
E: Unable to correct problems, you have held broken packages.

Looks like nvidia-persistenced is not pinned to a specific version, but rather with a >= ( I see nvidia-persistenced (>= 570.148.08-1ubuntu1), and a new version was released, generating the issue.

It happened on ubuntu 24.
Please advise.

By the way, the new dependencies for 570.148 were not added as direct dependencies, the compilation was just failing. I had to install build-essential separately.

The install procedure I am using is:

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb 
sudo apt update
sudo apt install --no-install-recommends -y build-essential
sudo apt install --no-install-recommends -y nvidia-driver-570

I hit this error while installing CUDA 12.8 in Docker container.
CUDA runtime for this version depends on libnvidia-compute-570, which matches the driver version that giulio.venturi tried to install.
The issue seems to be in one of the libnvidia-compute-570 dependencies, nvidia-persistenced. The rule says >= 570.148.08-1ubuntu1 (instead of what I think possibly was supposed to be = 570.148.08-1ubuntu1), which then tries to install a wrong (newer) version that depends on libnvidia-cfg1=575.57.08-0ubuntu1 which is then not installable.

A way to work around that is to add nvidia-persistenced=570.148.08-1ubuntu1 in the apt/apt-get command to force the correct version (in this case).

- Daniel

I am not having any luck with these suggestions.

sudo apt install --no-install-recommends -y nvidia-driver-570
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-persistenced : Depends: libnvidia-cfg1 (= 575.57.08-0ubuntu1)

next I tried to add the dependency:

sudo apt install libnvidia-cfg1-575

Then tried to install:

sudo apt install --no-install-recommends -y nvidia-driver-570
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-persistenced : Depends: libnvidia-cfg1 (= 575.57.08-0ubuntu1)
E: Unable to correct problems, you have held broken packages.
1 Like

Just for reference. I have only noticed this issue when I switched to the nvidia developers repository.
I am fairly certain the 570 driver in the main linux repository (at least debian derivatives) does not suffer from this dependency issue.

I am checking my apt sources to make sure I didn’t add a new one.
I have one called: graphics-drivers-ubuntu-ppa-jammy.list

deb https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu/ jammy main
# deb-src https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu/ jammy m>

I tried installing the nvidia driver using apt:

Error! Bad return status for module build on kernel: 6.5.0-1020-oem (x86_64)
Consult /var/lib/dkms/nvidia/570.133.07/build/make.log for more information.
dpkg: error processing package nvidia-dkms-570 (--configure):
 installed nvidia-dkms-570 package post-installation script subprocess returned error exit status 10
Setting up libnvidia-encode-570:amd64 (570.133.07-0ubuntu0.22.04.1) ...
Setting up libnvidia-encode-570:i386 (570.133.07-0ubuntu0.22.04.1) ...
dpkg: dependency problems prevent configuration of nvidia-driver-570:
 nvidia-driver-570 depends on nvidia-dkms-570 (<= 570.133.07-1); however:
  Package nvidia-dkms-570 is not configured yet.
 nvidia-driver-570 depends on nvidia-dkms-570 (>= 570.133.07); however:
  Package nvidia-dkms-570 is not configured yet.

dpkg: error processing package nvidia-driver-570 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Processing triggers for mailcap (3.70+nmu1ubuntu1)
 ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for initramfs-tools (0.140ubuntu13.5) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-60-generic
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libc-bin (2.35-0ubuntu3.10) ...
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
 nvidia-dkms-570
 nvidia-driver-570
E: Sub-process /usr/bin/dpkg returned an error code (1)

You are using some 3rd party repo maintained by one particular individual that seems to be just some rando on the internet (correct me if I’m wrong, but he does not seem to be affiliated with Nvidia in any way). Anyway, you should direct questions like “why repo does not work” directly to him, rather than on this forum, to actually get some meaningful help ;-)
Alternatively you may consider switching to the official Nvidia repo.

Cheers!

good point, but for this I removed that rando repo and then ran the sudo apt install and got the errors listed.
nvidia-bug-report.log.gz (103.6 KB)

Hi @wegunterjr , from the bug report, I see that nouveau is being used instead of the NVIDIA driver.
Please remove / blacklist the nouveau module before installing the driver.

1 Like

okay. remove/blacklisted the nouveau module, and tried installing again. Still failling.

nvidia-bug-report.log.gz (2.2 MB)

Hi @wegunterjr , in the bug report, I see :

[  831.924847] NVRM: API mismatch: the client has the version 580.95.05, but
               NVRM: this kernel module has the version 535.247.01.  Please
               NVRM: make sure that this kernel module and all NVIDIA driver
               NVRM: components have the same version.

It seems that your previous driver version’s module is still loaded.
Could you try again after removing the previous driver completely, thanks.