Log - Installing Generic Virtualbox Using .Run File in Ubuntu Xfce (With Gnome and Snapd Completely Removed)

Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 19

Downloaded the generic version of the virtualbox from the link below.

https://download.virtualbox.org/virtualbox/7.0.14/VirtualBox-7.0.14-161095-Linux_amd64.run

Then, ran it using the command, from the downloaded location:


sudo ./VirtualBox-7.0.14-161095-Linux_amd64.run

This created all the installation files under /opt/VirtualBox (this cannot be changed) – as
mentioned in the installation instructions in the user manual:
file:///opt/VirtualBox/UserManual.pdf

The usermanual (UserManual.pdf) is in this location. Instructions on installation & using the
virtualbox and other useful stuff can be found in this manual.

amsu@Hamsathwani:~$ ls -la /opt/VirtualBox/


total 156144
drwxr-xr-x 11 root root 4096 Apr 2 07:58 .
drwxr-xr-x 3 root root 4096 Apr 2 07:58 ..
drwxr-xr-x 2 root root 4096 Apr 2 07:58 additions
-rwxr-xr-x 1 root root 8201 Jan 15 19:46 check_module_dependencies.sh
drwxr-xr-x 2 root root 4096 Apr 2 07:58 components
-rwxr-xr-x 1 root root 432704 Jan 15 20:54 DbgPlugInDiggers.so
drwxr-xr-x 4 root root 4096 Apr 2 07:58 dtrace
drwxr-xr-x 14 root root 4096 Jan 15 19:46 icons
-rwxr-xr-x 1 root root 6700704 Jan 15 19:46 libQt5CoreVBox.so.5
-rwxr-xr-x 1 root root 569976 Jan 15 19:46 libQt5DBusVBox.so.5
-rwxr-xr-x 1 root root 7120832 Jan 15 19:46 libQt5GuiVBox.so.5
-rwxr-xr-x 1 root root 557752 Jan 15 19:46 libQt5HelpVBox.so.5
-rwxr-xr-x 1 root root 1365496 Jan 15 19:46 libQt5NetworkVBox.so.5
-rwxr-xr-x 1 root root 356760 Jan 15 19:46 libQt5OpenGLVBox.so.5
-rwxr-xr-x 1 root root 414144 Jan 15 19:46 libQt5PrintSupportVBox.so.5
-rwxr-xr-x 1 root root 296184 Jan 15 19:46 libQt5SqlVBox.so.5
-rwxr-xr-x 1 root root 6701944 Jan 15 19:46 libQt5WidgetsVBox.so.5
-rwxr-xr-x 1 root root 16784 Jan 15 19:46 libQt5X11ExtrasVBox.so.5
-rwxr-xr-x 1 root root 1395704 Jan 15 19:46 libQt5XcbQpaVBox.so.5
-rwxr-xr-x 1 root root 250688 Jan 15 19:46 libQt5XmlVBox.so.5
-rwxr-xr-x 1 root root 130144 Jan 15 20:54 libvboxjxpcom.so
-rw-r--r-- 1 root root 36036 Jan 15 19:46 LICENSE
drwxr-xr-x 2 root root 4096 Apr 2 07:58 nls
drwxr-xr-x 7 root root 4096 Apr 2 07:58 plugins
-rwxr-xr-x 1 root root 4553 Jan 15 19:46 postinst-common.sh
-rwxr-xr-x 1 root root 2997 Jan 15 19:46 prerm-common.sh
-rwxr-xr-x 1 root root 14714 Jan 15 19:46 routines.sh
drwxr-xr-x 4 root root 4096 Apr 2 07:58 sdk
drwxr-xr-x 3 root root 4096 Jan 15 20:54 src
-rwxr-xr-x 1 root root 31170032 Jan 15 20:54 UICommon.so
drwxr-xr-x 2 root root 4096 Apr 2 07:58 UnattendedTemplates
-rwxr-xr-x 1 root root 5269 Apr 2 07:58 uninstall.sh
-rw-r--r-- 1 root root 4595857 Jan 15 19:46 UserManual.pdf
-rw-r--r-- 1 root root 4345856 Jan 15 19:46 UserManual.qch
-rw-r--r-- 1 root root 356352 Jan 15 19:46 UserManual.qhc
-rwxr-xr-x 1 root root 388648 Jan 15 20:54 VBoxAudioTest
-rwxr-xr-x 1 root root 39416 Jan 15 20:54 VBoxAuthSimple.so
-rwxr-xr-x 1 root root 14552 Jan 15 20:54 VBoxAuth.so
-rwxr-xr-x 1 root root 114128 Jan 15 20:54 VBoxAutostart
-rwxr-xr-x 1 root root 4404 Jan 15 19:46 vboxautostart-service.sh
-rwxr-xr-x 1 root root 155592 Jan 15 20:54 VBoxBalloonCtrl
-rwxr-xr-x 1 root root 6773 Jan 15 19:46 vboxballoonctrl-service.sh
-rwxr-xr-x 1 root root 85432 Jan 15 20:54 VBoxBugReport
-rwxr-xr-x 1 root root 1778 Jan 15 19:46 VBoxCreateUSBNode.sh
-rwxr-xr-x 1 root root 151688 Jan 15 20:54 VBoxDbg.so
-rwxr-xr-x 1 root root 8751064 Jan 15 20:54 VBoxDD2.so
-rw-r--r-- 1 root root 314096 Jan 15 20:54 VBoxDDR0.r0
-rwxr-xr-x 1 root root 5574424 Jan 15 20:54 VBoxDD.so
-rwxr-xr-x 1 root root 463864 Jan 15 20:54 VBoxDDU.so
-rwxr-xr-x 1 root root 39232 Jan 15 20:54 VBoxDragAndDropSvc.so
-rwxr-xr-x 1 root root 31418 Jan 15 19:46 vboxdrv.sh
-rwxr-xr-x 1 root root 14640 Jan 15 20:54 VBoxDTrace
-rwxr-xr-x 1 root root 2279984 Jan 15 20:54 VBoxDxVk.so
-rwxr-xr-x 1 root root 56776 Jan 15 20:54 VBoxExtPackHelperApp
-rwxr-xr-x 1 root root 35120 Jan 15 20:54 VBoxGuestControlSvc.so
-rwxr-xr-x 1 root root 43504 Jan 15 20:54 VBoxGuestPropSvc.so
-r-s--x--x 1 root root 129584 Jan 15 20:54 VBoxHeadless
-rwxr-xr-x 1 root root 113776 Jan 15 20:54 VBoxHeadless.so
-rwxr-xr-x 1 root root 18592 Jan 15 20:54 VBoxHostChannel.so
-rwxr-xr-x 1 root root 418456 Jan 15 20:54 vbox-img
-rwxr-xr-x 1 root root 119040 Jan 15 20:54 vboximg-mount
-rwxr-xr-x 1 root root 78240 Jan 15 20:54 VBoxKeyboard.so
-rwxr-xr-x 1 root root 477008 Jan 15 20:54 VBoxLibSsh.so
-rwxr-xr-x 1 root root 2554112 Jan 15 20:54 VBoxManage
-r-s--x--x 1 root root 31464 Jan 15 20:54 VBoxNetAdpCtl
-r-s--x--x 1 root root 129584 Jan 15 20:54 VBoxNetDHCP
-rwxr-xr-x 1 root root 257552 Jan 15 20:54 VBoxNetDHCP.so
-r-s--x--x 1 root root 129584 Jan 15 20:54 VBoxNetNAT
-rwxr-xr-x 1 root root 282640 Jan 15 20:54 VBoxNetNAT.so
-rw-r--r-- 1 root root 2645 Jan 15 19:46 VBox.png
-rwxr-xr-x 1 root root 213664 Jan 15 20:54 VBoxPython2_7.so
-rwxr-xr-x 1 root root 213664 Jan 15 20:54 VBoxPython2.so
-rwxr-xr-x 1 root root 217272 Jan 15 20:54 VBoxPython3m.so
-rwxr-xr-x 1 root root 217272 Jan 15 20:54 VBoxPython3.so
-rwxr-xr-x 1 root root 9805968 Jan 15 20:54 VBoxRT.so
-rwxr-xr-x 1 root root 5048 Jan 15 19:46 VBox.sh
-rwxr-xr-x 1 root root 64024 Jan 15 20:54 VBoxSharedClipboard.so
-rwxr-xr-x 1 root root 64056 Jan 15 20:54 VBoxSharedFolders.so
-rwxr-xr-x 1 root root 122704 Jan 15 19:46 vboxshell.py
-rwxr-xr-x 1 root root 7883616 Jan 15 20:54 VBoxSVC
-rwxr-xr-x 1 root root 240272 Jan 15 20:54 VBoxSVGA3D.so
-rwxr-xr-x 1 root root 4438 Jan 15 19:46 VBoxSysInfo.sh
-rwxr-xr-x 1 root root 60080 Jan 15 20:54 VBoxTestOGL
-rwxr-xr-x 1 root root 5912504 Jan 15 20:54 VBoxVMM.so
-r-s--x--x 1 root root 14600 Jan 15 20:54 VBoxVolInfo
-rwxr-xr-x 1 root root 6716 Jan 15 19:46 vboxweb-service.sh
-rwxr-xr-x 1 root root 36011136 Jan 15 20:54 vboxwebsrv
-rwxr-xr-x 1 root root 47760 Jan 15 20:54 VBoxXPCOMC.so
-rwxr-xr-x 1 root root 35656 Jan 15 20:54 VBoxXPCOMIPCD
-rwxr-xr-x 1 root root 1196352 Jan 15 20:54 VBoxXPCOM.so
-rwxr-xr-x 1 root root 2954160 Jan 15 20:54 VirtualBox
-rw-r--r-- 1 root root 1117 Jan 15 19:46 virtualbox.desktop
-r-s--x--x 1 root root 129584 Jan 15 20:54 VirtualBoxVM
-rw-r--r-- 1 root root 627 Jan 15 19:46 virtualboxvm.desktop
-rwxr-xr-x 1 root root 1317280 Jan 15 20:54 VirtualBoxVM.so
-rw-r--r-- 1 root root 2144 Jan 15 19:46 virtualbox.xml
-rw-r--r-- 1 root root 2764400 Jan 15 20:54 VMMR0.r0

The installation was successful, however threw some on-screen error:

amsu@Hamsathwani:~/Downloads$ sudo VirtualBox-7.0.14-161095-Linux_amd64.run


[sudo] password for amsu:
sudo: VirtualBox-7.0.14-161095-Linux_amd64.run: command not found

amsu@Hamsathwani:~/Downloads$ sudo ./VirtualBox-7.0.14-161095-Linux_amd64.run


Verifying archive integrity... 100% MD5 checksums are OK. All good.
Uncompressing VirtualBox for Linux installation 100%
VirtualBox Version 7.0.14 r161095 (2024-01-15T15:24:30Z) installer
Installing VirtualBox to /opt/VirtualBox
Python found: python3.10, installing bindings...
Skipped: Python 3.10 install is unusable, missing package 'distutils'
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.

There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

VirtualBox has been installed successfully.

You will find useful information about using VirtualBox in the user manual
/opt/VirtualBox/UserManual.pdf and in the user FAQ http://www.virtualbox.org/wiki/User_FAQ

We hope that you enjoy using VirtualBox.

The installation log file is at /var/log/vbox-install.log.


A comment in this site asked to run the vboxconfig script:
https://askubuntu.com/questions/1455974/signing-virtualbox-modules-with-efi-secure-boot-
enabled

amsu@Hamsathwani:~$ sudo /sbin/vboxconfig


[sudo] password for amsu:

vboxdrv.sh: Stopping VirtualBox services.


vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.

There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

Installed gcc, as per the error message above.

amsu@Hamsathwani:~$ sudo apt-get install gcc


Display all 575 possibilities? (y or n)
amsu@Hamsathwani:~$ sudo apt-get install gcc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
gcc-11 libasan6 libc-dev-bin libc-devtools libc6-dev libcc1-0 libcrypt-dev libgcc-11-dev
libitm1 liblsan0 libnsl-dev libquadmath0 libtirpc-dev
libtsan0 libubsan1 linux-libc-dev manpages-dev rpcsvc-proto
Suggested packages:
gcc-multilib make autoconf automake libtool flex bison gcc-doc gcc-11-multilib gcc-11-doc
gcc-11-locales glibc-doc
The following NEW packages will be installed:
gcc gcc-11 libasan6 libc-dev-bin libc-devtools libc6-dev libcc1-0 libcrypt-dev libgcc-11-dev
libitm1 liblsan0 libnsl-dev libquadmath0 libtirpc-dev
libtsan0 libubsan1 linux-libc-dev manpages-dev rpcsvc-proto
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.7 MB of archives.
After this operation, 117 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libcc1-0 amd64 12.3.0-
1ubuntu1~22.04 [48.3 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libitm1 amd64 12.3.0-
1ubuntu1~22.04 [30.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libasan6 amd64 11.4.0-
1ubuntu1~22.04 [2,282 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 liblsan0 amd64 12.3.0-
1ubuntu1~22.04 [1,069 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libtsan0 amd64 11.4.0-
1ubuntu1~22.04 [2,260 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libubsan1 amd64 12.3.0-
1ubuntu1~22.04 [976 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libquadmath0 amd64 12.3.0-
1ubuntu1~22.04 [154 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libgcc-11-dev amd64 11.4.0-
1ubuntu1~22.04 [2,517 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gcc-11 amd64 11.4.0-
1ubuntu1~22.04 [20.1 MB]
Get:10 http://archive.ubuntu.com/ubuntu jammy/main amd64 gcc amd64 4:11.2.0-1ubuntu1 [5,112
B]
Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libc-dev-bin amd64 2.35-
0ubuntu3.6 [20.3 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libc-devtools amd64 2.35-
0ubuntu3.6 [29.0 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-libc-dev amd64 5.15.0-
101.111 [1,333 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy/main amd64 libcrypt-dev amd64 1:4.4.27-1 [112
kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy/main amd64 rpcsvc-proto amd64 1.4.2-0ubuntu6
[68.5 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libtirpc-dev amd64 1.3.2-
2ubuntu0.1 [192 kB]
Get:17 http://archive.ubuntu.com/ubuntu jammy/main amd64 libnsl-dev amd64 1.3.0-2build2 [71.3
kB]
Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libc6-dev amd64 2.35-
0ubuntu3.6 [2,100 kB]
Get:19 http://archive.ubuntu.com/ubuntu jammy/main amd64 manpages-dev all 5.10-1ubuntu1
[2,309 kB]
Fetched 35.7 MB in 47s (763 kB/s)
Selecting previously unselected package libcc1-0:amd64.
(Reading database ... 186051 files and directories currently installed.)
Preparing to unpack .../00-libcc1-0_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libcc1-0:amd64 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../01-libitm1_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libitm1:amd64 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package libasan6:amd64.
Preparing to unpack .../02-libasan6_11.4.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libasan6:amd64 (11.4.0-1ubuntu1~22.04) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../03-liblsan0_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking liblsan0:amd64 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../04-libtsan0_11.4.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libtsan0:amd64 (11.4.0-1ubuntu1~22.04) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack .../05-libubsan1_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libubsan1:amd64 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../06-libquadmath0_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libquadmath0:amd64 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package libgcc-11-dev:amd64.
Preparing to unpack .../07-libgcc-11-dev_11.4.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libgcc-11-dev:amd64 (11.4.0-1ubuntu1~22.04) ...
Selecting previously unselected package gcc-11.
Preparing to unpack .../08-gcc-11_11.4.0-1ubuntu1~22.04_amd64.deb ...
Unpacking gcc-11 (11.4.0-1ubuntu1~22.04) ...
Selecting previously unselected package gcc.
Preparing to unpack .../09-gcc_4%3a11.2.0-1ubuntu1_amd64.deb ...
Unpacking gcc (4:11.2.0-1ubuntu1) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../10-libc-dev-bin_2.35-0ubuntu3.6_amd64.deb ...
Unpacking libc-dev-bin (2.35-0ubuntu3.6) ...
Selecting previously unselected package libc-devtools.
Preparing to unpack .../11-libc-devtools_2.35-0ubuntu3.6_amd64.deb ...
Unpacking libc-devtools (2.35-0ubuntu3.6) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../12-linux-libc-dev_5.15.0-101.111_amd64.deb ...
Unpacking linux-libc-dev:amd64 (5.15.0-101.111) ...
Selecting previously unselected package libcrypt-dev:amd64.
Preparing to unpack .../13-libcrypt-dev_1%3a4.4.27-1_amd64.deb ...
Unpacking libcrypt-dev:amd64 (1:4.4.27-1) ...
Selecting previously unselected package rpcsvc-proto.
Preparing to unpack .../14-rpcsvc-proto_1.4.2-0ubuntu6_amd64.deb ...
Unpacking rpcsvc-proto (1.4.2-0ubuntu6) ...
Selecting previously unselected package libtirpc-dev:amd64.
Preparing to unpack .../15-libtirpc-dev_1.3.2-2ubuntu0.1_amd64.deb ...
Unpacking libtirpc-dev:amd64 (1.3.2-2ubuntu0.1) ...
Selecting previously unselected package libnsl-dev:amd64.
Preparing to unpack .../16-libnsl-dev_1.3.0-2build2_amd64.deb ...
Unpacking libnsl-dev:amd64 (1.3.0-2build2) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../17-libc6-dev_2.35-0ubuntu3.6_amd64.deb ...
Unpacking libc6-dev:amd64 (2.35-0ubuntu3.6) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../18-manpages-dev_5.10-1ubuntu1_all.deb ...
Unpacking manpages-dev (5.10-1ubuntu1) ...
Setting up manpages-dev (5.10-1ubuntu1) ...
Setting up linux-libc-dev:amd64 (5.15.0-101.111) ...
Setting up libasan6:amd64 (11.4.0-1ubuntu1~22.04) ...
Setting up libtirpc-dev:amd64 (1.3.2-2ubuntu0.1) ...
Setting up rpcsvc-proto (1.4.2-0ubuntu6) ...
Setting up libquadmath0:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up libubsan1:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up libnsl-dev:amd64 (1.3.0-2build2) ...
Setting up libcrypt-dev:amd64 (1:4.4.27-1) ...
Setting up libc-dev-bin (2.35-0ubuntu3.6) ...
Setting up libcc1-0:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up liblsan0:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up libitm1:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up libc-devtools (2.35-0ubuntu3.6) ...
Setting up libtsan0:amd64 (11.4.0-1ubuntu1~22.04) ...
Setting up libgcc-11-dev:amd64 (11.4.0-1ubuntu1~22.04) ...
Setting up gcc-11 (11.4.0-1ubuntu1~22.04) ...
Setting up libc6-dev:amd64 (2.35-0ubuntu3.6) ...
Setting up gcc (4:11.2.0-1ubuntu1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...

Disabled secure boot & restarted.

Still got the same error:

amsu@Hamsathwani:~$ sudo /sbin/vboxconfig


vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.

There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

Re-run the vboxconfig in debug mode, to trace errors, as suggested in this site:
https://forums.virtualbox.org/viewtopic.php?t=100642

amsu@Hamsathwani:~$ sudo sh -x /sbin/vboxconfig


+ readlink -e -- /sbin/vboxconfig
+ TARGET=/opt/VirtualBox/postinst-common.sh
+ MY_PATH=/opt/VirtualBox
+ cd /opt/VirtualBox
+ . ./routines.sh
+ ro_LOG_FILE=
+ ro_X11_AUTOSTART=/etc/xdg/autostart
+ ro_KDE_AUTOSTART=/usr/share/autostart
+ START=true
+ test -n
+ rm -rf /var/lib/dkms/vboxhost*
+ rm -rf /var/lib/dkms/vboxdrv*
+ rm -rf /var/lib/dkms/vboxnetflt*
+ rm -rf /var/lib/dkms/vboxnetadp*
+ install_init_script /opt/VirtualBox/vboxdrv.sh vboxdrv
+ self=install_init_script
+ script=/opt/VirtualBox/vboxdrv.sh
+ name=vboxdrv
+ test -x /opt/VirtualBox/vboxdrv.sh
+ test ! vboxdrv =
+ test -L /sbin/rcvboxdrv
+ rm /sbin/rcvboxdrv
+ ln -s /opt/VirtualBox/vboxdrv.sh /sbin/rcvboxdrv
+ which systemctl
+ test -x /usr/bin/systemctl
+ use_systemd
+ systemctl status
+ systemd_wrap_init_script /opt/VirtualBox/vboxdrv.sh vboxdrv
+ self=systemd_wrap_init_script
+ readlink -f -- /opt/VirtualBox/vboxdrv.sh
+ script=/opt/VirtualBox/vboxdrv.sh
+ name=vboxdrv
+ test -x /opt/VirtualBox/vboxdrv.sh
+ test ! vboxdrv =
+ test -d /usr/lib/systemd/system
+ unit_path=/usr/lib/systemd/system
+ test -d /lib/systemd/system
+ unit_path=/lib/systemd/system
+ test -n /lib/systemd/system
+ + sed -n s/# *X-Conflicts-With: *\(.*\)/\1/psed s/$[a-z]*//
/opt/VirtualBox/vboxdrv.sh
+ conflicts=
+ sed -n s/# *Short-Description: *\(.*\)/\1/p /opt/VirtualBox/vboxdrv.sh
+ description=VirtualBox Linux kernel module
+ sed -n s/# *Required-Start: *\(.*\)/\1/p /opt/VirtualBox/vboxdrv.sh
+ sed s/$[a-z]*//
+ required=
+ sed -n s/# *X-Required-Target-Start: *\(.*\)/\1/p /opt/VirtualBox/vboxdrv.sh
+ required_target=
+ sed -n s/# *X-Start-Before: *\(.*\)/\1/p /opt/VirtualBox/vboxdrv.sh
+ sed s/$[a-z]*//
+ startbefore=
+ sed -n s/# *Default-Start: *\(.*\)/\1/p /opt/VirtualBox/vboxdrv.sh
+ runlevels=2 3 4 5
+ sed -n s/# *X-Service-Type: *\(.*\)/\1/p /opt/VirtualBox/vboxdrv.sh
+ servicetype=
+ test -z
+ servicetype=forking
+ printf runlevel2.target
+ printf runlevel3.target
+ printf runlevel4.target
+ printf runlevel5.target
+ targets=runlevel2.target runlevel3.target runlevel4.target runlevel5.target
+ before=
+ after=
+ cat
+ return
+ install_init_script /opt/VirtualBox/vboxballoonctrl-service.sh vboxballoonctrl-service
+ self=install_init_script
+ script=/opt/VirtualBox/vboxballoonctrl-service.sh
+ name=vboxballoonctrl-service
+ test -x /opt/VirtualBox/vboxballoonctrl-service.sh
+ test ! vboxballoonctrl-service =
+ test -L /sbin/rcvboxballoonctrl-service
+ rm /sbin/rcvboxballoonctrl-service
+ ln -s /opt/VirtualBox/vboxballoonctrl-service.sh /sbin/rcvboxballoonctrl-service
+ which systemctl
+ test -x /usr/bin/systemctl
+ use_systemd
+ systemctl status
+ systemd_wrap_init_script /opt/VirtualBox/vboxballoonctrl-service.sh vboxballoonctrl-service
+ self=systemd_wrap_init_script
+ readlink -f -- /opt/VirtualBox/vboxballoonctrl-service.sh
+ script=/opt/VirtualBox/vboxballoonctrl-service.sh
+ name=vboxballoonctrl-service
+ test -x /opt/VirtualBox/vboxballoonctrl-service.sh
+ test ! vboxballoonctrl-service =
+ test -d /usr/lib/systemd/system
+ unit_path=/usr/lib/systemd/system
+ test -d /lib/systemd/system
+ unit_path=/lib/systemd/system
+ test -n /lib/systemd/system
+ sed -n s/# *X-Conflicts-With: *\(.*\)/\1/p /opt/VirtualBox/vboxballoonctrl-service.sh
+ sed s/$[a-z]*//
+ conflicts=
+ sed -n s/# *Short-Description: *\(.*\)/\1/p /opt/VirtualBox/vboxballoonctrl-service.sh
+ description=
+ sed -n s/# *Required-Start: *\(.*\)/\1/p /opt/VirtualBox/vboxballoonctrl-service.sh
+ sed s/$[a-z]*//
+ required=vboxdrv
+ sed -n s/# *X-Required-Target-Start: *\(.*\)/\1/p /opt/VirtualBox/vboxballoonctrl-service.sh
+ required_target=
+ sed -n s/# *X-Start-Before: *\(.*\)/\1/p /opt/VirtualBox/vboxballoonctrl-service.sh
+ sed s/$[a-z]*//
+ startbefore=
+ sed -n s/# *Default-Start: *\(.*\)/\1/p /opt/VirtualBox/vboxballoonctrl-service.sh
+ runlevels=2 3 4 5
+ sed -n s/# *X-Service-Type: *\(.*\)/\1/p /opt/VirtualBox/vboxballoonctrl-service.sh
+ servicetype=
+ test -z
+ servicetype=forking
+ printf runlevel2.target
+ printf runlevel3.target
+ printf runlevel4.target
+ printf runlevel5.target
+ targets=runlevel2.target runlevel3.target runlevel4.target runlevel5.target
+ before=
+ printf vboxdrv.service
+ after=vboxdrv.service
+ cat
+ return
+ install_init_script /opt/VirtualBox/vboxautostart-service.sh vboxautostart-service
+ self=install_init_script
+ script=/opt/VirtualBox/vboxautostart-service.sh
+ name=vboxautostart-service
+ test -x /opt/VirtualBox/vboxautostart-service.sh
+ test ! vboxautostart-service =
+ test -L /sbin/rcvboxautostart-service
+ rm /sbin/rcvboxautostart-service
+ ln -s /opt/VirtualBox/vboxautostart-service.sh /sbin/rcvboxautostart-service
+ which systemctl
+ test -x /usr/bin/systemctl
+ use_systemd
+ systemctl status
+ systemd_wrap_init_script /opt/VirtualBox/vboxautostart-service.sh vboxautostart-service
+ self=systemd_wrap_init_script
+ readlink -f -- /opt/VirtualBox/vboxautostart-service.sh
+ script=/opt/VirtualBox/vboxautostart-service.sh
+ name=vboxautostart-service
+ test -x /opt/VirtualBox/vboxautostart-service.sh
+ test ! vboxautostart-service =
+ test -d /usr/lib/systemd/system
+ unit_path=/usr/lib/systemd/system
+ test -d /lib/systemd/system
+ unit_path=/lib/systemd/system
+ test -n /lib/systemd/system
+ sed -n s/# *X-Conflicts-With: *\(.*\)/\1/p /opt/VirtualBox/vboxautostart-service.sh
+ sed s/$[a-z]*//
+ conflicts=
+ sed -n s/# *Short-Description: *\(.*\)/\1/p /opt/VirtualBox/vboxautostart-service.sh
+ description=
+ sed -n s/# *Required-Start: *\(.*\)/\1/p /opt/VirtualBox/vboxautostart-service.sh
+ sed s/$[a-z]*//
+ required=vboxdrv
+ sed -n s/# *X-Required-Target-Start: *\(.*\)/\1/p /opt/VirtualBox/vboxautostart-service.sh
+ required_target=
+ sed+ sed s/$[a-z]*//
-n s/# *X-Start-Before: *\(.*\)/\1/p /opt/VirtualBox/vboxautostart-service.sh
+ startbefore=
+ sed -n s/# *Default-Start: *\(.*\)/\1/p /opt/VirtualBox/vboxautostart-service.sh
+ runlevels=2 3 4 5
+ sed -n s/# *X-Service-Type: *\(.*\)/\1/p /opt/VirtualBox/vboxautostart-service.sh
+ servicetype=
+ test -z
+ servicetype=forking
+ printf runlevel2.target
+ printf runlevel3.target
+ printf runlevel4.target
+ printf runlevel5.target
+ targets=runlevel2.target runlevel3.target runlevel4.target runlevel5.target
+ before=
+ printf vboxdrv.service
+ after=vboxdrv.service
+ cat
+ return
+ install_init_script /opt/VirtualBox/vboxweb-service.sh vboxweb-service
+ self=install_init_script
+ script=/opt/VirtualBox/vboxweb-service.sh
+ name=vboxweb-service
+ test -x /opt/VirtualBox/vboxweb-service.sh
+ test ! vboxweb-service =
+ test -L /sbin/rcvboxweb-service
+ rm /sbin/rcvboxweb-service
+ ln -s /opt/VirtualBox/vboxweb-service.sh /sbin/rcvboxweb-service
+ which systemctl
+ test -x /usr/bin/systemctl
+ use_systemd
+ systemctl status
+ systemd_wrap_init_script /opt/VirtualBox/vboxweb-service.sh vboxweb-service
+ self=systemd_wrap_init_script
+ readlink -f -- /opt/VirtualBox/vboxweb-service.sh
+ script=/opt/VirtualBox/vboxweb-service.sh
+ name=vboxweb-service
+ test -x /opt/VirtualBox/vboxweb-service.sh
+ test ! vboxweb-service =
+ test -d /usr/lib/systemd/system
+ unit_path=/usr/lib/systemd/system
+ test -d /lib/systemd/system
+ unit_path=/lib/systemd/system
+ test -n /lib/systemd/system
+ sed -n s/# *X-Conflicts-With: *\(.*\)/\1/p /opt/VirtualBox/vboxweb-service.sh
+ sed s/$[a-z]*//
+ conflicts=
+ sed -n s/# *Short-Description: *\(.*\)/\1/p /opt/VirtualBox/vboxweb-service.sh
+ description=
+ sed -n s/# *Required-Start: *\(.*\)/\1/p /opt/VirtualBox/vboxweb-service.sh
+ sed s/$[a-z]*//
+ required=vboxdrv
+ sed -n s/# *X-Required-Target-Start: *\(.*\)/\1/p /opt/VirtualBox/vboxweb-service.sh
+ required_target=network-online
+ sed -n s/# *X-Start-Before: *\(.*\)/\1/p /opt/VirtualBox/vboxweb-service.sh+
sed s/$[a-z]*//
+ startbefore=
+ sed -n s/# *Default-Start: *\(.*\)/\1/p /opt/VirtualBox/vboxweb-service.sh
+ runlevels=2 3 4 5
+ sed -n s/# *X-Service-Type: *\(.*\)/\1/p /opt/VirtualBox/vboxweb-service.sh
+ servicetype=
+ test -z
+ servicetype=forking
+ printf runlevel2.target
+ printf runlevel3.target
+ printf runlevel4.target
+ printf runlevel5.target
+ targets=runlevel2.target runlevel3.target runlevel4.target runlevel5.target
+ before=
+ printf network-online.target
+ printf vboxdrv.service
+ after=network-online.target vboxdrv.service
+ cat
+ return
+ finish_init_script_install
+ use_systemd
+ systemctl status
+ systemctl daemon-reload
+ delrunlevel vboxdrv
+ self=delrunlevel
+ name=vboxdrv
+ test -n vboxdrv
+ systemctl -q disable vboxdrv
+ chkconfig --del vboxdrv
+ insserv -r vboxdrv
+ update-rc.d -f vboxdrv remove
+ rc-update del vboxdrv
+ rm -f /etc/rc.d/rc?.d/[SK]??vboxdrv
+ rm -f /etc/rc?.d/[SK]??vboxdrv
+ addrunlevel vboxdrv
+ self=addrunlevel
+ name=vboxdrv
+ test -n vboxdrv
+ systemd_service_installed vboxdrv
+ name=vboxdrv
+ test -f /lib/systemd/system/vboxdrv.service
+ systemctl -q enable vboxdrv
+ return
+ delrunlevel vboxballoonctrl-service
+ self=delrunlevel
+ name=vboxballoonctrl-service
+ test -n vboxballoonctrl-service
+ systemctl -q disable vboxballoonctrl-service
+ chkconfig --del vboxballoonctrl-service
+ insserv -r vboxballoonctrl-service
+ update-rc.d -f vboxballoonctrl-service remove
+ rc-update del vboxballoonctrl-service
+ rm -f /etc/rc.d/rc?.d/[SK]??vboxballoonctrl-service
+ rm -f /etc/rc?.d/[SK]??vboxballoonctrl-service
+ addrunlevel vboxballoonctrl-service
+ self=addrunlevel
+ name=vboxballoonctrl-service
+ test -n vboxballoonctrl-service
+ systemd_service_installed vboxballoonctrl-service
+ name=vboxballoonctrl-service
+ test -f /lib/systemd/system/vboxballoonctrl-service.service
+ systemctl -q enable vboxballoonctrl-service
+ return
+ delrunlevel vboxautostart-service
+ self=delrunlevel
+ name=vboxautostart-service
+ test -n vboxautostart-service
+ systemctl -q disable vboxautostart-service
+ chkconfig --del vboxautostart-service
+ insserv -r vboxautostart-service
+ update-rc.d -f vboxautostart-service remove
+ rc-update del vboxautostart-service
+ rm -f /etc/rc.d/rc?.d/[SK]??vboxautostart-service
+ rm -f /etc/rc?.d/[SK]??vboxautostart-service
+ addrunlevel vboxautostart-service
+ self=addrunlevel
+ name=vboxautostart-service
+ test -n vboxautostart-service
+ systemd_service_installed vboxautostart-service
+ name=vboxautostart-service
+ test -f /lib/systemd/system/vboxautostart-service.service
+ systemctl -q enable vboxautostart-service
+ return
+ delrunlevel vboxweb-service
+ self=delrunlevel
+ name=vboxweb-service
+ test -n vboxweb-service
+ systemctl -q disable vboxweb-service
+ chkconfig --del vboxweb-service
+ insserv -r vboxweb-service
+ update-rc.d -f vboxweb-service remove
+ rc-update del vboxweb-service
+ rm -f /etc/rc.d/rc?.d/[SK]??vboxweb-service
+ rm -f /etc/rc?.d/[SK]??vboxweb-service
+ addrunlevel vboxweb-service
+ self=addrunlevel
+ name=vboxweb-service
+ test -n vboxweb-service
+ systemd_service_installed vboxweb-service
+ name=vboxweb-service
+ test -f /lib/systemd/system/vboxweb-service.service
+ systemctl -q enable vboxweb-service
+ return
+ ln -sf /opt/VirtualBox/postinst-common.sh /sbin/vboxconfig
+ [ -x /usr/bin/chcon ]
+ chcon -t texrel_shlib_t /opt/VirtualBox/VBox.png /opt/VirtualBox/VBox.sh
/opt/VirtualBox/VBoxAudioTest /opt/VirtualBox/VBoxAuth.so
/opt/VirtualBox/VBoxAuthSimple.so /opt/VirtualBox/VBoxAutostart
/opt/VirtualBox/VBoxBalloonCtrl /opt/VirtualBox/VBoxBugReport
/opt/VirtualBox/VBoxCreateUSBNode.sh /opt/VirtualBox/VBoxDD.so
/opt/VirtualBox/VBoxDD2.so /opt/VirtualBox/VBoxDDR0.r0 /opt/VirtualBox/VBoxDDU.so
/opt/VirtualBox/VBoxDTrace /opt/VirtualBox/VBoxDbg.so
/opt/VirtualBox/VBoxDragAndDropSvc.so /opt/VirtualBox/VBoxDxVk.so
/opt/VirtualBox/VBoxExtPackHelperApp /opt/VirtualBox/VBoxGuestControlSvc.so
/opt/VirtualBox/VBoxGuestPropSvc.so /opt/VirtualBox/VBoxHeadless
/opt/VirtualBox/VBoxHeadless.so /opt/VirtualBox/VBoxHostChannel.so
/opt/VirtualBox/VBoxKeyboard.so /opt/VirtualBox/VBoxLibSsh.so
/opt/VirtualBox/VBoxManage /opt/VirtualBox/VBoxNetAdpCtl /opt/VirtualBox/VBoxNetDHCP
/opt/VirtualBox/VBoxNetDHCP.so /opt/VirtualBox/VBoxNetNAT
/opt/VirtualBox/VBoxNetNAT.so /opt/VirtualBox/VBoxPython2.so
/opt/VirtualBox/VBoxPython2_7.so /opt/VirtualBox/VBoxPython3.so
/opt/VirtualBox/VBoxPython3m.so /opt/VirtualBox/VBoxRT.so /opt/VirtualBox/VBoxSVC
/opt/VirtualBox/VBoxSVGA3D.so /opt/VirtualBox/VBoxSharedClipboard.so
/opt/VirtualBox/VBoxSharedFolders.so /opt/VirtualBox/VBoxSysInfo.sh
/opt/VirtualBox/VBoxTestOGL /opt/VirtualBox/VBoxVMM.so /opt/VirtualBox/VBoxVolInfo
/opt/VirtualBox/VBoxXPCOM.so /opt/VirtualBox/VBoxXPCOMC.so
/opt/VirtualBox/VBoxXPCOMIPCD /opt/VirtualBox/libQt5CoreVBox.so.5
/opt/VirtualBox/libQt5DBusVBox.so.5 /opt/VirtualBox/libQt5GuiVBox.so.5
/opt/VirtualBox/libQt5HelpVBox.so.5 /opt/VirtualBox/libQt5NetworkVBox.so.5
/opt/VirtualBox/libQt5OpenGLVBox.so.5 /opt/VirtualBox/libQt5PrintSupportVBox.so.5
/opt/VirtualBox/libQt5SqlVBox.so.5 /opt/VirtualBox/libQt5WidgetsVBox.so.5
/opt/VirtualBox/libQt5X11ExtrasVBox.so.5 /opt/VirtualBox/libQt5XcbQpaVBox.so.5
/opt/VirtualBox/libQt5XmlVBox.so.5
+ chcon -t texrel_shlib_t /opt/VirtualBox/VBoxAuth.so
+ chcon -t texrel_shlib_t /opt/VirtualBox/VirtualBox.so
+ chcon -t texrel_shlib_t /opt/VirtualBox/components/VBoxC.so
/opt/VirtualBox/components/VBoxRT.so /opt/VirtualBox/components/VBoxSVCM.so
/opt/VirtualBox/components/VBoxVMM.so /opt/VirtualBox/components/VBoxXPCOMIPCC.so
+ chcon -t java_exec_t /opt/VirtualBox/VirtualBox
+ chcon -t java_exec_t /opt/VirtualBox/VBoxSDL
+ chcon -t java_exec_t /opt/VirtualBox/VBoxHeadless
+ chcon -t java_exec_t /opt/VirtualBox/VBoxNetDHCP
+ chcon -t java_exec_t /opt/VirtualBox/VBoxNetNAT
+ chcon -t java_exec_t /opt/VirtualBox/VBoxExtPackHelperApp
+ chcon -t java_exec_t /opt/VirtualBox/vboxwebsrv
+ chcon -t bin_t /opt/VirtualBox/src/vboxhost/build_in_tmp
+ chcon -t bin_t /usr/share/virtualbox/src/vboxhost/build_in_tmp
+ test -n true
+ /opt/VirtualBox/vboxdrv.sh setup
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
+ /opt/VirtualBox/check_module_dependencies.sh
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
+ echo

+ echo There were problems setting up VirtualBox. To re-start the set-up process, run
There were problems setting up VirtualBox. To re-start the set-up process, run
+ echo /sbin/vboxconfig
/sbin/vboxconfig + echo as root. If your system is using EFI Secure Boot you may need to sign
the as root. If your system is using EFI Secure Boot you may need to sign the
+ echo kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
+ echo them. Please see your Linux system's documentation for more information.
them. Please see your Linux system's documentation for more information.

Installed the build-essential package, as suggested by this site:


https://phoenixnap.com/kb/install-gcc-ubuntu
amsu@Hamsathwani:~$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
dpkg-dev fakeroot g++ g++-11 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-
merge-perl libfakeroot libstdc++-11-dev
lto-disabled-list make
Suggested packages:
debian-keyring g++-multilib g++-11-multilib gcc-11-doc libstdc++-11-doc make-doc
The following NEW packages will be installed:
build-essential dpkg-dev fakeroot g++ g++-11 libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libfakeroot libstdc++-11-dev
lto-disabled-list make
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.8 MB of archives.
After this operation, 52.5 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libstdc++-11-dev amd64
11.4.0-1ubuntu1~22.04 [2,101 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 g++-11 amd64 11.4.0-
1ubuntu1~22.04 [11.4 MB]
Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 g++ amd64 4:11.2.0-1ubuntu1 [1,412
B]
Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 make amd64 4.3-4.1build1 [180 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 lto-disabled-list all 24 [12.5 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 dpkg-dev all 1.21.1ubuntu2.3
[922 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 build-essential amd64 12.9ubuntu3
[4,744 B]
Get:8 http://archive.ubuntu.com/ubuntu jammy/main amd64 libfakeroot amd64 1.28-1ubuntu1
[31.5 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy/main amd64 fakeroot amd64 1.28-1ubuntu1 [60.4
kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy/main amd64 libalgorithm-diff-perl all 1.201-1
[41.8 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy/main amd64 libalgorithm-diff-xs-perl amd64 0.04-
6build3 [11.9 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy/main amd64 libalgorithm-merge-perl all 0.08-3
[12.0 kB]
Fetched 14.8 MB in 20s (738 kB/s)
Selecting previously unselected package libstdc++-11-dev:amd64.
(Reading database ... 190163 files and directories currently installed.)
Preparing to unpack .../00-libstdc++-11-dev_11.4.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libstdc++-11-dev:amd64 (11.4.0-1ubuntu1~22.04) ...
Selecting previously unselected package g++-11.
Preparing to unpack .../01-g++-11_11.4.0-1ubuntu1~22.04_amd64.deb ...
Unpacking g++-11 (11.4.0-1ubuntu1~22.04) ...
Selecting previously unselected package g++.
Preparing to unpack .../02-g++_4%3a11.2.0-1ubuntu1_amd64.deb ...
Unpacking g++ (4:11.2.0-1ubuntu1) ...
Selecting previously unselected package make.
Preparing to unpack .../03-make_4.3-4.1build1_amd64.deb ...
Unpacking make (4.3-4.1build1) ...
Selecting previously unselected package lto-disabled-list.
Preparing to unpack .../04-lto-disabled-list_24_all.deb ...
Unpacking lto-disabled-list (24) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../05-dpkg-dev_1.21.1ubuntu2.3_all.deb ...
Unpacking dpkg-dev (1.21.1ubuntu2.3) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../06-build-essential_12.9ubuntu3_amd64.deb ...
Unpacking build-essential (12.9ubuntu3) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../07-libfakeroot_1.28-1ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.28-1ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../08-fakeroot_1.28-1ubuntu1_amd64.deb ...
Unpacking fakeroot (1.28-1ubuntu1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../09-libalgorithm-diff-perl_1.201-1_all.deb ...
Unpacking libalgorithm-diff-perl (1.201-1) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../10-libalgorithm-diff-xs-perl_0.04-6build3_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-6build3) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../11-libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Setting up lto-disabled-list (24) ...
Setting up libalgorithm-diff-perl (1.201-1) ...
Setting up libfakeroot:amd64 (1.28-1ubuntu1) ...
Setting up fakeroot (1.28-1ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto
mode
Setting up make (4.3-4.1build1) ...
Setting up libstdc++-11-dev:amd64 (11.4.0-1ubuntu1~22.04) ...
Setting up libalgorithm-diff-xs-perl (0.04-6build3) ...
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up g++-11 (11.4.0-1ubuntu1~22.04) ...
Setting up dpkg-dev (1.21.1ubuntu2.3) ...
Setting up g++ (4:11.2.0-1ubuntu1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.9ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...

Still got errors on UEFI Secure boot.

amsu@Hamsathwani:~$ sudo /sbin/vboxconfig


vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.

There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

Checking the log file:

amsu@Hamsathwani:~$ sudo cat /var/log/vbox-setup.log


Building the main VirtualBox module.
Error building the module:
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/6.5.0-26-
generic/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j4 modules
make[1]: warning: -j4 forced in submake: resetting jobserver mode.
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using:
make -f ./scripts/Makefile.build obj=/tmp/vbox.0 need-builtin=1 need-modorder=1
# cmd_mod /tmp/vbox.0/vboxdrv.mod
printf '%s
' linux/SUPDrv-linux.o SUPDrv.o SUPDrvGip.o SUPDrvSem.o SUPDrvTracer.o SUPLibAll.o
common/string/strformatrt.o combined-agnostic1.o combined-agnostic2.o combined-os-specific.o |
awk '!x[$0]++ { print("/tmp/vbox.0/"$0) }' > /tmp/vbox.0/vboxdrv.mod
# CC [M] /tmp/vbox.0/linux/SUPDrv-linux.o
gcc-12 -Wp,-MMD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -I./arch/x86/include
-I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi
-I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include
./include/linux/compiler-version.h -include ./include/linux/kconfig.h -I./ubuntu/include -include
./include/linux/compiler_types.h -D__KERNEL__ -std=gnu11 -fshort-wchar -funsigned-char -fno-
common -fno-PIE -fno-strict-aliasing -Wall -Wundef -Werror=implicit-function-declaration -
Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-
trigraphs -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -mno-80387 -
mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-
tables -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-
entry=16,16 -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=1024 -fstack-protector-
strong -Wno-main -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=zero -
fzero-call-used-regs=used-gpr -pg -mrecord-mcount -falign-functions=16 -Wvla -Wno-pointer-sign
-Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-
fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -g -gdwarf-
5 -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -Wno-
declaration-after-statement -I./include -I/tmp/vbox.0/ -I/tmp/vbox.0/include
-I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -
DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -
DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -
DVBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV -
DIPRT_WITHOUT_EFLAGS_AC_PRESERVING -DVBOX_WITH_64_BITS_GUESTS -
DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -fsanitize=bounds-strict -
fsanitize=shift -fsanitize=bool -fsanitize=enum -DMODULE -
DKBUILD_BASENAME='"SUPDrv_linux"' -DKBUILD_MODNAME='"vboxdrv"' -
D__KBUILD_MODNAME=kmod_vboxdrv -c -o /tmp/vbox.0/linux/SUPDrv-linux.o
/tmp/vbox.0/linux/SUPDrv-linux.c ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --
hacks=skylake --retpoline --rethunk --sls --stackval --static-call --uaccess --prefix=16 --module
/tmp/vbox.0/linux/SUPDrv-linux.o
/bin/sh: 1: gcc-12: not found
make[2]: *** [scripts/Makefile.build:251: /tmp/vbox.0/linux/SUPDrv-linux.o] Error 127
make[1]: *** [Makefile:2039: /tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:133: vboxdrv] Error 2

Installed gcc-12, based on the above error from the log file.

amsu@Hamsathwani:~$ sudo apt-get install gcc-12


Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
cpp-12 libasan8 libgcc-12-dev libtsan2
Suggested packages:
gcc-12-locales cpp-12-doc gcc-12-multilib gcc-12-doc
The following NEW packages will be installed:
cpp-12 gcc-12 libasan8 libgcc-12-dev libtsan2
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 40.1 MB of archives.
After this operation, 138 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 cpp-12 amd64 12.3.0-
1ubuntu1~22.04 [10.8 MB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libasan8 amd64 12.3.0-
1ubuntu1~22.04 [2,442 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libtsan2 amd64 12.3.0-
1ubuntu1~22.04 [2,477 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libgcc-12-dev amd64 12.3.0-
1ubuntu1~22.04 [2,618 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gcc-12 amd64 12.3.0-
1ubuntu1~22.04 [21.7 MB]
Fetched 40.1 MB in 51s (790 kB/s)
Selecting previously unselected package cpp-12.
(Reading database ... 191392 files and directories currently installed.)
Preparing to unpack .../cpp-12_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking cpp-12 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package libasan8:amd64.
Preparing to unpack .../libasan8_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libasan8:amd64 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package libtsan2:amd64.
Preparing to unpack .../libtsan2_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libtsan2:amd64 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package libgcc-12-dev:amd64.
Preparing to unpack .../libgcc-12-dev_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libgcc-12-dev:amd64 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package gcc-12.
Preparing to unpack .../gcc-12_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking gcc-12 (12.3.0-1ubuntu1~22.04) ...
Setting up cpp-12 (12.3.0-1ubuntu1~22.04) ...
Setting up libasan8:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up libtsan2:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up libgcc-12-dev:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up gcc-12 (12.3.0-1ubuntu1~22.04) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...

Ran the vboxconfig script again. It was successful.

amsu@Hamsathwani:~$ sudo /sbin/vboxconfig


vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.

#####

You might also like