Page 1 of 1

virtualbox failed Solved

Posted: Wed Jun 10, 2020 1:21 pm
by sevenmpd
Good Evening I been using linux mint for a few weeks now and thought I'd start to install Virtualbox so after watching a could of YT videos I downloaded virtualbox 6.1.10 and the Ubuntu 1804-19.04-19.10 to downloads. I then installed from downloads but the install failed from the synaptic packet manager I tried to uninstall it but that also failed so i'm now stuck in the middle would appreciate so advice please.

Re: virtualbox failed

Posted: Wed Jun 10, 2020 1:27 pm
by spamegg
Yeah that does happen. Ubuntu comes configured for Virtualbox 5. Some of the sub-packages needed for it will conflict with Virtualbox 6.
First do this

Code: Select all

sudo apt remove virtualbox virtualbox-guest-additions-iso virtualbox-dkms
Then try reinstalling the Virtualbox 6 you downloaded.
Then

Code: Select all

sudo apt install dkms
sudo /sbin/vboxconfig
The last one is needed to recompile kernel modules to make it work with Virtualbox 6.

Re: virtualbox failed

Posted: Wed Jun 10, 2020 4:16 pm
by sevenmpd
Entered the first line of code and attempted to re-install VB but it again failed had the idea to the failure report maybe of help
VB fail.odt
(16.87 KiB) Downloaded 9 times

Re: virtualbox failed

Posted: Wed Jun 10, 2020 5:33 pm
by ralplpcr
sevenmpd wrote:
Wed Jun 10, 2020 4:16 pm
Entered the first line of code and attempted to re-install VB but it again failed had the idea to the failure report maybe of helpVB fail.odt
Did you follow the instructions listed in your VB fail.odt document?

Code: Select all

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.
I would also suggest following the instructions here - - as mentioned, several of the libraries included in the base Ubuntu are configured for VirtualBox 5. You'll need to update them to work with VirtualBox 6.

Re: virtualbox failed

Posted: Wed Jun 10, 2020 5:51 pm
by AndyMH
Or install using the instructions posted by gm10 in this topic (2nd post):
viewtopic.php?f=47&t=307595&p=1754953&h ... x#p1754953

Re: virtualbox failed

Posted: Thu Jun 11, 2020 4:12 am
by sevenmpd
Thanks all for advice re failed instructions ran the script resulting
harry@harry-SATELLITE-L50-C:~$ /sbin/vboxconfig
bash: /sbin/vboxconfig: No such file or directory
Look at both posts and tried various suggestions for install to no avail .

Re: virtualbox failed

Posted: Thu Jun 11, 2020 6:14 am
by ralplpcr
sevenmpd wrote:
Thu Jun 11, 2020 4:12 am
harry@harry-SATELLITE-L50-C:~$ /sbin/vboxconfig
bash: /sbin/vboxconfig: No such file or directory
You appear to have missed the bit where it stated
To re-start the set-up process, run
/sbin/vboxconfig
as root.


That means you need to run sudo /sbin/vboxconfig. That sudo is important.
I suspect that it's something small like this which was overlooked and is preventing your installation from succeeding. But if you don't provide more details, there's not much we can do to assist?

Re: virtualbox failed

Posted: Thu Jun 11, 2020 6:21 am
by AndyMH
You would be far better off purging virtualbox completely from your system (use synaptic) and installing using the instructions given in the link in my post. It is only four lines in a terminal!

Code: Select all

echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bionic contrib" | sudo tee -a /etc/apt/sources.list 
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add - 
apt update 
apt install virtualbox-6.1
All you have to do is copy/paste the lines one at a time into a terminal.

Re: virtualbox failed

Posted: Thu Jun 11, 2020 6:24 am
by Pierre
this is an very common VirtualBox issue,
and the Normal Fix is to to run sudo /sbin/vboxconfig
- - which is an message, that is often given by the VirtualBox program, itself.

the same issue, can often arise, after any Linux Kernel update, as well.

Re: virtualbox failed

Posted: Thu Jun 11, 2020 9:33 am
by sevenmpd
When I run sudo /sbin/vboxconfig I get
sudo: /sbin/vboxconfig: command not found

I have tried purging virtualbox completely via synaptic packet manager but as I said earlier it gets so far and then generates a error message which I was going to copy however I now find I cannot open the synaptic packet manager I get
fault.png
I get then feeling i'm going to need a fresh install of mint :?

Re: virtualbox failed

Posted: Thu Jun 11, 2020 9:36 am
by sevenmpd
And now this
fault_2.png

Re: virtualbox failed

Posted: Thu Jun 11, 2020 10:36 am
by BG405
There is, if I recall correctly*, an option in Synaptic to "fix broken packages". Have you tried that?

* I haven't needed it for some time & I'm not on my Mint system at the momemt so will need to run up a VM to check.

Re: virtualbox failed

Posted: Thu Jun 11, 2020 10:43 am
by sevenmpd
BG405 thanks for the suggestion but as I have said above I cannot open Synaptic

Re: virtualbox failed

Posted: Thu Jun 11, 2020 11:00 am
by BG405
Ah, I just read your prior post properly .. thought from the pics it was actually opening but getting stuck when you tried to install or remove.

Try this in a Terminal:

Code: Select all

sudo cat /var/lib/dpkg/lock
If it returns anything other than a blank prompt, you need to delete it:

Code: Select all

sudo rm -rf /var/lib/dpkg/lock
.. then create a new blank one:

Code: Select all

sudo nano /var/lib/dpkg/lock
Don't put anything in the file; simply CTRL+O to write and CTRL+X to exit the nano text editor. Then try Synaptic again.

Re: virtualbox failed

Posted: Thu Jun 11, 2020 3:52 pm
by sevenmpd
Many thanks to all I have solved the later part of my problem by reinstalling mint as for virtualbox think I'll give it a miss !