On April 28, I installed a brand new Ubuntu Server 20.04 system with Nvidia drivers from the https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/
repository. I have barely used the system at all since then.
Today I attempted to apt install
a completely unrelated package and was greeted with:
The following packages have unmet dependencies:
nvidia-dkms-510 : Depends: nvidia-kernel-common-510 (>= 510.73.05) but 510.47.03-0ubuntu1 is to be installed
nvidia-driver-510 : Depends: nvidia-kernel-common-510 (>= 510.73.05) but 510.47.03-0ubuntu1 is to be installed
Recommends: libnvidia-compute-510:i386 (= 510.73.05-0ubuntu0.20.04.1)
Recommends: libnvidia-decode-510:i386 (= 510.73.05-0ubuntu0.20.04.1)
Recommends: libnvidia-encode-510:i386 (= 510.73.05-0ubuntu0.20.04.1)
Recommends: libnvidia-fbc1-510:i386 (= 510.73.05-0ubuntu0.20.04.1)
Recommends: libnvidia-gl-510:i386 (= 510.73.05-0ubuntu0.20.04.1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
I see that there was an unattended upgrade that was attempted and failed on May 25:
Start-Date: 2022-05-25 06:58:42
Commandline: /usr/bin/unattended-upgrade
Upgrade: libnvidia-compute-510:amd64 (510.47.03-0ubuntu1, 510.73.05-0ubuntu0.20.04.1), libnvidia-encode-510:amd64 (510.47.03-0ubuntu1, 510.73.05-0ubuntu0.20.04.1), nvidia-kernel-common-510:amd64 (510.47.03-0ubuntu1, 510.73.05-0ubuntu0.20.04.1), xserver-xorg-video-nvidia-510:amd64 (510.47.03-0ubuntu1, 510.73.05-0ubuntu0.20.04.1), libnvidia-gl-510:amd64 (510.47.03-0ubuntu1, 510.73.05-0ubuntu0.20.04.1), libnvidia-fbc1-510:amd64 (510.47.03-0ubuntu1, 510.73.05-0ubuntu0.20.04.1), libnvidia-decode-510:amd64 (510.47.03-0ubuntu1, 510.73.05-0ubuntu0.20.04.1), libnvidia-cfg1-510:amd64 (510.47.03-0ubuntu1, 510.73.05-0ubuntu0.20.04.1), nvidia-utils-510:amd64 (510.47.03-0ubuntu1, 510.73.05-0ubuntu0.20.04.1), nvidia-dkms-510:amd64 (510.47.03-0ubuntu1, 510.73.05-0ubuntu0.20.04.1), nvidia-compute-utils-510:amd64 (510.47.03-0ubuntu1, 510.73.05-0ubuntu0.20.04.1), nvidia-driver-510:amd64 (510.47.03-0ubuntu1, 510.73.05-0ubuntu0.20.04.1), libnvidia-extra-510:amd64 (510.47.03-0ubuntu1, 510.73.05-0ubuntu0.20.04.1), nvidia-kernel-source-510:amd64 (510.47.03-0ubuntu1, 510.73.05-0ubuntu0.20.04.1)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2022-05-25 06:59:11
I’ve attached all relevant logs. It would be nice to know how to avoid this situation in the future.
logs.tar.gz (130.1 KB)