#1079591 nvidia-driver: Installing nvidia-driver in sid breaks graphics, even after uninstalled

#1079591#5
Date:
2024-08-25 00:28:47 UTC
From:
To:
Dear Maintainer,

After installing the nvidia-driver package, on boot I get these messages:
[FAILED] Failed to start systemd.modules-load-service - Load Kernel Modules. (this  line is repeated 3 times.)
[FAILED] Failed to start nvidia-persistenced.service - NVIDIA Persistance Daemon.

At this point I'm stuck on the text screen with logs, X doesn't come up.

I can Ctrl-Alt-Fn to get to another text terminal to investigate.

It appears that the NVIDIA kernel modules didn't actually get built. I recall from previous installs seeing DKMS build modules from source; I saw no such messages this time.

apt-purge nvidia-driver failed to restore graphics.

#1079591#10
Date:
2024-08-25 03:18:42 UTC
From:
To:
When I installed linux-headers-amd64, the dkms process built the modules as
expected, and now my machine is back up with graphics.

It appears that the bug is that linux-headers-amd64 needs to be a
dependency of nvidia-driver.