package linux-headers-6.2.0-20-generic 6.2.0-20.20 failed to install/upgrade: installed linux-headers-6.2.0-20-generic package post-installation script subprocess returned error exit status 1

Bug #2017328 reported by Roman Brodylo
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

While upgrading to ubuntu 23.04
System status reported as "possibly unstable"
not good

ProblemType: Package
DistroRelease: Ubuntu 23.04
Package: linux-headers-6.2.0-20-generic 6.2.0-20.20
ProcVersionSignature: Ubuntu 5.19.0-40.41-generic 5.19.17
Uname: Linux 5.19.0-40-generic x86_64
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Sat Apr 22 06:39:48 2023
DistributionChannelDescriptor:
 # This is the distribution channel descriptor for the OEM CDs
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-somerville-bionic-amd64-20180608-47+italia-whl+X37+italia-whl+X37.1+italia-+X37.2
ErrorMessage: installed linux-headers-6.2.0-20-generic package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2019-09-23 (1306 days ago)
InstallationMedia: Ubuntu 18.04 "Bionic" - Build amd64 LIVE Binary 20180608-09:38
MachineType: Dell Inc. XPS 13 9380
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.19.0-40-generic root=UUID=19d37003-0d66-4336-ba14-e62e0854596d ro quiet splash vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
Python3Details: /usr/bin/python3.11, Python 3.11.2, python3-minimal, 3.11.2-1
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions: grub-pc N/A
SourcePackage: linux
Title: package linux-headers-6.2.0-20-generic 6.2.0-20.20 failed to install/upgrade: installed linux-headers-6.2.0-20-generic package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to lunar on 2023-04-22 (0 days ago)
dmi.bios.date: 12/08/2021
dmi.bios.release: 1.17
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.17.0
dmi.board.name: 0KTW76
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.17.0:bd12/08/2021:br1.17:svnDellInc.:pnXPS139380:pvr:rvnDellInc.:rn0KTW76:rvrA00:cvnDellInc.:ct10:cvr:sku08AF:
dmi.product.family: XPS
dmi.product.name: XPS 13 9380
dmi.product.sku: 08AF
dmi.sys.vendor: Dell Inc.

Revision history for this message
Roman Brodylo (roman-brodylo) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Dan Bowkley (danbowkley) wrote :

Same issue for me, I think.

Revision history for this message
Roman Brodylo (roman-brodylo) wrote :

Maybe some more info?

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
dpkg: dependency problems prevent configuration of linux-headers-generic:
 linux-headers-generic depends on linux-headers-6.2.0-20-generic; however:
  Package linux-headers-6.2.0-20-generic is not configured yet.

dpkg: error processing package linux-headers-generic (--configure):
 dependency problems - leaving unconfigured
Processing triggers for linux-image-6.2.0-20-generic (6.2.0-20.20) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.2.0-20-generic
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/oem-ethernet-realtek-r8152-lp1806322-4.15-dkms/1.10/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/oem-ethernet-realtek-r8152-lp1806322-4.15-dkms/1.10/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/oem-ethernet-realtek-r8152-lp1806322-4.15-dkms/1.10/source/dkms.conf)
Error! The /var/lib/dkms/oem-ethernet-realtek-r8152-lp1806322-4.15-dkms/1.10/6.2.0-20-generic/x86_64/dkms.conf for module oem-ethernet-realtek-r8152-lp1806322-4.15-dkms includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
   ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.2.0-20-generic (--configure):
 installed linux-image-6.2.0-20-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-headers-6.2.0-20-generic
 linux-headers-generic
 linux-image-6.2.0-20-generic

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

You have an old DKMS installed that is no longer required nor supported which prevents a kernel upgrade to 6.2. Please remove it and retry the upgrade.
$ apt purge oem-ethernet-realtek-r8152-lp1806322-4.15-dkms

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

But it really is a bug in the dkms package: LP: #2018226

Revision history for this message
Roman Brodylo (roman-brodylo) wrote :

Thanks for your efforts.
I was able to use the system by booting into an older kernel version (5.19).
I removed quite a number of older kernels (and headers), which lead to initrd image being newly built and from then on I was on kernel 6.2
Problem is solved for me. Would have been grave if I were just a casual user. Rudimentary linux knowledge kept me going.
Once more: thanks to all of you working so hard to make this great system.

Juerg Haefliger (juergh)
tags: added: lunar-upgrade-dkms-failure
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.