I see the same issue on noble (24.04) with hwe enabled.

It is breaking the dist-upgrade.

ai# uname -a
Linux ai 6.11.0-29-generic #29~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jun 26 
14:16:59 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
ai# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.3 LTS
Release:        24.04
Codename:       noble
ai# apt install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgl1-amber-dri libglapi-amber
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-headers-6.14.0-27-generic (6.14.0-27.27~24.04.1) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.14.0-27-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed

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.14.0-27-generic 
IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 
SYSSRC=/lib/modules/6.14.0-27-generic/build LD=/usr/bin/ld.bfd 
CONFIG_X86_KERNEL_IBT= modules..........(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: 
'/var/crash/nvidia-kernel-source-560.0.crash'
Error! Bad return status for module build on kernel: 6.14.0-27-generic (x86_64)
Consult /var/lib/dkms/nvidia/560.35.05/build/make.log for more information.
dkms autoinstall on 6.14.0-27-generic/x86_64 failed for nvidia(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.14.0-27-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.14.0-27-generic (--configure):
 installed linux-headers-6.14.0-27-generic package post-installation script 
subprocess returned error exit status 11
Setting up linux-image-6.14.0-27-generic (6.14.0-27.27~24.04.1) ...
dpkg: dependency problems prevent configuration of 
linux-headers-generic-hwe-24.04:
 linux-headers-generic-hwe-24.04 depends on linux-headers-6.14.0-27-generic; 
however:
  Package linux-headers-6.14.0-27-generic is not configured yet.

dpkg: error processing package linux-headers-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-24.04:
 linux-generic-hwe-24.04 depends on linux-headers-generic-hwe-24.04 (= 
6.14.0-27.27~24.04.1); however:
  Package linux-headers-generic-hwe-24.04 is not configured yet.

dpkg: error processing package linux-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup 
error from a previous failure.
                                                                                
                          No apport report written because the error message 
indicates its a followup error from a previous failure.
                        Processing triggers for linux-image-6.14.0-27-generic 
(6.14.0-27.27~24.04.1) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.14.0-27-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed

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.14.0-27-generic 
IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 
SYSSRC=/lib/modules/6.14.0-27-generic/build LD=/usr/bin/ld.bfd 
CONFIG_X86_KERNEL_IBT= modules..........(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: 
'/var/crash/nvidia-kernel-source-560.0.crash'
Error! Bad return status for module build on kernel: 6.14.0-27-generic (x86_64)
Consult /var/lib/dkms/nvidia/560.35.05/build/make.log for more information.
dkms autoinstall on 6.14.0-27-generic/x86_64 failed for nvidia(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.14.0-27-generic
   ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.14.0-27-generic (--configure):
 installed linux-image-6.14.0-27-generic package post-installation script 
subprocess returned error exit status 11
No apport report written because MaxReports is reached already
                                                              Errors were 
encountered while processing:
 linux-headers-6.14.0-27-generic
 linux-headers-generic-hwe-24.04
 linux-generic-hwe-24.04
 linux-image-6.14.0-27-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to nvidia-graphics-drivers-560 in Ubuntu.
https://bugs.launchpad.net/bugs/2111677

Title:
  nvidia-kernel-source-560 560.35.05-0ubuntu1: nvidia kernel module
  failed to build

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-560/+bug/2111677/+subscriptions


_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to