[SOLVED] Installing the latest Virtualbox version on Linux Mint

Questions about virtualization software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
maccabbeo
Level 2
Level 2
Posts: 61
Joined: Fri May 24, 2013 3:32 am

[SOLVED] Installing the latest Virtualbox version on Linux Mint

Post by maccabbeo »

Hi to all,

I've been asked to install the latest release of VirtualBox to fix some issues. However, there's no specific installation instruction for Mint in the official download page https://www.virtualbox.org/wiki/Linux_Downloads.

At the moment, version 5.2.26 is the latest on my repositories. How can I solve the problem?
Should I replace any Ubuntu or Debian codename to replace that <mydist> in the following line before adding it to my /etc/apt/sources.list file?

deb https://download.virtualbox.org/virtualbox/debian <mydist> contrib

Any help is appreciated.
Thanks.

EDIT 1: inxi -S
System: Host: mano-X510UNR Kernel: 4.15.0-45-generic x86_64 bits: 64 Desktop: MATE 1.20.1
Distro: Linux Mint 19 Tara
EDIT 2: this solved the problem viewtopic.php?f=231&t=289089&p=1601927#p1601783
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 4 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
ajgringo619

Re: Installing the latest Virtualbox version on Linux Mint

Post by ajgringo619 »

Use bionic for <mydist>.
User avatar
kyphi
Level 9
Level 9
Posts: 2735
Joined: Sat Jul 09, 2011 1:14 am
Location: The Hunter Valley, Australia

Re: Installing the latest Virtualbox version on Linux Mint

Post by kyphi »

Since the current version of Linux Mint uses the Ubuntu 18.04 base you install from that giving you VirtualBox 6.0.4.

https://www.virtualbox.org/wiki/Linux_Downloads

Don't forget to install the Guest additions which are included. The Extension Pack has to be downloaded separately - necessary for USB connectivity.
Linux Mint 21.3 Cinnamon
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Installing the latest Virtualbox version on Linux Mint

Post by smurphos »

maccabbeo wrote: Wed Feb 27, 2019 2:45 pm At the moment, version 5.2.26 is the latest on my repositories. How can I solve the problem?
If you've got 5.2.26 showing in your repositories you've already got the Oracle virtualbox repo set up. So it should just be a case of

apt install virtualbox-6.0. Installing 6.0 will automatically remove 5.2.26.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
maccabbeo
Level 2
Level 2
Posts: 61
Joined: Fri May 24, 2013 3:32 am

Re: Installing the latest Virtualbox version on Linux Mint

Post by maccabbeo »

Hi ajgringo619, smurphos and kyphi,

Thanks for your feedbacks. I did not mention that of I already tried to install version number 6 just as you suggested and as described in the VirtualBox download page. Also, I added the relevant line in my source.list file as you soggested, but some error messages show me that something went wrong.

This is what I get when I run virtualbox & from terminal
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (4.15.0-45-generic) or it failed to
load. Please recompile the kernel module and install it by

sudo /sbin/vboxconfig

You will not be able to start VMs until this problem is fixed.
while I get this after running sudo /sbin/vboxconfig
[/quote]vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
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. [/quote]

I get a similar message on one of the two popup windows shown when trying to run the guest OS [Windows 7 64 bit] from the Virtual Box graphical user interface:
VirtualBox - Error in suplibSplitOsInit

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/sbin/vboxconfig'

as root.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
while the other popup window shows this:
The virtual machine 'Win764bit' has terminated unexpectedly during startup with exit code 1 (0x1).

Codice di uscita:
NS_ERROR_FAILURE (0x80004005)
Componente:
MachineWrap
Interfaccia:
IMachine {5047460a-265d-4538-b23e-ddba5fb84976}
In order to avoid messing all the versions, I purged them all before reinstalling the 6 but it didn't work either. I also tried to install virtualbox-dkms from repos, which of course installed the virtualbox-dkms 5.2.18 version... which may not be compatible with the version number six of Virtualbox (?!?)
User avatar
Pierre
Level 21
Level 21
Posts: 13227
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Installing the latest Virtualbox version on Linux Mint

Post by Pierre »

that error of "Kernel driver not installed (rc=-1908)"
followed by the statement of:
-- Please reinstall the kernel module by executing
'/sbin/vboxconfig'
as root.
is quite common, & I'd first struck it, when upgrading from VB5.0 to VB5.1
& the fix, apart from repeatedly running the temporary fix of '/sbin/vboxconfig' as root,
was to Completely Remove VirtualBox in Package Manager aka synaptic,,
and then installed the VB5.1.xx.deb file, from the VirtualBox Site.

it now does seem, that this error is continuing into the VB6.0.x series - as well.
so, once you've gotten tired of that temporary fix,
- is to use the Completely Remove VirtualBox in Package Manager aka synaptic,, again.
dunno why, this issue is continuing into the VB6.0.x series .. .
https://www.virtualbox.org/wiki/Linux_Downloads
should give the latest VB6.0.x series of VirtualBox.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
maccabbeo
Level 2
Level 2
Posts: 61
Joined: Fri May 24, 2013 3:32 am

Re: Installing the latest Virtualbox version on Linux Mint

Post by maccabbeo »

Hi Pierre,

Thanks for sharing your experience. Unfortunately it did not work for me. I just purged the previous installation of Virtualbox, downloaded the .deb from the official website (for Ubuntu 18.01, as suggested by kyphi) and installed it via gdebi but I always get the same error
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.
In fact, I also run dmesg but I'm not able to find any line related to the issue maybe just because I don't know what I should look for. :oops:
User avatar
thx-1138
Level 8
Level 8
Posts: 2092
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Installing the latest Virtualbox version on Linux Mint

Post by thx-1138 »

maccabbeo wrote: Thu Feb 28, 2019 3:49 am.........................................
Make sure first Secure Boot is disabled (in your BIOS / UEFI).
maccabbeo
Level 2
Level 2
Posts: 61
Joined: Fri May 24, 2013 3:32 am

Re: Installing the latest Virtualbox version on Linux Mint

Post by maccabbeo »

Unbelievable! That solved the problem! Thank you all very much for your time.

However, why do the Virtual Box team give such apparently unrelated and misleading error messages:?:
ftolar59

Re: [SOLVED] Installing the latest Virtualbox version on Linux Mint

Post by ftolar59 »

My HP Pavilion Mini Desktop - 300-030 doesn't seem to be able to disable Secure Boot. It has been this way ever since I bought it. HP denies all of course.
One more thing, I had this computer installed with Ubuntu Groovy Gorilla and had the exact same issues. It is a HP problem for sure. Well if I get lucky tomorrow night and win the Mega Millions, I'll buy new computers.
Locked

Return to “Virtual Machines”