Setting up linux-headers-6.2.0-20-generic (6.2.0-20.20) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 6.2.0-20-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
applying patch disable_fstack-clash-protection_fcf-protection.patch...patching file Kbuild
Hunk #1 succeeded at 118 (offset 47 lines).
Building module:
Cleaning build area...
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'make' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.2.0-20-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/6.2.0-20-generic/build LD=/usr/bin/ld.bfd modules..........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.2.0-20-generic (x86_64)
Consult /var/lib/dkms/nvidia/520.61.05/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.2.0-20-generic (--configure):
installed linux-headers-6.2.0-20-generic package post-installation script subprocess returned error exit status 1
This is the relevant error from the apt term log:
Setting up linux-headers- 6.2.0-20- generic (6.2.0-20.20) ... header_ postinst. d/dkms: shim-signed/ mok/MOK. priv shim-signed/ mok/MOK. der fstack- clash-protectio n_fcf-protectio n.patch. ..patching file Kbuild
/etc/kernel/
* dkms: running auto installation service for kernel 6.2.0-20-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/
Public certificate (MOK): /var/lib/
applying patch disable_
Hunk #1 succeeded at 118 (offset 47 lines).
Building module: BUILD_MODULES= '' KERNEL_ UNAME=6. 2.0-20- generic IGNORE_ XEN_PRESENCE= 1 IGNORE_ CC_MISMATCH= 1 SYSSRC= /lib/modules/ 6.2.0-20- generic/ build LD=/usr/bin/ld.bfd modules. ....... ..(bad exit status: 2) dkms/nvidia/ 520.61. 05/build/ make.log for more information. header_ postinst. d/dkms exited with return code 11 6.2.0-20- generic (--configure): 6.2.0-20- generic package post-installation script subprocess returned error exit status 1
Cleaning build area...
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'make' -j16 NV_EXCLUDE_
Error! Bad return status for module build on kernel: 6.2.0-20-generic (x86_64)
Consult /var/lib/
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
...fail!
run-parts: /etc/kernel/
dpkg: error processing package linux-headers-
installed linux-headers-