#1131291 dkms: DKMS Fails to update NVIDIA drivers in new Kernel

#1131291#5
Date:
2026-03-19 20:03:22 UTC
From:
To:
Dear Maintainer,

 What led up to the situation? Tried to upgrade to Kernel version 6.19.6
 What exactly did you do (or not do) that was effective (or ineffective)? Tried
running apt full-upgrade & apt autoremove
 What was the outcome of this action? I get these errors:
Setting up linux-headers-6.19.6+deb14+1-amd64 (6.19.6-2)…
/etc/kernel/header_postinst.d/dkms:
Sign command: /lib/modules/6.19.6+deb14+1-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 6.19.6+deb14+1-amd64
(x86_64)
Building module(s)..........(bad exit status: 2)
Failed command:
env NV_VERBOSE=1 make -j8 modules KERNEL_UNAME=6.19.6+deb14+1-amd64

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

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

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

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

Error! Bad return status for module build on kernel: 6.19.6+deb14+1-amd64
(x86_64)
Consult /var/lib/dkms/nvidia-tesla-535/535.274.02/build/make.log for more
information.

Autoinstall on 6.19.6+deb14+1-amd64 failed for module(s) nvidia-current(10)
nvidia-current-open(10) nvidia-tesla-535(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-6.19.6+deb14+1-amd64
(--configure):
 old linux-headers-6.19.6+deb14+1-amd64 package postinst maintainer script
subprocess failed with exit status 1
Setting up linux-image-6.19.6+deb14+1-amd64 (6.19.6-2)…
/etc/kernel/postinst.d/dkms:
Sign command: /lib/modules/6.19.6+deb14+1-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 6.19.6+deb14+1-amd64
(x86_64)
Building module(s)..........(bad exit status: 2)
Failed command:
env NV_VERBOSE=1 make -j8 modules KERNEL_UNAME=6.19.6+deb14+1-amd64

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

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

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

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

Error! Bad return status for module build on kernel: 6.19.6+deb14+1-amd64
(x86_64)
Consult /var/lib/dkms/nvidia-tesla-535/535.274.02/build/make.log for more
information.

Autoinstall on 6.19.6+deb14+1-amd64 failed for module(s) nvidia-current(10)
nvidia-current-open(10) nvidia-tesla-535(10).

Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
dpkg: error processing package linux-image-6.19.6+deb14+1-amd64 (--configure):
 old linux-image-6.19.6+deb14+1-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-6.19.6+deb14+1-amd64 (=
6.19.6-2); however:
  Package linux-headers-6.19.6+deb14+1-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-amd64:
 linux-image-amd64 depends on linux-image-6.19.6+deb14+1-amd64 (= 6.19.6-2);
however:
  Package linux-image-6.19.6+deb14+1-amd64 is not configured yet.

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

What outcome did you expect instead? For the upgrade to be successful

#1131291#10
Date:
2026-04-06 18:35:51 UTC
From:
To:
Attached log file after latest upgrade.
#1131291#15
Date:
2026-07-12 19:19:53 UTC
From:
To:
Hi,

Same here with kernel 7.0.13+deb14

HTH

#1131291#20
Date:
2026-07-14 08:36:55 UTC
From:
To:
I think the effective bug is already tracked in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1136778

The current bug should be closed as duplicate?