installed linux-image-6.5.0-21-generic package post-installation script subprocess returned error exit status 1

Bug #2067009 reported by Mohamed Fekry

This bug report will be marked for expiration in 40 days if no further activity occurs. (find out why)

10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Version : Ubuntu 6.5.0-17.17-generic 6.5.8

>> sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 0 B/14.0 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up linux-image-6.5.0-21-generic (6.5.0-21.21) ...
Setting up linux-image-6.5.0-35-generic (6.5.0-35.35) ...
Setting up linux-image-6.5.0-26-generic (6.5.0-26.26) ...
Processing triggers for linux-image-6.5.0-21-generic (6.5.0-21.21) ...
/etc/kernel/postinst.d/dkms:
 * dkms: autoinstall for kernel 6.5.0-21-generic was skipped since the kernel he
aders for this kernel do not seem to be installed
/etc/kernel/postinst.d/dracut:
dracut: Generating /boot/initrd.img-6.5.0-21-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 33: /etc/default/grub: want: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-6.5.0-21-generic (--configure):
 installed linux-image-6.5.0-21-generic package post-installation script subproc
ess returned error exit status 1
Processing triggers for linux-image-6.5.0-35-generic (6.5.0-35.35) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.5.0-35-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
cp: error copying '/var/lib/dkms/nvidia/545.23.08/source/nvidia/nv-kernel.o_bina
ry' to '/var/lib/dkms/nvidia/545.23.08/build/nvidia/nv-kernel.o_binary': Input/o
utput error
applying patch disable_fstack-clash-protection_fcf-protection.patch...patching f
ile Kbuild
Hunk #1 succeeded at 134 (offset 63 lines).

Building module:
Cleaning build area...
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'ma
ke' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.5.0-35-generic IGNORE_XEN_PR
ESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/6.5.0-35-generic/build LD=/usr
/bin/ld.bfd modules..........(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-dkms-545
.0.crash'
Error! Bad return status for module build on kernel: 6.5.0-35-generic (x86_64)
Consult /var/lib/dkms/nvidia/545.23.08/build/make.log for more information.
dkms autoinstall on 6.5.0-35-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.5.0-35-generic
   ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.5.0-35-generic (--configure):
 installed linux-image-6.5.0-35-generic package post-installation script subproc
ess returned error exit status 1
Processing triggers for linux-image-6.5.0-26-generic (6.5.0-26.26) ...
/etc/kernel/postinst.d/dkms:
 * dkms: autoinstall for kernel 6.5.0-26-generic was skipped since the kernel he
aders for this kernel do not seem to be installed
/etc/kernel/postinst.d/dracut:
dracut: Generating /boot/initrd.img-6.5.0-26-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 33: /etc/default/grub: want: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-6.5.0-26-generic (--configure):
 installed linux-image-6.5.0-26-generic package post-installation script subproc
ess returned error exit status 1
Errors were encountered while processing:
 linux-image-6.5.0-21-generic
 linux-image-6.5.0-35-generic
 linux-image-6.5.0-26-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
---
ProblemType: Bug
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: mohamed-saidahmed 2445 F.... wireplumber
 /dev/snd/controlC1: mohamed-saidahmed 2445 F.... wireplumber
 /dev/snd/seq: mohamed-saidahmed 2442 F.... pipewire
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 23.10
InstallationDate: Installed on 2023-11-27 (183 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
IwConfig:
 lo no wireless extensions.

 eno0 no wireless extensions.

 enp96s0f1 no wireless extensions.
MachineType: {report['dmi.sys.vendor']} {report['dmi.product.name']}
NonfreeKernelModules: nvidia_drm nvidia_modeset nvidia
Package: linux (not installed)
ProcFB: 0 EFI VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-17-generic root=UUID=f4d75d6e-1af1-41dd-a510-c4ec91e7d73e ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 6.5.0-17.17-generic 6.5.8
RelatedPackageVersions:
 linux-restricted-modules-6.5.0-17-generic N/A
 linux-backports-modules-6.5.0-17-generic N/A
 linux-firmware 20230919.git3672ccab-0ubuntu2.10
RfKill:

Tags: mantic
Uname: Linux 6.5.0-17-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sudo users
_MarkForUpload: True
dmi.bios.date: 08/25/2017
dmi.bios.release: 5.12
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1.0b
dmi.board.asset.tag: Default string
dmi.board.name: X11DAi-N
dmi.board.vendor: Supermicro
dmi.board.version: 1.02
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 1
dmi.chassis.vendor: Supermicro
dmi.chassis.version: 123456789
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1.0b:bd08/25/2017:br5.12:svnSupermicro:pnSYS-7049A-T:pvr123456789:rvnSupermicro:rnX11DAi-N:rvr1.02:cvnSupermicro:ct1:cvr123456789:sku097A15D9:
dmi.product.family: SMC X11
dmi.product.name: SYS-7049A-T
dmi.product.sku: 097A15D9
dmi.product.version: 123456789
dmi.sys.vendor: Supermicro

Revision history for this message
Mohamed Fekry (m-fekry) wrote :
Revision history for this message
Mohamed Fekry (m-fekry) wrote (last edit ):

During upgrade from 23.10 to 24.04 LTS

description: updated
Mohamed Fekry (m-fekry)
affects: linux (Ubuntu) → linux-signed-hwe-6.5 (Ubuntu)
Revision history for this message
Juerg Haefliger (juergh) wrote :

We need logs to debug this:

$ apport-collect 2067009

affects: linux-signed-hwe-6.5 (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Mohamed Fekry (m-fekry) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected mantic
description: updated
Revision history for this message
Mohamed Fekry (m-fekry) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Mohamed Fekry (m-fekry) wrote : Lspci.txt

apport information

Revision history for this message
Mohamed Fekry (m-fekry) wrote : Lspci-vt.txt

apport information

Revision history for this message
Mohamed Fekry (m-fekry) wrote : Lsusb.txt

apport information

Revision history for this message
Mohamed Fekry (m-fekry) wrote : Lsusb-t.txt

apport information

Revision history for this message
Mohamed Fekry (m-fekry) wrote : Lsusb-v.txt

apport information

Revision history for this message
Mohamed Fekry (m-fekry) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Mohamed Fekry (m-fekry) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Mohamed Fekry (m-fekry) wrote : ProcEnviron.txt

apport information

Revision history for this message
Mohamed Fekry (m-fekry) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Mohamed Fekry (m-fekry) wrote : ProcModules.txt

apport information

Revision history for this message
Mohamed Fekry (m-fekry) wrote : UdevDb.txt

apport information

Revision history for this message
Mohamed Fekry (m-fekry) wrote : WifiSyslog.txt

apport information

Revision history for this message
Mohamed Fekry (m-fekry) wrote : acpidump.txt

apport information

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.