virtualbox failed Solved

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
sevenmpd
Level 2
Level 2
Posts: 51
Joined: Sun Apr 05, 2020 4:51 pm

virtualbox failed Solved

Post 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.
Last edited by sevenmpd on Thu Jun 11, 2020 3:55 pm, edited 1 time in total.
User avatar
spamegg
Level 4
Level 4
Posts: 403
Joined: Mon Oct 28, 2019 2:34 am

Re: virtualbox failed

Post 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.
sevenmpd
Level 2
Level 2
Posts: 51
Joined: Sun Apr 05, 2020 4:51 pm

Re: virtualbox failed

Post 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
ralplpcr
Level 5
Level 5
Posts: 868
Joined: Tue Jul 28, 2015 10:11 am

Re: virtualbox failed

Post 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.
User avatar
AndyMH
Level 14
Level 14
Posts: 5020
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: virtualbox failed

Post 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
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate
sevenmpd
Level 2
Level 2
Posts: 51
Joined: Sun Apr 05, 2020 4:51 pm

Re: virtualbox failed

Post 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 .
ralplpcr
Level 5
Level 5
Posts: 868
Joined: Tue Jul 28, 2015 10:11 am

Re: virtualbox failed

Post 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?
User avatar
AndyMH
Level 14
Level 14
Posts: 5020
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: virtualbox failed

Post 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.
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate
User avatar
Pierre
Level 20
Level 20
Posts: 10958
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: virtualbox failed

Post 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.
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!.
sevenmpd
Level 2
Level 2
Posts: 51
Joined: Sun Apr 05, 2020 4:51 pm

Re: virtualbox failed

Post 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 :?
sevenmpd
Level 2
Level 2
Posts: 51
Joined: Sun Apr 05, 2020 4:51 pm

Re: virtualbox failed

Post by sevenmpd »

And now this
fault_2.png
User avatar
BG405
Level 8
Level 8
Posts: 2382
Joined: Fri Mar 11, 2016 3:09 pm
Location: England

Re: virtualbox failed

Post 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.
Dell Inspiron 1525 - LM17.3 CE 64-------------------Lenovo T440 8GB - Manjaro KDE with Mint VMs
Toshiba NB250 - Manjaro KDE------------------------K7S5A AMD 1.2GHz - LM17.3 Xfce 32 & WinXP-Pro
Acer Aspire E11 ES1-111M - LM18.2 KDE 64 ----Two ROMS don't make a WRITE ...
sevenmpd
Level 2
Level 2
Posts: 51
Joined: Sun Apr 05, 2020 4:51 pm

Re: virtualbox failed

Post by sevenmpd »

BG405 thanks for the suggestion but as I have said above I cannot open Synaptic
User avatar
BG405
Level 8
Level 8
Posts: 2382
Joined: Fri Mar 11, 2016 3:09 pm
Location: England

Re: virtualbox failed

Post 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.
Dell Inspiron 1525 - LM17.3 CE 64-------------------Lenovo T440 8GB - Manjaro KDE with Mint VMs
Toshiba NB250 - Manjaro KDE------------------------K7S5A AMD 1.2GHz - LM17.3 Xfce 32 & WinXP-Pro
Acer Aspire E11 ES1-111M - LM18.2 KDE 64 ----Two ROMS don't make a WRITE ...
sevenmpd
Level 2
Level 2
Posts: 51
Joined: Sun Apr 05, 2020 4:51 pm

Re: virtualbox failed

Post 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 !
Post Reply

Return to “Newbie Questions”