📖 ~1 min read
Table of contents
Symptom & Impact
NVIDIA driver fails after kernel update, causing low resolution, no CUDA, or fallback to nouveau.
Environment & Reproduction
Ubuntu 24.04 desktop with proprietary NVIDIA drivers. Issue appears after apt full-upgrade and reboot.
Root Cause Analysis
DKMS module build failed due to missing linux-headers, Secure Boot signing mismatch, or unsupported driver branch.
Quick Triage
Check current GPU state with nvidia-smi and verify kernel with uname -r. Inspect module presence using lsmod | grep nvidia.
Step-by-Step Diagnosis
Review sudo journalctl -b -p err and /var/lib/dkms/*/build/make.log. Confirm installed headers match running kernel exactly.

Solution – Primary Fix
Install matching headers, purge bad driver packages, and reinstall recommended driver via ubuntu-drivers autoinstall; then reboot.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Temporarily switch to nouveau for recovery, then pin a stable NVIDIA branch compatible with your GPU.
Verification & Acceptance Criteria
nvidia-smi returns device details, Xorg/Wayland starts normally, and CUDA workloads execute.
Rollback Plan
Boot previous kernel from GRUB Advanced options and restore prior driver package set.
Prevention & Hardening
Avoid force-installing unsupported branches; test kernel updates on staging before production rollout.
Related Errors & Cross-Refs
DKMS build failed, modprobe: FATAL: Module nvidia not found, Secure Boot module verification failure.
Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.
View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Ubuntu NVIDIA documentation, DKMS manual, and Secure Boot MOK enrollment guidance.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.