Recent kernel update does not work (7.0.0-28-generic)

Hello,

I am having a problem with the recent update.

~$ sudo apt upgrade -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libfwupd2 libsdl-ttf2.0-0 libsdl1.2debian libxcb-cursor0 linux-headers-6.17.0-29-generic
  linux-headers-6.17.0-35-generic linux-headers-6.8.0-124 linux-headers-6.8.0-124-generic
  linux-headers-6.8.0-134 linux-headers-6.8.0-134-generic linux-hwe-6.17-headers-6.17.0-29
  linux-hwe-6.17-headers-6.17.0-35 linux-hwe-6.17-tools-6.17.0-29
  linux-hwe-6.17-tools-6.17.0-35 linux-image-6.17.0-29-generic linux-image-6.17.0-35-generic
  linux-modules-6.17.0-29-generic linux-modules-6.17.0-35-generic
  linux-modules-extra-6.17.0-29-generic linux-modules-extra-6.17.0-35-generic
  linux-tools-6.17.0-29-generic linux-tools-6.17.0-35-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
Setting up linux-headers-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 7.0.0-28-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 -j8 KERNELRELEASE=7.0.0-28-generic -C /lib/modules/7.0.0-28-generic/build M=/var/lib/dkms/vi
rtualbox/7.0.16/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 7.0.0-28-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
dkms autoinstall on 7.0.0-28-generic/x86_64 failed for virtualbox(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 7.0.0-28-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-7.0.0-28-generic (--configure):
 installed linux-headers-7.0.0-28-generic package post-installation script subprocess returned er
ror exit status 11
dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-24.04:
 linux-headers-generic-hwe-24.04 depends on linux-headers-7.0.0-28-generic; however:
  Package linux-headers-7.0.0-28-generic is not configured yet.

dpkg: error processing package linux-headers-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-24.04:
 linux-generic-hwe-24.04 depends on linux-headers-generic-hwe-24.04 (= 7.0.0-28.28~24.04.1); howe
ver:
  Package linux-headers-generic-hwe-24.04 is not configured yet.

dpkg: error processing package linux-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for linux-image-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 7.0.0-28-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 -j8 KERNELRELEASE=7.0.0-28-generic -C /lib/modules/7.0.0-28-generic/build M=/var/lib/dkms/vi
rtualbox/7.0.16/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 7.0.0-28-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
dkms autoinstall on 7.0.0-28-generic/x86_64 failed for virtualbox(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 7.0.0-28-generic
   ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-7.0.0-28-generic (--configure):
 installed linux-image-7.0.0-28-generic package post-installation script subprocess returned erro
r exit status 11
Errors were encountered while processing:
 linux-headers-7.0.0-28-generic
 linux-headers-generic-hwe-24.04
 linux-generic-hwe-24.04
 linux-image-7.0.0-28-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Text of /var/lib/dkms/virtualbox/7.0.16/build/make.log

DKMS make.log for virtualbox-7.0.16 for kernel 7.0.0-28-generic (x86_64)
<timestamp omitted from log>
make: Entering directory '/usr/src/linux-headers-7.0.0-28-generic'
make[1]: Entering directory '/var/lib/dkms/virtualbox/7.0.16/build'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
  You are using:           gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
warning: pahole version differs from the one used to build the kernel
  The kernel was built with: 125
  You are using:             0
  CC [M]  vboxdrv/linux/SUPDrv-linux.o
  CC [M]  vboxdrv/SUPDrv.o
  CC [M]  vboxdrv/SUPDrvGip.o
  CC [M]  vboxdrv/SUPDrvSem.o
  CC [M]  vboxdrv/SUPDrvTracer.o
  CC [M]  vboxdrv/SUPLibAll.o
  CC [M]  vboxdrv/common/string/strformatrt.o
  CC [M]  vboxdrv/combined-agnostic1.o
  CC [M]  vboxdrv/combined-agnostic2.o
  CC [M]  vboxdrv/combined-os-specific.o
  LD [M]  vboxdrv/vboxdrv.o
  CC [M]  vboxnetflt/linux/VBoxNetFlt-linux.o
  CC [M]  vboxnetflt/VBoxNetFlt.o
  CC [M]  vboxnetflt/SUPR0IdcClient.o
  CC [M]  vboxnetflt/SUPR0IdcClientComponent.o
  CC [M]  vboxnetflt/linux/SUPR0IdcClient-linux.o
  LD [M]  vboxnetflt/vboxnetflt.o
  CC [M]  vboxnetadp/linux/VBoxNetAdp-linux.o
  CC [M]  vboxnetadp/VBoxNetAdp.o
  LD [M]  vboxnetadp/vboxnetadp.o
  MODPOST Module.symvers
ERROR: modpost: module vboxdrv uses symbol kvm_enable_virtualization from namespace module:kvm-amd,kvm-intel, but does not import it.
ERROR: modpost: module vboxdrv uses symbol kvm_disable_virtualization from namespace module:kvm-amd,kvm-intel, but does not import it.
ERROR: modpost: module vboxdrv uses symbol cr4_update_irqsoff from namespace module:kvm,kvm-amd,kvm-intel, but does not import it.
ERROR: modpost: module vboxdrv uses symbol cr4_read_shadow from namespace module:kvm,kvm-amd,kvm-intel, but does not import it.
make[3]: *** [/usr/src/linux-headers-7.0.0-28-generic/scripts/Makefile.modpost:147: Module.symvers] Error 1
make[2]: *** [/usr/src/linux-headers-7.0.0-28-generic/Makefile:2065: modpost] Error 2
make[1]: *** [/usr/src/linux-headers-7.0.0-28-generic/Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/var/lib/dkms/virtualbox/7.0.16/build'
make: *** [Makefile:248: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-7.0.0-28-generic'

How do I fix this?

I just tried upgrading to Kernel 7.0 as well and I had a failed install on something though I'm not sure what update was the issue as I had done the upgrades through Software Updater. When I rebooted my computer the Kernel Panic and wouldn't boot on version 7.0. I was able to get back into my OS on previous kernel 6.17. I checked for updates again and it was saying there are none.

If I get some time this this evening I might try and troubleshoot.

Having read your first post I suspect this is a VirtualBox issue as it reads you are running Zorin as a VM, not a bare metal install.

1 Like

Hmm ... looks like the Kernel interferes with VirtualBox. Also, You have some older Kernel for removal. Maybe the Kernel can't setup properly until the older one's are removed. And that could affect the Setup for VirtualBox, too.

You could also try to go back to the 6.17 Kernel and see if it behaves well again. Or: Uninstall VirtualBox and then install it again.

1 Like

Hi!
On my last kernel update, I had the same issue due to VirtualBox.
All I did was boot from the old kernel in the advanced Grub options and update VirtualBox to the latest version (I used a Debian package).
After rebooting with the new kernel, the error no longer occurred.

3 Likes

I am using ZorinOS 18.1 as the host, not as the guest.

I saw an update for virtualbox today and installed it. This resolved the problem with the modules, and I was now able to install the modules for kernel 7.0.0-28 generic. However, now I have another problem. If I try to turn on my virtual machine, I get the following error.

Something is not available or not working properly. (VERR_NOT_AVAILABLE).
Result Code:
NS_ERROR_FAILURE (0X80004005)
Component:
ConsoleWrap
Interface:
IConsole {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}

How do I fix this? This error persists even if I boot into an earlier kernel instead.

I think for now I am going to use timeshift to revert my system to a previous update. I can do that and wait until someone here posts a solution to the problem.

I wonder if the update resulted in a mixed installation.
What is the output for

VBoxManage --version

modinfo vboxdrv | grep -E "version|vermagic"

If the version matches, try:

sudo dpkg-reconfigure virtualbox-dkms

sudo modprobe -r vboxdrv

sudo modprobe vboxdrv