Can't Update to 6.17 Kernel

Linux Mint 22.2; Kernel 6.14; 4.02 BIOS AMD Ryzen™ 7040 Series:

I saw in the update manager that the 6.17 Kernel was available and when I tried to install it, it installed, but it started throwing error (1) errors. So I decided to put:

sudo apt install linux-image-6.17.0-14-generic linux-headers-6.17.0-14-generic
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
linux-image-6.17.0-14-generic is already the newest version (6.17.0-14.14~24.04.1).
linux-headers-6.17.0-14-generic is already the newest version (6.17.0-14.14~24.04.1).
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
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 retur
ned 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 returne
d 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
E: Sub-process /usr/bin/dpkg returned an error code (1)


The error kept appearing, and I tried to manually boot with the 6.17 Kernel by mashing esc during the boot process and it didn’t show up in the options. What should I do?

The 6.14 Kernel is still working tho

If you read the errors it tells you what is wrong.
It does not like virtualbox. Uninstall virtualbox and it will then work.

1 Like

Thank you! Will do!

I did purge and remove VirtualBox, and I’m still getting the same errors, how do I remove the VirtualBox drivers completely?

sudo apt remove virtualbox

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following packages will be REMOVED:
virtualbox virtualbox-qt
0 upgraded, 0 newly installed, 2 to remove and 10 not upgraded.
After this operation, 190 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 572279 files and directories currently installed.)
Removing virtualbox-qt (7.0.16-dfsg-2ubuntu1.1) …
Removing virtualbox (7.0.16-dfsg-2ubuntu1.1) …
Processing triggers for hicolor-icon-theme (0.17-2) …
Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) …
Processing triggers for mate-menus (1.26.1+mint1) …
Processing triggers for man-db (2.12.0-4build2) …
Processing triggers for shared-mime-info (2.4-4) …
Processing triggers for mailcap (3.70+nmu1ubuntu1) …
Processing triggers for desktop-file-utils (0.27-2build1) …

sudo apt purge virtualbox
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following packages will be REMOVED:
virtualbox*
0 upgraded, 0 newly installed, 1 to remove and 10 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database … 571941 files and directories currently installed.)
Purging configuration files for virtualbox (7.0.16-dfsg-2ubuntu1.1) …

sudo apt install linux-image-6.17.0-14-generic linux-headers-6.17.0-14-generic
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following additional packages will be installed:
linux-modules-6.17.0-14-generic
Suggested packages:
linux-hwe-6.17-tools linux-modules-extra-6.17.0-14-generic
The following NEW packages will be installed:
linux-headers-6.17.0-14-generic linux-image-6.17.0-14-generic
linux-modules-6.17.0-14-generic
0 upgraded, 3 newly installed, 0 to remove and 10 not upgraded.
Need to get 0 B/62.2 MB of archives.
After this operation, 89.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package linux-headers-6.17.0-14-generic.
(Reading database … 571939 files and directories currently installed.)
Preparing to unpack …/linux-headers-6.17.0-14-generic_6.17.0-14.14~24.04.1_amd64.deb …
Unpacking linux-headers-6.17.0-14-generic (6.17.0-14.14~24.04.1) …
Selecting previously unselected package linux-modules-6.17.0-14-generic.
Preparing to unpack …/linux-modules-6.17.0-14-generic_6.17.0-14.14~24.04.1_amd64.deb …
Unpacking linux-modules-6.17.0-14-generic (6.17.0-14.14~24.04.1) …
Selecting previously unselected package linux-image-6.17.0-14-generic.
Preparing to unpack …/linux-image-6.17.0-14-generic_6.17.0-14.14~24.04.1_amd64.deb …
Unpacking linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) …
Setting up linux-modules-6.17.0-14-generic (6.17.0-14.14~24.04.1) …
Setting up linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) …
I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.14.0-37-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-6.14.0-37-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-6.17.0-14-generic
I: /boot/initrd.img is now a symlink to initrd.img-6.17.0-14-generic
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 retur
    ned error exit status 11
    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 returne
    d error exit status 11
    Errors were encountered while processing:
    linux-headers-6.17.0-14-generic
    linux-image-6.17.0-14-generic
    E: Sub-process /usr/bin/dpkg returned an error code (1)

Given that it’s a DKMS error, perhaps try removing the virtualbox-dkms package?

1 Like

I think it worked

sudo apt remove virtualbox-dkms

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following package was automatically installed and is no longer required:
linux-modules-6.17.0-14-generic
Use ‘sudo apt autoremove’ to remove it.
The following packages will be REMOVED:
virtualbox-dkms
0 upgraded, 0 newly installed, 1 to remove and 10 not upgraded.
After this operation, 6,101 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 573241 files and directories currently installed.)
Removing virtualbox-dkms (7.0.16-dfsg-2ubuntu1.1) …
Module virtualbox-7.0.16 for kernel 6.14.0-29-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko.zst:

  • Uninstallation
    • Deleting from: /lib/modules/6.14.0-29-generic/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko.zst:

  • Uninstallation
    • Deleting from: /lib/modules/6.14.0-29-generic/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko.zst:

  • Uninstallation
    • Deleting from: /lib/modules/6.14.0-29-generic/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version.
      depmod…
      Module virtualbox-7.0.16 for kernel 6.14.0-37-generic (x86_64).
      Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko.zst:

  • Uninstallation
    • Deleting from: /lib/modules/6.14.0-37-generic/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko.zst:

  • Uninstallation
    • Deleting from: /lib/modules/6.14.0-37-generic/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko.zst:

  • Uninstallation

    • Deleting from: /lib/modules/6.14.0-37-generic/updates/dkms/
  • Original module

    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version.
      depmod…
      Deleting module virtualbox-7.0.16 completely from the DKMS tree.
    • sudo apt install linux-image-6.17.0-14-generic linux-headers-6.17.0-14-generic
      Reading package lists… Done
      Building dependency tree… Done
      Reading state information… Done
      Suggested packages:
      linux-hwe-6.17-tools linux-modules-extra-6.17.0-14-generic
      The following NEW packages will be installed:
      linux-headers-6.17.0-14-generic linux-image-6.17.0-14-generic
      0 upgraded, 2 newly installed, 0 to remove and 10 not upgraded.
      Need to get 0 B/20.0 MB of archives.
      After this operation, 47.4 MB of additional disk space will be used.
      Selecting previously unselected package linux-headers-6.17.0-14-generic.
      (Reading database … 572953 files and directories currently installed.)
      Preparing to unpack …/linux-headers-6.17.0-14-generic_6.17.0-14.14~24.04.1_amd64.deb …
      Unpacking linux-headers-6.17.0-14-generic (6.17.0-14.14~24.04.1) …
      Selecting previously unselected package linux-image-6.17.0-14-generic.
      Preparing to unpack …/linux-image-6.17.0-14-generic_6.17.0-14.14~24.04.1_amd64.deb …
      Unpacking linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) …
      Setting up linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) …
      I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.14.0-37-generic
      I: /boot/initrd.img.old is now a symlink to initrd.img-6.14.0-37-generic
      I: /boot/vmlinuz is now a symlink to vmlinuz-6.17.0-14-generic
      I: /boot/initrd.img is now a symlink to initrd.img-6.17.0-14-generic
      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

  • dkms: autoinstall for kernel 6.17.0-14-generic
    …done.
    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

  • dkms: autoinstall for kernel 6.17.0-14-generic
    …done.
    /etc/kernel/postinst.d/initramfs-tools:
    update-initramfs: Generating /boot/initrd.img-6.17.0-14-generic
    /etc/kernel/postinst.d/zz-update-grub:
    Sourcing file /etc/default/grub' Sourcing file /etc/default/grub.d/50_linuxmint.cfg’
    Generating grub configuration file …
    Found linux image: /boot/vmlinuz-6.17.0-14-generic
    Found initrd image: /boot/initrd.img-6.17.0-14-generic
    Found linux image: /boot/vmlinuz-6.14.0-37-generic
    Found initrd image: /boot/initrd.img-6.14.0-37-generic
    Found linux image: /boot/vmlinuz-6.14.0-29-generic
    Found initrd image: /boot/initrd.img-6.14.0-29-generic
    Warning: os-prober will be executed to detect other bootable partitions.
    Its output will be used to detect bootable binaries on them and create new boot entries.
    Adding boot menu entry for UEFI Firmware Settings …
    done

So, I upgraded to the 6.17 kernel and lost Wifi, GPU, Touchpad, etc, I’m going to stick with 6.14 until support is better

Great. If it was not fully updated before (apt full-upgrade), perhaps there was an incompatibility with the releases that a newer version has fixed. I also see you said you are on Mint 22.2; since 22.3 has released, maybe upgrading to its release with the newer package set would help too.

1 Like

Very odd. I ran 6.17 for a while and had no such issue. Same suggestion as above really. You can keep kernel 6.14 with Mint 22.3 as well if 6.17 is still bad on 22.3.

I’m not sure, I’m just waiting until the power manager is fixed on 22.3 because it froze for me and didn’t work well and then I’ll upgrade.