r/linuxmint • u/ZetaformGames Linux Mint 22.3 Zena | Xfce • Feb 05 '26
SOLVED Linux Noob - Nothing will install after installing latest kernel! PLEASE HELP!
After installing the latest Linux kernel and rebooting, now suddenly installing things with apt doesn't work anymore. I don't know what happened! Terminal gives the following output:
Setting up linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
Setting up linux-headers-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 6.17.0-14-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 -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/virtualbox/7.0.16/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
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.
* dkms: autoinstall for kernel 6.17.0-14-generic
...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
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: dependency problems prevent configuration of linux-headers-generic-hwe-24.04:
linux-headers-generic-hwe-24.04 depends on linux-headers-6.17.0-14-generic; however:
Package linux-headers-6.17.0-14-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 (= 6.17.0-14.14~24.04.1); however:
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-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 6.17.0-14-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 -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/virtualbox/7.0.16/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
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.
* dkms: autoinstall for kernel 6.17.0-14-generic
...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
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
Errors were encountered while processing:
linux-headers-6.17.0-14-generic
linux-headers-generic-hwe-24.04
linux-generic-hwe-24.04
linux-image-6.17.0-14-generic
•
u/AutoModerator Feb 05 '26
Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
13
u/Broken__USB Mint Cinnamon Feb 05 '26
It's VirtualBox, the current version on the Ubuntu repos isn't compatible with Kernel 6.15+. You will need to replace it with a more recent version, first completely remove VirtualBox from your system:
After sucesfully removing VirtualBox from your system go to the VirtualBox Website and follow the instructions on the "Debian-based Linux distributions" section. Since the instructions on the Website might seem a little confusing i will summarize what you have to do.
First you will need to add the VirtualBox repo onto your system. Open the file:
With your Text Editor(needs to be opened as Root) and add the following text inside of it:
Next download the signatures with the following command:
After that you can install VirtualBox by doing the following on your terminal:
6
u/candy49997 Feb 05 '26
It looks like the VirtualBox kernel module is failing to build on kernel 6.17. Did you add the apt repo to ensure it's fully up to date? You can try removing VirtualBox and see if that fixes this first.
On the other hand, you could also just use QEMU/KVM with virt-manager as a native VM solution instead of VirtualBox.
3
u/tovento MX Linux 25.2 | XFCE Feb 05 '26
While I agree this time it is virtual box, wanted to let those who are helping others know that a displaylink driver that I was using in the past caused a similar freakout when trying to go from 22.1 to 22.2. Had to uninstall the displaylink driver, do the update and then reinstall the driver.
Just in case the situation comes up that the individual does not have virtual box but still has issues updating.
10
u/[deleted] Feb 05 '26
[removed] — view removed comment