hanks for the pointers. Here’s what I found:

Root cause confirmed: This wasn’t actually about apt dist-upgrade not
running — a kernel 7.0.0-38-generic package had been unpacked by a
previous upgrade attempt, and its postinst hook tried to DKMS-build the
nvidia-590 kernel module against it. That build failed:

Makefile:18: /Kbuild: No such file or directory

nvidia-590’s DKMS source doesn’t handle Ubuntu’s new 7.0.x kernel
versioning scheme — it resolves an internal path variable to empty,
hence the /Kbuild (root) lookup instead of the real path. This failure
left linux-image-7.0.0-38-generic half-configured in dpkg, which blocked
every subsequent apt/dpkg transaction (unattended-upgrades included) for
the better part of two weeks with generic “dpkg returned an error code
(1)” failures — none of which mentioned nvidia at all, which is why it
wasn’t obvious.

Fix: Temporarily disabled the DKMS postinst hook to let dpkg finish
configuring the kernel package, then upgraded to nvidia-driver-595
(595.99.02), which builds and loads cleanly against kernel 7.0.0-38:

$ nvidia-smi
Driver Version: 595.99.02   CUDA Version: 13.2
GPU: NVIDIA GeForce RTX 3050 Mobile — detected and active

Marking this resolved on my end — nvidia-590 is confirmed incompatible
with kernel 7.0.x, and 595 is the correct upgrade path. Thanks for the
help narrowing it down.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173795

Title:
  nvidia-kernel-source-590-open 590.48.01-0ubuntu0.24.04.4: nvidia
  kernel module failed to build

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-590/+bug/2173795/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to