This bug is missing log files that will aid in diagnosing the
problem. From a terminal window please run:
apport-collect 2098568
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you
are unable to run this command, please add a comment stating
that and change the bug status to 'Confirmed'.
** Package changed: linux-restricted-modules-hwe-6.11 (Ubuntu) => linux (Ubuntu)
** Changed in: linux (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2098568
Title:
Problem with NVIDIA driver installation: Kernel headers are not
installed automatically
Status in linux package in Ubuntu:
Incomplete
Bug description:
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2098568/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp