#1136754 linux-headers-amd64: fails to install with error env NV_VERBOSE=1 make -j8 modules KERNEL_UNAME=7.0.4+deb14-amd64

Package:
linux-headers-amd64
Source:
linux-headers-amd64
Description:
Header files for Linux amd64 configuration (meta-package)
Submitter:
Tim McConnell
Date:
2026-05-16 11:21:02 UTC
Severity:
normal
#1136754#5
Date:
2026-05-15 17:46:49 UTC
From:
To:
Dear Maintainer,
   * What led up to the situation? Attempted to install the package.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?Installation failed

   * What outcome did you expect instead? To install the package with no
errors.

Part of apt output:
Setting up linux-headers-7.0.4+deb14-amd64 (7.0.4-1) ...
/etc/kernel/header_postinst.d/dkms:
Sign command: /lib/modules/7.0.4+deb14-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Autoinstall of module nvidia-current/550.163.01 for kernel 7.0.4+deb14-amd64
(x86_64)
Building module(s).........(bad exit status: 2)
Failed command:
env NV_VERBOSE=1 make -j8 modules KERNEL_UNAME=7.0.4+deb14-amd64

Error! Bad return status for module build on kernel: 7.0.4+deb14-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-current/550.163.01/build/make.log for more
information.

Autoinstall on 7.0.4+deb14-amd64 failed for module(s) nvidia-current(10).

Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 1
dpkg: error processing package linux-headers-7.0.4+deb14-amd64 (--configure):
 old linux-headers-7.0.4+deb14-amd64 package postinst maintainer script
subprocess failed with exit status 1
dpkg: dependency problems prevent configuration of linux-headers-amd64:
 linux-headers-amd64 depends on linux-headers-7.0.4+deb14-amd64 (= 7.0.4-1);
however:
  Package linux-headers-7.0.4+deb14-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-headers-7.0.4+deb14-amd64
 linux-headers-amd64
Error: Sub-process /usr/bin/dpkg returned an error code (1)