Public bug reported:
I have encountered an issue while installing the NVIDIA driver on
Ubuntu. When I install the nvidia-driver-570 package via Software &
Updates or via apt install, Ubuntu reports that the driver is installed
correctly. However, when I attempt to build the modules with DKMS, I get
the following error:
Error! Your kernel headers for kernel 6.11.0-17-generic cannot be found at
/lib/modules/6.11.0-17-generic/build or /lib/modules/6.11.0-17-generic/source.
Please install the linux-headers-6.11.0-17-generic package or use the
--kernelsourcedir option to tell DKMS where it's located.
Even though the NVIDIA driver seems to be installed correctly, the
kernel headers for the current kernel are missing, which prevents the
module from being compiled. This behavior should not occur, as the
kernel headers should be installed automatically when a new kernel is
installed.
Expected Behavior:
When a new kernel is installed, the corresponding kernel headers should
automatically be installed, allowing the NVIDIA driver to be compiled
and loaded without errors.
Steps to Reproduce:
Install the NVIDIA driver via sudo apt-get install nvidia-driver-570.
Reboot the system.
Attempt to build the NVIDIA driver module via sudo dkms build -m nvidia -v
570.86.16.
Encounter the error indicating missing kernel headers.
Observed Result:
The kernel headers are not automatically installed along with the
driver, and the compilation fails with the error message.
Expected Result:
The kernel headers should be automatically installed, and the
compilation should succeed without issues.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: linux-objects-nvidia-550-6.11.0-17-generic 6.11.0-17.17~24.04.2+1
ProcVersionSignature: Ubuntu 6.11.0-17.17~24.04.2-generic 6.11.11
Uname: Linux 6.11.0-17-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.28.1-0ubuntu3.3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: XFCE
Date: Sat Feb 15 09:30:46 2025
InstallationDate: Installed on 2023-10-25 (480 days ago)
InstallationMedia: Xubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64
(20230807.1)
SourcePackage: linux-restricted-modules-hwe-6.11
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: linux-restricted-modules-hwe-6.11 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug noble
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2098568
Title:
Problem with NVIDIA driver installation: Kernel headers are not
installed automatically
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules-hwe-6.11/+bug/2098568/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs