package linux-headers-6.5.0-21-generic 6.5.0-21.21 failed to install/upgrade: installed linux-headers-6.5.0-21-generic package post-installation script subprocess returned error exit status 1

Bug #2054866 reported by Al Mamun
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

plese slove this
.

ProblemType: Package
DistroRelease: Ubuntu 23.10
Package: linux-headers-6.5.0-21-generic 6.5.0-21.21
ProcVersionSignature: Ubuntu 6.5.0-17.17-generic 6.5.8
Uname: Linux 6.5.0-17-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: almamunpc 2365 F.... wireplumber
 /dev/snd/controlC1: almamunpc 2365 F.... wireplumber
 /dev/snd/seq: almamunpc 2355 F.... pipewire
CRDA: N/A
CasperMD5CheckResult: pass
Date: Sat Feb 24 12:40:52 2024
ErrorMessage: installed linux-headers-6.5.0-21-generic package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2024-02-10 (14 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
IwConfig:
 lo no wireless extensions.

 enp5s0 no wireless extensions.
MachineType: {report['dmi.sys.vendor']} {report['dmi.product.name']}
ProcFB:
 0 EFI VGA
 1 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-17-generic root=UUID=6adb3052-5462-40b3-a845-fe252d1d312e ro quiet splash vt.handoff=7
Python3Details: /usr/bin/python3.11, Python 3.11.6, python3-minimal, 3.11.4-5
PythonDetails: N/A
RelatedPackageVersions: grub-pc N/A
RfKill:

SourcePackage: linux
Title: package linux-headers-6.5.0-21-generic 6.5.0-21.21 failed to install/upgrade: installed linux-headers-6.5.0-21-generic package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/14/2023
dmi.bios.release: 5.27
dmi.bios.vendor: American Megatrends International, LLC.
dmi.bios.version: F16
dmi.board.asset.tag: Default string
dmi.board.name: B760M DS3H
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias: dmi:bvnAmericanMegatrendsInternational,LLC.:bvrF16:bd12/14/2023:br5.27:svnGigabyteTechnologyCo.,Ltd.:pnB760MDS3H:pvrDefaultstring:rvnGigabyteTechnologyCo.,Ltd.:rnB760MDS3H:rvrx.x:cvnDefaultstring:ct3:cvrDefaultstring:skuDefaultstring:
dmi.product.family: B760 MB
dmi.product.name: B760M DS3H
dmi.product.sku: Default string
dmi.product.version: Default string
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
Al Mamun (almamun2023) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joe Zhou (joezhouchenye) wrote :

Same problem. From /var/log/dpkg.log, Ubuntu 23.10 seems to automatically install kernel 6.5.0-21-generic today. However, it fails with a half-installed status.

Revision history for this message
Juerg Haefliger (juergh) wrote :

Building module:
Cleaning build area...
'make' -j12 KDIR=/lib/modules/6.5.0-21-generic/build modules MODULE_VERSION=2023.11.1-36...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/intel-platform-cse-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.5.0-21-generic (x86_64)
Consult /var/lib/dkms/intel-platform-cse-dkms/2023.11.1-36/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Revision history for this message
Juerg Haefliger (juergh) wrote :

You have a broken/unsupported DKMS module installed that breaks the kernel header installation. Remove it.

$ dkms remove intel-platform-cse-dkms/2023.11.1-36

Changed in linux (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Joe Zhou (joezhouchenye) wrote :

Find the problem, it isn't a broken/unsupported DKMS module for my case.

The system's default gcc/g++ version is 13. While installing CUDA 11.8, I used update-alternatives to change the gcc/g++ version to 11. Switch back to gcc/g++ 13 solved this issue.

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.