The terminal output when I try to run an upgrade is as follows.
~$ sudo apt upgrade
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:
linux-headers-6.14.0-36-generic linux-headers-6.8.0-94 linux-headers-6.8.0-94-generic
linux-hwe-6.14-headers-6.14.0-36 linux-hwe-6.14-tools-6.14.0-36 linux-image-6.14.0-36-generic
linux-modules-6.14.0-36-generic linux-modules-extra-6.14.0-36-generic
linux-tools-6.14.0-36-generic
Use 'sudo apt autoremove' to remove them.
The following upgrades have been deferred due to phasing:
language-pack-en language-pack-gnome-en language-pack-gnome-en-base qemu-block-extra
qemu-utils
The following packages have been kept back:
language-pack-en-base
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
N: Some packages may have been kept back due to phasing.
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
Certificate or key are missing, generating them using update-secureboot-policy...
No MOK found.
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Certificate or key are missing, generating self signed certificate for MOK...
Key file /var/lib/shim-signed/mok/MOK.priv not found and can't be generated, modules won't be sig
ned
Building module:
Cleaning build area...
make -j8 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 e
rror 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); how
ever:
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
Certificate or key are missing, generating them using update-secureboot-policy...
No MOK found.
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Certificate or key are missing, generating self signed certificate for MOK...
Key file /var/lib/shim-signed/mok/MOK.priv not found and can't be generated, modules won't be sig
ned
Building module:
Cleaning build area...
make -j8 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 err
or 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 output is referencing files /var/lib/shim-signed/mok/MOK.priv and /var/lib/shim-signed/mok/MOK.der . I used to have these files to sign kernel modules so that I could use virtualbox with secure boot on ZorinOS. However, I deleted those files a while ago and now sign the virtualbox kernel modules with different keys in a different place. I also deleted the key with "mokutil --delete". So I do not understand why the system is trying to sign stuff with that key in order to update my linux headers or whatever that is supposed to be.
Please help. I would rather not have to reinstall ZorinOS in order to resolve the issue.
It looks like you are having two separate issues;
The 6.17 kernel, for reasons not well understood, is conflicting with existing installs of Virtualbox. Removing VB, then upgrading it from their direct source package (Or if not using it, just removing it) solves that issue.
The MOK keys:
Since you deleted them and ran mokutil --delete , it logs that they cannot be found.
So, run:
I ended up timeshifting back to a previous time, uninstalling virtualbox and virtualbox-dkms, and reinstalling stuff. The kernel 6.17.0-14-generic installed correctly this time.
However, I am now having problems when I try to reinstall virtualbox. This is my terminal output.
sudo apt install virtualbox
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
dkms libgsoap-2.8.132t64 liblzf1 libqt5opengl5t64 libsdl2-2.0-0 libtpms0 libvncserver1
virtualbox-dkms virtualbox-qt
Suggested packages:
menu vde2 virtualbox-guest-additions-iso
The following NEW packages will be installed:
dkms libgsoap-2.8.132t64 liblzf1 libqt5opengl5t64 libsdl2-2.0-0 libtpms0 libvncserver1
virtualbox virtualbox-dkms virtualbox-qt
0 upgraded, 10 newly installed, 0 to remove and 4 not upgraded.
Need to get 686 kB/59.2 MB of archives.
After this operation, 202 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu noble-updates/main amd64 libsdl2-2.0-0 amd64 2.30.0+dfsg-1ubuntu3.1 [686 kB]
Fetched 686 kB in 6s (116 kB/s)
Selecting previously unselected package dkms.
(Reading database ... 316499 files and directories currently installed.)
Preparing to unpack .../0-dkms_3.0.11-1ubuntu13_all.deb ...
Unpacking dkms (3.0.11-1ubuntu13) ...
Selecting previously unselected package libgsoap-2.8.132t64:amd64.
Preparing to unpack .../1-libgsosudo apt install virtualbox
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
dkms libgsoap-2.8.132t64 liblzf1 libqt5opengl5t64 libsdl2-2.0-0 libtpms0 libvncserver1
virtualbox-dkms virtualbox-qt
Suggested packages:
menu vde2 virtualbox-guest-additions-iso
The following NEW packages will be installed:
dkms libgsoap-2.8.132t64 liblzf1 libqt5opengl5t64 libsdl2-2.0-0 libtpms0 libvncserver1ap-2.8.132t64_2.8.132-2.1build2_amd64.deb ...
Unpacking libgsoap-2.8.132t64:amd64 (2.8.132-2.1build2) ...
Selecting previously unselected package liblzf1:amd64.
Preparing to unpack .../2-liblzf1_3.6-4_amd64.deb ...
Unpacking liblzf1:amd64 (3.6-4) ...
Selecting previously unselected package libqt5opengl5t64:amd64.
Preparing to unpack .../3-libqt5opengl5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ...
Unpacking libqt5opengl5t64:amd64 (5.15.13+dfsg-1ubuntu1) ...
Selecting previously unselected package libsdl2-2.0-0:amd64.
Preparing to unpack .../4-libsdl2-2.0-0_2.30.0+dfsg-1ubuntu3.1_amd64.deb ...
Unpacking libsdl2-2.0-0:amd64 (2.30.0+dfsg-1ubuntu3.1) ...
Selecting previously unselected package libtpms0:amd64.
Preparing to unpack .../5-libtpms0_0.9.3-0ubuntu4.24.04.1_amd64.deb ...
Unpacking libtpms0:amd64 (0.9.3-0ubuntu4.24.04.1) ...
Selecting previously unselected package libvncserver1:amd64.
Preparing to unpack .../6-libvncserver1_0.9.14+dfsg-1build2_amd64.deb ...
Unpacking libvncserver1:amd64 (0.9.14+dfsg-1build2) ...
Selecting previously unselected package virtualbox-dkms.
Preparing to unpack .../7-virtualbox-dkms_7.0.16-dfsg-2ubuntu1.1_amd64.deb ...
Unpacking virtualbox-dkms (7.0.16-dfsg-2ubuntu1.1) ...
Selecting previously unselected package virtualbox.
Preparing to unpack .../8-virtualbox_7.0.16-dfsg-2ubuntu1.1_amd64.deb ...
Unpacking virtualbox (7.0.16-dfsg-2ubuntu1.1) ...
Selecting previously unselected package virtualbox-qt.
Preparing to unpack .../9-virtualbox-qt_7.0.16-dfsg-2ubuntu1.1_amd64.deb ...
Unpacking virtualbox-qt (7.0.16-dfsg-2ubuntu1.1) ...
Setting up libvncserver1:amd64 (0.9.14+dfsg-1build2) ...
Setting up dkms (3.0.11-1ubuntu13) ...
Setting up liblzf1:amd64 (3.6-4) ...
Setting up libqt5opengl5t64:amd64 (5.15.13+dfsg-1ubuntu1) ...
Setting up libtpms0:amd64 (0.9.3-0ubuntu4.24.04.1) ...
Setting up libsdl2-2.0-0:amd64 (2.30.0+dfsg-1ubuntu3.1) ...
Setting up virtualbox-dkms (7.0.16-dfsg-2ubuntu1.1) ...
Loading new virtualbox-7.0.16 DKMS files...
Building for 6.17.0-14-generic
Building initial module for 6.17.0-14-generic
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.
dpkg: error processing package virtualbox-dkms (--configure):
installed virtualbox-dkms package post-installation script subprocess returned error exit status
10
Setting up libgsoap-2.8.132t64:amd64 (2.8.132-2.1build2) ...
dpkg: dependency problems prevent configuration of virtualbox:
virtualbox depends on virtualbox-dkms (>= 7.0.16-dfsg-2ubuntu1.1) | virtualbox-source (>= 7.0.16
-dfsg-2ubuntu1.1) | virtualbox-modules; however:
Package virtualbox-dkms is not configured yet.
Package virtualbox-source is not installed.
Package virtualbox-modules is not installed.
Package virtualbox-dkms which provides virtualbox-modules is not configured yet.
dpkg: error processing package virtualbox (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of virtualbox-qt:
virtualbox-qt depends on virtualbox (= 7.0.16-dfsg-2ubuntu1.1); however:
Package virtualbox is not configured yet.
dpkg: error processing package virtualbox-qt (--configure):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.27-2build1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ...
Processing triggers for libc-bin (2.39-0ubuntu8.7) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for shared-mime-info (2.4-4) ...
Errors were encountered while processing:
virtualbox-dkms
virtualbox
virtualbox-qt
E: Sub-process /usr/bin/dpkg returned an error code (1)
The content of /var/lib/dkms/virtualbox/7.0.16/build/make.log is as follows (with date censored).
KMS make.log for virtualbox-7.0.16 for kernel 6.17.0-14-generic (x86_64)
[date censored]
make: Entering directory '/usr/src/linux-headers-6.17.0-14-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) 13.3.0
You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.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
vboxdrv/SUPLibAll.c:41:10: fatal error: VBox/sup.h: No such file or directory
41 | #include <VBox/sup.h>
| ^~~~~~~~~~~~
compilation terminated.
In file included from vboxdrv/SUPDrv.c:43:
vboxdrv/SUPDrvInternal.h:47:10: fatal error: VBox/cdefs.h: No such file or directory
47 | #include <VBox/cdefs.h>
| ^~~~~~~~~~~~~~
In file included from vboxdrv/SUPDrvTracer.c:43:
vboxdrv/SUPDrvInternal.h:47:10: fatal error: VBox/cdefs.h: No such file or directory
47 | #include <VBox/cdefs.h>
| ^~~~~~~~~~~~~~
In file included from vboxdrv/SUPDrvSem.c:43:
vboxdrv/SUPDrvInternal.h:47:10: fatal error: VBox/cdefs.h: No such file or directory
47 | #include <VBox/cdefs.h>
| ^~~~~~~~~~~~~~
In file included from vboxdrv/SUPDrvGip.c:43:
vboxdrv/SUPDrvInternal.h:47:10: fatal error: VBox/cdefs.h: No such file or directory
47 | #include <VBox/cdefs.h>
| ^~~~~~~~~~~~~~
In file included from vboxdrv/linux/SUPDrv-linux.c:42:
vboxdrv/linux/../SUPDrvInternal.h:47:10: fatal error: VBox/cdefs.h: No such file or directory
47 | #include <VBox/cdefs.h>
| ^~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
compilation terminated.
compilation terminated.
compilation terminated.
vboxdrv/common/string/strformatrt.c:42:10: fatal error: iprt/string.h: No such file or directory
42 | #include <iprt/string.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [/usr/src/linux-headers-6.17.0-14-generic/scripts/Makefile.build:287: vboxdrv/SUPLibAll.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [/usr/src/linux-headers-6.17.0-14-generic/scripts/Makefile.build:287: vboxdrv/SUPDrvGip.o] Error 1
make[4]: *** [/usr/src/linux-headers-6.17.0-14-generic/scripts/Makefile.build:287: vboxdrv/SUPDrv.o] Error 1
make[4]: *** [/usr/src/linux-headers-6.17.0-14-generic/scripts/Makefile.build:287: vboxdrv/linux/SUPDrv-linux.o] Error 1
make[4]: *** [/usr/src/linux-headers-6.17.0-14-generic/scripts/Makefile.build:287: vboxdrv/SUPDrvSem.o] Error 1
make[4]: *** [/usr/src/linux-headers-6.17.0-14-generic/scripts/Makefile.build:287: vboxdrv/SUPDrvTracer.o] Error 1
make[4]: *** [/usr/src/linux-headers-6.17.0-14-generic/scripts/Makefile.build:287: vboxdrv/common/string/strformatrt.o] Error 1
vboxdrv/combined-agnostic1.c:38:10: fatal error: internal/iprt.h: No such file or directory
38 | #include "internal/iprt.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [/usr/src/linux-headers-6.17.0-14-generic/scripts/Makefile.build:287: vboxdrv/combined-agnostic1.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.17.0-14-generic/scripts/Makefile.build:556: vboxdrv] Error 2
make[2]: *** [/usr/src/linux-headers-6.17.0-14-generic/Makefile:2016: .] Error 2
make[1]: *** [/usr/src/linux-headers-6.17.0-14-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-6.17.0-14-generic'
"vboxdrv/SUPLibAll.c:41:10: fatal error: VBox/sup.h: No such file or directory"
I would be curious to know if you have similar issues with virt-manager. I left VB (and Zorin) as my daily driver some time ago. Virt-manager has better USB 3.0 control and you can redirect USB devices on the fly whilst using the VM. I found it to be graphically superior to VB to the extent VM's look like a bare metal install. You can import VB .vhd's to virt-manager too, but not others such as .vdi. My recommendation for anyone using VB is to stick with .vhd, particularly if you want to migrate to virt-manager, it is what I use for all my other distro videos on Vimeo.