Upgrade to 23.04 from 22.10 failed with error for linux-headers-6.2.0-20-generic

Bug #2017446 reported by Mayeul KAUFFMANN
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

evdi modules seems to prevent configuring linux-headers-6.2.0-20-generic.

sudo dpkg --configure -a
Paramétrage de linux-image-6.2.0-20-generic (6.2.0-20.20) ...
Paramétrage de linux-headers-6.2.0-20-generic (6.2.0-20.20) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.2.0-20-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed

Building module:
Cleaning build area...
make -j8 KERNELRELEASE=6.2.0-20-generic all INCLUDEDIR=/lib/modules/6.2.0-20-generic/build/include KVERSION=6.2.0-20-generic DKMS_BUILD=1...(bad exit status: 2)
ERROR (dkms apport): binary package for evdi: 5.2.14 not found
Error! Bad return status for module build on kernel: 6.2.0-20-generic (x86_64)
Consult /var/lib/dkms/evdi/5.2.14/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: erreur de traitement du paquet linux-headers-6.2.0-20-generic (--configure) :
 le sous-processus paquet linux-headers-6.2.0-20-generic script post-installation installé a renvoyé un état de sortie d'erreur 1
dpkg: des problèmes de dépendances empêchent la configuration de linux-headers-generic :
 linux-headers-generic dépend de linux-headers-6.2.0-20-generic; cependant :
 Le paquet linux-headers-6.2.0-20-generic n'est pas encore configuré.

I used evdi (DisplayLink) in the past, I don't need it anymore.
I do not have the displaylink-installer on my system.
So I cannot use solution https://askubuntu.com/a/1464554

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: ubuntu-release-upgrader-core 1:23.04.6
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CrashDB: ubuntu
CrashReports:
 600:0:123:1462045:2023-04-23 20:26:49.518934828 +0200:2023-04-23 21:11:27.434989670 +0200:/var/crash/linux-headers-6.2.0-20-generic.0.crash
 644:0:0:2527871:2023-04-23 20:52:24.955584619 +0200:2023-04-23 20:52:24.747575909 +0200:/var/crash/linux-image-6.2.0-20-generic.0.crash
 640:1000:123:588564:2023-04-23 20:00:08.615777930 +0200:2023-04-23 20:00:08.431769749 +0200:/var/crash/_usr_lib_x86_64-linux-gnu_libexec_kf5_kioslave5.1000.crash
 640:1000:123:3339641:2023-04-23 20:00:37.677089616 +0200:2023-04-23 20:00:36.449033419 +0200:/var/crash/_usr_lib_libreoffice_program_soffice.bin.1000.crash
 640:1000:123:1428023:2023-04-23 20:00:07.083709851 +0200:2023-04-23 20:00:06.591688015 +0200:/var/crash/_usr_lib_x86_64-linux-gnu_libexec_drkonqi.1000.crash
CurrentDesktop: KDE
Date: Sun Apr 23 21:24:50 2023
InstallationDate: Installed on 2019-07-15 (1378 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
PackageArchitecture: all
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: ubuntu-release-upgrader
Symptom: release-upgrade
UpgradeStatus: Upgraded to lunar on 2023-04-23 (0 days ago)
VarLogDistupgradeXorgFixuplog:
 INFO:root:/usr/bin/do-release-upgrade running
 INFO:root:No xorg.conf, exiting

Revision history for this message
Mayeul KAUFFMANN (mayeul-kauffmann) wrote :
Revision history for this message
Mayeul KAUFFMANN (mayeul-kauffmann) wrote :

When I tried to reboot (on the 6.2.0-20-generic kernel), it could not finish the booting process.
I rebooted on an old kernel (5.15.0-27). I re-installed the DisplayLink driver, then uninstalled it.
(Following: https://askubuntu.com/questions/1464536/upgrade-to-23-04-from-22-10-failed-with-error-for-linux-headers-6-2-0-20-generic/1464554 )
Then I removed the evdi modules.
At that stage, I still could not reconfigure the 6.2.0 kernel with sudo dpkg --configure -a
However, I could do
sudo aptitude update
sudo aptitude dist-upgraged

the latter reconfigured the 6.2.0 kernel, which I can now used.

Revision history for this message
Mayeul KAUFFMANN (mayeul-kauffmann) wrote :

(I meant "sudo aptitude dist-upgrade")

Nick Rosbrook (enr0n)
affects: ubuntu-release-upgrader (Ubuntu) → linux (Ubuntu)
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
Greg McCarthy (gmc1) wrote :

Having the same issue but don't have DisplayLink installed.

```
Building module:
Cleaning build area...(bad exit status: 2)
make -j12 KERNELRELEASE=6.2.0-20-generic -j12 TTM_NAME=amdttm SCHED_NAME=amd-sched -C /lib/modules/6.2.0-20-generic/build M=/var/lib/dkms/amdgpu/5.18.13-1510348.22.04/b
uild....(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.2.0-20-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.18.13-1510348.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!
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
No apport report written because MaxReports has already been reached
                                                                    Errors were encountered while processing:
 linux-headers-6.2.0-20-generic
 linux-headers-generic
 linux-headers-generic-hwe-22.04
 linux-generic-hwe-22.04
 linux-generic
 linux-image-6.2.0-20-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
```

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

Building module:
Cleaning build area....
make -j8 KERNELRELEASE=6.2.0-20-generic all INCLUDEDIR=/lib/modules/6.2.0-20-generic/build/include KVERSION=6.2.0-20-generic DKMS_BUILD=1...(bad exit status: 2)
ERROR (dkms apport): binary package for evdi: 5.2.14 not found
Error! Bad return status for module build on kernel: 6.2.0-20-generic (x86_64)
Consult /var/lib/dkms/evdi/5.2.14/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
   ...fail!

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

You both have unsupported DKMS modules installed that fail to build for the 6.2 kernel which prevents the upgrade. Remove them and retry the upgrade.

$ dkms remove evdi/5.2.14 -all
$ dkms remove amdgpu/5.18.13-1510348.22.04 --all

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.