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.
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.
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).