Reading package lists... Done Building dependency tree... Done Reading state information... Done The following package was automatically installed and is no longer required: linux-headers-5.19.0-76051900 Use 'sudo apt autoremove' to remove it. The following additional packages will be installed: libgsoap-2.8.117 liblzf1 libsdl1.2debian virtualbox virtualbox-qt Suggested packages: vde2 virtualbox-guest-additions-iso The following packages will be REMOVED: virtualbox-7.0 The following NEW packages will be installed: libgsoap-2.8.117 liblzf1 libsdl1.2debian virtualbox virtualbox-dkms virtualbox-qt 0 upgraded, 6 newly installed, 1 to remove and 0 not upgraded. Need to get 0 B/46.5 MB of archives. After this operation, 39.3 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 345305 files and directories currently installed.) Removing virtualbox-7.0 (7.0.0-153978~Ubuntu~jammy) ... Selecting previously unselected package libgsoap-2.8.117:amd64. (Reading database ... 344577 files and directories currently installed.) Preparing to unpack .../0-libgsoap-2.8.117_2.8.117-2build1_amd64.deb ... Unpacking libgsoap-2.8.117:amd64 (2.8.117-2build1) ... Selecting previously unselected package liblzf1:amd64. Preparing to unpack .../1-liblzf1_3.6-3_amd64.deb ... Unpacking liblzf1:amd64 (3.6-3) ... Selecting previously unselected package libsdl1.2debian:amd64. Preparing to unpack .../2-libsdl1.2debian_1.2.15+dfsg2-6_amd64.deb ... Unpacking libsdl1.2debian:amd64 (1.2.15+dfsg2-6) ... Selecting previously unselected package virtualbox-dkms. Preparing to unpack .../3-virtualbox-dkms_6.1.36-dfsg-1pop0~1658725175~22.04~0c8f1c0_amd64.deb ... Unpacking virtualbox-dkms (6.1.36-dfsg-1pop0~1658725175~22.04~0c8f1c0) ... Selecting previously unselected package virtualbox. Preparing to unpack .../4-virtualbox_6.1.36-dfsg-1pop0~1658725175~22.04~0c8f1c0_amd64.deb ... Unpacking virtualbox (6.1.36-dfsg-1pop0~1658725175~22.04~0c8f1c0) ... Selecting previously unselected package virtualbox-qt. Preparing to unpack .../5-virtualbox-qt_6.1.36-dfsg-1pop0~1658725175~22.04~0c8f1c0_amd64.deb ... Unpacking virtualbox-qt (6.1.36-dfsg-1pop0~1658725175~22.04~0c8f1c0) ... Setting up libgsoap-2.8.117:amd64 (2.8.117-2build1) ... Setting up liblzf1:amd64 (3.6-3) ... Setting up libsdl1.2debian:amd64 (1.2.15+dfsg2-6) ... Setting up virtualbox-dkms (6.1.36-dfsg-1pop0~1658725175~22.04~0c8f1c0) ... Loading new virtualbox-6.1.36 DKMS files... Building for 6.0.2-76060002-generic Building initial module for 6.0.2-76060002-generic ERROR (dkms apport): kernel package linux-headers-6.0.2-76060002-generic is not supported Error! Bad return status for module build on kernel: 6.0.2-76060002-generic (x86_64) Consult /var/lib/dkms/virtualbox/6.1.36/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 dpkg: dependency problems prevent configuration of virtualbox: virtualbox depends on virtualbox-dkms (>= 6.1.36-dfsg-1pop0~1658725175~22.04~0c8f1c0) | virtualbox-source (>= 6.1.36-dfsg-1p op0~1658725175~22.04~0c8f1c0) | 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 (= 6.1.36-dfsg-1pop0~1658725175~22.04~0c8f1c0); however: Package virtualbox is not configured yet. Package virtualbox-7.0 which provides virtualbox is not installed. dpkg: error processing package virtualbox-qt (--configure): dependency problems - leaving unconfigured Processing triggers foNo apport report written because the error message indicates its a followup error from a previous failu re. No apport report written because the error message indicates its a followup error from a previous failure. r mailcap (3.70+ nmu1ubuntu1) ... Processing triggers for desktop-file-utils (0.26-1ubuntu3) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for gnome-menus (3.36.0-1ubuntu3) ... Processing triggers for libc-bin (2.35-0ubuntu3.1) ... Processing triggers for man-db (2.10.2-1) ... Processing triggers for shared-mime-info (2.1-2) ... Errors were encountered while processing: virtualbox-dkms virtualbox virtualbox-qt E: Sub-process /usr/bin/dpkg returned an error code (1)