package linux-headers-6.5.0-18-generic 6.5.0-18.18~22.04.1 failed to install/upgrade: installed linux-headers-6.5.0-18-generic package post-installation script subprocess returned error exit status 1

Bug #2053603 reported by Ronnie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-hwe-6.5 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Performed simple update & upgrade - issue encountered when processing:

 linux-headers-6.5.0-18-generic
 linux-headers-generic-hwe-22.04
 linux-generic-hwe-22.04
 linux-image-6.5.0-18-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: linux-headers-6.5.0-18-generic 6.5.0-18.18~22.04.1
ProcVersionSignature: Ubuntu 6.5.0-17.17~22.04.1-generic 6.5.8
Uname: Linux 6.5.0-17-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
Date: Thu Feb 15 23:34:42 2024
ErrorMessage: installed linux-headers-6.5.0-18-generic package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2024-02-11 (4 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2)
Python3Details: /usr/bin/python3.10, Python 3.10.12, python3-minimal, 3.10.6-1~22.04
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.2
 apt 2.4.11
SourcePackage: linux-hwe-6.5
Title: package linux-headers-6.5.0-18-generic 6.5.0-18.18~22.04.1 failed to install/upgrade: installed linux-headers-6.5.0-18-generic package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

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

/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.5.0-18-generic
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/amdgpu/6.2.4-1666569.22.04/source/dkms.conf does not exist.
   ...fail!

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

You have a broken and unusupported DKMS modules installed that breaks the kernel headers installation. Try:

$ dkms remove amdgpu/6.2.4-1666569.22.04

Changed in linux-hwe-6.5 (Ubuntu):
status: New → Invalid
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.