I have 22.10 running on a Dell laptop, received a popup to upgrade to 23.04. During the installation I got an error message stating that the installation of linux-headers-6.2.0-20-generic has failed due to an error. At the end it said that the system will be left in an unstable state. I have not restarted the laptop, but I believe it wont restart if I tried! :/
Here is the output of sudo dpkg --configure -a
:
Setting up linux-image-6.2.0-20-generic (6.2.0-20.20) ...
Setting up 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
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Building module:
Cleaning build area...
make -j4 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: 1.12.0 not found
Error! Bad return status for module build on kernel: 6.2.0-20-generic (x86_64)
Consult /var/lib/dkms/evdi/1.12.0/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: 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
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-headers-generic (= 6.2.0.20.20); however:
Package linux-headers-generic is not configured yet.
dpkg: error processing package linux-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
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Building module:
Cleaning build area...
make -j4 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: 1.12.0 not found
Error! Bad return status for module build on kernel: 6.2.0-20-generic (x86_64)
Consult /var/lib/dkms/evdi/1.12.0/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
Errors were encountered while processing:
linux-headers-6.2.0-20-generic
linux-headers-generic
linux-generic
linux-image-6.2.0-20-generic
What should I do to fix this?
Okay, going in for a restart now! After I recovered from the initial panic, I saw the error was due to the package "evdi" missing in binaries. After googling a little, I found that this is a dependency of the "DisplayLink" driver, which evidently isn't ready for 23.04 yet. The version of evdi, 1.12 still seems to be unstable. Anyway, so, uninstalling DisplayLink driver and then running dpkg configure seems to have helped the upgrade go through.
For anyone else facing this:
Update: OS update seems to have gone through, restart was uneventful. Now, will find a way to install Displaylink back.
Here's how I solved the issue:
Download the latest version of displaylink from here Synaptic website The version is 5.7.0-61.129 (This version has this in the release notes: Added preliminary support for kernel 6.2; Added preliminary support for Ubuntu 23.04)
Go to the folder where the downloaded file is and unzip
unzip DisplayLink\ USB\ Graphics\ Software\ for\ Ubuntu5.7-EXE.zip
Make the script executable
chmod +x displaylink-driver-5.7.0-61.129.run
Run the script as super user
sudo ./displaylink-driver-5.7.0-61.129.run
Now, reconfigure the kernel
sudo dpkg --configure -a
No more errors (at least for me).
I got an error on my desktop that the kernel could not install, and it kernel panic at reboot, I was able to use the prior kernel and all good, my laptop upgraded fine but did state that a few things were in read only, but the computer locked up, I reverted back to prior kernel all seems ok.
Nvidia: