virtualbox-6.1.22 on Ubuntu 18.04

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Thomas Bensler
Posts: 2
Joined: 4. May 2021, 11:32

virtualbox-6.1.22 on Ubuntu 18.04

Post by Thomas Bensler »

Hi there,

I am trying to install the current virtualbox 6.1.22 from the virtualbox org repository on a Ubuntu 18.04 based Linux Mint (host kernel 5.4.0-71-generic).

I does not seem to work. When I try to run it, I am prompted to run /sbin/vboxconfig ... which just spits out errors (and I have no idea why it tries to acces 5.4.101 kernel which is not present on my system)

Code: Select all

sudo /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
depmod: WARNING: could not open /lib/modules/5.4.101/modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules/5.4.101/modules.builtin: No such file or directory
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
At main.c:281:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:72
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:79
kmodsign: /lib/modules/5.4.0-71-generic/misc/vboxdrv.ko: No such file or directory
At main.c:281:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:72
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:79
kmodsign: /lib/modules/5.4.0-71-generic/misc/vboxnetflt.ko: No such file or directory
At main.c:281:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:72
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:79
kmodsign: /lib/modules/5.4.0-71-generic/misc/vboxnetadp.ko: No such file or directory
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

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.
Any ideas so far? Any help is appreciated. Thanks in advance!
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: virtualbox-6.1.22 on Ubuntu 18.04

Post by fth0 »

Thomas Bensler wrote:Ubuntu 18.04 based Linux Mint (host kernel 5.4.0-71-generic)
You've probably chosen the wrong version. Linux kernel 5.4 is default for Ubuntu 20.04 and Linux Mint 20, so you should probably rather select the eoan or focal version.

Edit: Thinking about it, that seems to have been a generally unsuited advice from me. Stroke through for the posterity.
Last edited by fth0 on 4. May 2021, 15:57, edited 1 time in total.
Thomas Bensler
Posts: 2
Joined: 4. May 2021, 11:32

Re: virtualbox-6.1.22 on Ubuntu 18.04

Post by Thomas Bensler »

I (still) run an 19.3 Linux Mint which is based on Ubuntu 18.04 . Over time I upgraded to the 5.4.0 Kernel version currently being at 5.4.0-71-generic.

I just tried to follow your advice and use the focal repo from virtualbox org . But that ended (expectedly) in a bunch of unsolvable dependencies:

Code: Select all

virtualbox-6.1:
  Depends: libc6 (>=2.29) but 2.27-3ubuntu1.4 is to be installed
  Depends: libqt5core5a (>=5.12.2) but 5.9.5+dfsg-0ubuntu2.5 is to be installed
 Depends: libqt5opengl5 but it is not going to be installed
  Depends: libqt5widgets5 (>=5.12.2) but 5.9.5+dfsg-0ubuntu2.5 is to be installed
 Depends: libqt5x11extras5 but it is not going to be installed
 Depends: libvpx6 (>=1.6.0) but it is not installable
 Recommends: libsdl-ttf2.0-0 but it is not going to be installed
 Recommends: linux-image
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: virtualbox-6.1.22 on Ubuntu 18.04

Post by fth0 »

Ok, I thought that was worth a try, because I'm not sure if newer kernels than the Linux distribution's base kernel version are supported, when VirtualBox builds its kernel modules.

Some new ideas:

First, check if you perhaps have a mixture of VirtualBox installation packages from Linux Mint and from Oracle. Second, /sbin/vboxconfig is a shell script, so you could execute it with sudo bash -x /sbin/vboxconfig to start investigating where the "101" or the error messages come from.

Alternatively, you could google the VirtualBox forums (e.g. "site:forums.virtualbox.org vboxconfig SSL error").
Post Reply