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 #2017181 reported by Justin Julicher
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Had this running the upgrade to 23.04

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
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: gdm 4509 F.... wireplumber
 /dev/snd/controlC0: gdm 4509 F.... wireplumber
 /dev/snd/seq: gdm 4506 F.... pipewire
CasperMD5CheckResult: pass
Date: Fri Apr 21 09:54:35 2023
ErrorMessage: installed linux-headers-6.2.0-20-generic package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2023-03-17 (34 days ago)
InstallationMedia: Ubuntu 22.10 "Kinetic Kudu" - Release amd64 (20221020)
MachineType: ASRock X670E Pro RS
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-5.19.0-40-generic root=UUID=cf652e31-e4a8-4f9e-bbf6-17a682f79f75 ro rootflags=subvol=@ quiet splash amd_iommu=force-isolation iommu=pt vfio-pci.ids=1002:743f,1002:ab28 vt.handoff=7
Python3Details: /usr/bin/python3.11, Python 3.11.2, python3-minimal, 3.11.2-1
PythonDetails: /usr/bin/python3.10, Python 3.10.7, unpackaged
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions: grub-pc 2.06-2ubuntu16
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-21 (0 days ago)
dmi.bios.date: 02/22/2023
dmi.bios.release: 5.26
dmi.bios.vendor: American Megatrends International, LLC.
dmi.bios.version: 1.18
dmi.board.asset.tag: Default string
dmi.board.name: X670E Pro RS
dmi.board.vendor: ASRock
dmi.board.version: Default string
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.:bvr1.18:bd02/22/2023:br5.26:svnASRock:pnX670EProRS:pvrDefaultstring:rvnASRock:rnX670EProRS:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring:skuDefaultstring:
dmi.product.family: Default string
dmi.product.name: X670E Pro RS
dmi.product.sku: Default string
dmi.product.version: Default string
dmi.sys.vendor: ASRock

Revision history for this message
Justin Julicher (justin-julicher) 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
Frank Sokolic (sokolic) wrote :

Got the same error when upgrading today (2023-04-21) and have to boot using the Linux 5.19.0-40-generic kernel.

Revision history for this message
Frank Sokolic (sokolic) wrote (last edit ):

I've resolved this problem on my computer. The problem was due to the driver for my USB wireless adapter, which had been installed using the instructions from https://ip-life.net/install-realtek-rtl88x2bu-wireless-drivers-linux-mint/

I reinstalled the driver, then ran "sudo apt update" followed by "sudo apt upgrade" and 'linux-headers-6.2.0-20-generic installed correctly.

This was the error I had been getting:
Building module:
Cleaning build area...
'make' -j 12 KVER=6.2.0-20-generic src=/usr/src/rtl88x2bu-5.8.7.1.....(bad exit status: 2)
ERROR (dkms apport): binary package for rtl88x2bu: 5.8.7.1 not found
Error! Bad return status for module build on kernel: 6.2.0-20-generic (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.8.7.1/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.

Revision history for this message
Ivans Zuks (defaul97) wrote (last edit ):

Got same error. After tried to upgrade manually and got this:
Error! The /var/lib/dkms/wireguard/1.0.20200429/6.2.0-20-generic/x86_64/dkms.conf for module wireguard includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.

UPD:

Fixed by removing var/lib/dkms/wireguard/1.0.20200429 folder. Looks like it was old wireguard form Ubuntu 20.04

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

Please remove all non-Ubuntu DKMS packages. They are not supported and (some) don't compile for the 6.2 kernel.

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

Specifically:

Building module:
Cleaning build area...(bad exit status: 2)
make -j16 KERNELRELEASE=6.2.0-20-generic -j16 TTM_NAME=amdttm SCHED_NAME=amd-sched -C /lib/modules/6.2.0-20-generic/build M=/var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.2.0-20-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
   ...fail!

This is not an Ubuntu DKMS.

Changed in linux (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Justin Julicher (justin-julicher) wrote : Re: [Bug 2017181] Re: 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
Download full text (4.0 KiB)

Thanks. I resolved the issue already as the amdgpu dkms hadn't been
released for 23.04 and kernel 6.2. Can close the bug.

Although it might be good to set least warn users that an unsupported dkms
module is installed?

Thanks

On Mon, 1 May 2023, 7:50 pm Juerg Haefliger, <email address hidden>
wrote:

> Specifically:
>
> Building module:
> Cleaning build area...(bad exit status: 2)
> make -j16 KERNELRELEASE=6.2.0-20-generic -j16 TTM_NAME=amdttm
> SCHED_NAME=amd-sched -C /lib/modules/6.2.0-20-generic/build
> M=/var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build...(bad exit status: 2)
> Error! Bad return status for module build on kernel: 6.2.0-20-generic
> (x86_64)
> Consult /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/make.log for more
> information.
> Error! One or more modules failed to install during autoinstall.
> Refer to previous errors for more information.
> ...fail!
>
> This is not an Ubuntu DKMS.
>
> ** Changed in: linux (Ubuntu)
> Status: Confirmed => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2017181
>
> 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
>
> Status in linux package in Ubuntu:
> Invalid
>
> Bug description:
> Had this running the upgrade to 23.04
>
> 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
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC1: gdm 4509 F.... wireplumber
> /dev/snd/controlC0: gdm 4509 F.... wireplumber
> /dev/snd/seq: gdm 4506 F.... pipewire
> CasperMD5CheckResult: pass
> Date: Fri Apr 21 09:54:35 2023
> ErrorMessage: installed linux-headers-6.2.0-20-generic package
> post-installation script subprocess returned error exit status 1
> InstallationDate: Installed on 2023-03-17 (34 days ago)
> InstallationMedia: Ubuntu 22.10 "Kinetic Kudu" - Release amd64 (20221020)
> MachineType: ASRock X670E Pro RS
> ProcFB:
>
> ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-5.19.0-40-generic
> root=UUID=cf652e31-e4a8-4f9e-bbf6-17a682f79f75 ro rootflags=subvol=@ quiet
> splash amd_iommu=force-isolation iommu=pt vfio-pci.ids=1002:743f,1002:ab28
> vt.handoff=7
> Python3Details: /usr/bin/python3.11, Python 3.11.2, python3-minimal,
> 3.11.2-1
> PythonDetails: /usr/bin/python3.10, Python 3.10.7, unpackaged
> RebootRequiredPkgs: Error: path contained symlinks.
> RelatedPackageVersions: grub-pc 2.06-2ubuntu16
> 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-21 (0 days ago)
> dmi.bios.date: 02/22/2023
> dmi.bio...

Read more...

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.