Public bug reported:

Hello,

After upgrading Ubuntu 24.04 (noble) to the HWE kernel
6.17.0-14.14~24.04.1, my system became unbootable (GRUB prompt / kernel
panic “Unable to mount root fs”). Booting the previous kernel works.

The kernel upgrade triggers DKMS rebuild of VirtualBox modules and
fails:

dkms autoinstall on 6.17.0-14-generic/x86_64 failed for virtualbox(10)

dpkg then fails configuring:

linux-headers-6.17.0-14-generic (post-installation script returned exit
status 11)

linux-image-6.17.0-14-generic (post-installation script returned exit
status 11)

This leaves the system in a broken state and the next reboot fails.

Environment

Ubuntu 24.04 (noble)

HWE stack: linux-generic-hwe-24.04

Kernel upgrade: 6.14.0-37 → 6.17.0-14

VirtualBox version: 7.0.16_Ubuntu162802 (VBoxManage -v)

DKMS shows: virtualbox/7.0.16, 6.14.0-37-generic, x86_64: installed

Expected result
Kernel upgrade should succeed even if a DKMS module fails, or VirtualBox DKMS 
should build correctly on kernel 6.17.

Workaround
Booting the previous kernel works. Removing/holding kernel 6.17 avoids the boot 
failure.

Logs

/var/log/apt/term.log

dkms autoinstall on 6.17.0-14-generic/x86_64 failed for virtualbox(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dpkg: error processing package linux-headers-6.17.0-14-generic (--configure):
 installed linux-headers-6.17.0-14-generic package post-installation script 
subprocess returned error exit status 11
dpkg: error processing package linux-headers-generic-hwe-24.04 (--configure):
dpkg: error processing package linux-generic-hwe-24.04 (--configure):
dkms autoinstall on 6.17.0-14-generic/x86_64 failed for virtualbox(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dpkg: error processing package linux-image-6.17.0-14-generic (--configure):
 installed linux-image-6.17.0-14-generic package post-installation script 
subprocess returned error exit status 11


journalctl -b -1 -p err

Feb 13 08:26:48 StephaneDesktop AptDaemon.Worker[14297]: CRITICAL: 
linux-headers-6.17.0-14-generic: installed linux-headers-6.17.0-14-generic 
package post-installation script subprocess returned error exit status 11
Feb 13 08:26:50 StephaneDesktop AptDaemon.Worker[14297]: CRITICAL: 
linux-headers-generic-hwe-24.04: dependency problems - leaving unconfigured
Feb 13 08:26:50 StephaneDesktop AptDaemon.Worker[14297]: CRITICAL: 
linux-generic-hwe-24.04: dependency problems - leaving unconfigured
Feb 13 08:27:00 StephaneDesktop AptDaemon.Worker[14297]: CRITICAL: 
linux-image-6.17.0-14-generic: installed linux-image-6.17.0-14-generic package 
post-installation script subprocess returned error exit status 11

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: virtualbox 7.0.16-dfsg-2ubuntu1.1
ProcVersionSignature: Ubuntu 6.14.0-37.37~24.04.1-generic 6.14.11
Uname: Linux 6.14.0-37-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sat Feb 14 10:33:59 2026
InstallationDate: Installed on 2025-03-06 (345 days ago)
InstallationMedia: Ubuntu 24.04.2 LTS "Noble Numbat" - Release amd64 (20250215)
SourcePackage: virtualbox
UpgradeStatus: No upgrade log present (probably fresh install)
VirtualBox.DpkgList:
 ii  linux-headers-6.14.0-35-generic                6.14.0-35.35~24.04.1        
                amd64        Linux kernel headers for version 6.14.0
 ii  linux-headers-6.14.0-37-generic                6.14.0-37.37~24.04.1        
                amd64        Linux kernel headers for version 6.14.0
 ii  virtualbox                                     7.0.16-dfsg-2ubuntu1.1      
                amd64        x86 virtualization solution - base binaries
 ii  virtualbox-dkms                                7.0.16-dfsg-2ubuntu1.1      
                amd64        x86 virtualization solution - kernel module 
sources for dkms
 ii  virtualbox-qt                                  7.0.16-dfsg-2ubuntu1.1      
                amd64        x86 virtualization solution - Qt based user 
interface

** Affects: virtualbox (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2141811

Title:
  virtualbox-dkms fails to build on Ubuntu 24.04 HWE kernel 6.17.0-14,
  causing linux-image/linux-headers postinst failure and leaving system
  unbootable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/2141811/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to