[Resolved] Failed to install latest virtualbox 5.2.10 on ubuntu 18.04

Discussions related to using VirtualBox on Linux hosts.
Post Reply
lonix
Posts: 2
Joined: 30. Jun 2018, 15:25

[Resolved] Failed to install latest virtualbox 5.2.10 on ubuntu 18.04

Post by lonix »

My Ubuntu 18.04 and all packages were updated and functional. I received an upgrade notice for virtualbox, so I let it update. It failed and left my OS unstable.

So I remove it completely:

Code: Select all

sudo dpkg --purge virtualbox-qt
sudo dpkg --purge virtualbox
sudo dpkg --purge virtualbox-dkms
sudo dpkg --purge dkms
sudo apt autoremove
sudo find / -name vbox             # delete anything found by this command
sudo find / -name virtualbox       # delete anything found by this command
Now I have a "clean" system. So I do:

Code: Select all

sudo apt install virtualbox
And it always gets this far then freezes:

Code: Select all

Setting up virtualbox-dkms (5.2.10-dfsg-6ubuntu18.04.1) ...
Loading new virtualbox-5.2.10 DKMS files...
Building for 4.15.0-23-generic
Building initial module for 4.15.0-23-generic
I can't even ctrl-c, so:
  • I kill the process
  • of course then `dpkg` says to do `sudo dpkg --configure -a`, so I do that, then retry
  • but it gets stuck in the same place
  • so I remove everything again, retry, and it freezes there again, etc.
Some notes:
  • When I originally installed vbox I signed its modules so I don't need to disable secure boot. I don't want to disable secure boot now either.
  • Is there a way I can examine some log to tell me what is going wrong? I looked at `/var/log/syslog` but there is nothing interesting in there.
Last edited by socratis on 5. Jul 2018, 08:36, edited 2 times in total.
Reason: Marked as [Resolved].
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Failed to install latest virtualbox 5.2.10 on ubuntu 18.04

Post by socratis »

lonix wrote:Now I have a "clean" system. So I do:

Code: Select all

sudo apt install virtualbox
Unless you've added the VirtualBox repo, this will retrieve the Ubuntu fork of VirtualBox. See the Downloads page for the official VirtualBox and instructions for the Debian based distros...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
lonix
Posts: 2
Joined: 30. Jun 2018, 15:25

Re: Failed to install latest virtualbox 5.2.10 on ubuntu 18.04

Post by lonix »

socratis wrote:Unless you've added the VirtualBox repo, this will retrieve the Ubuntu fork of VirtualBox. See the Downloads page for the official VirtualBox and instructions for the Debian based distros...
Yes that solved it, thanks!

What do you mean though by "fork"? I thought the Ubuntu repo version was simply older, not that it was a fork? Regardless I was surprised that the Ubuntu package is much older, I would have thought for something important like vb it would be regularly updated.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Failed to install latest virtualbox 5.2.10 on ubuntu 18.04

Post by socratis »

lonix wrote:I thought the Ubuntu repo version was simply older, not that it was a fork?
No, it's actually a fork. Getting closer and closer with each release, but a fork nonetheless. You can usually/easily tell by 1) the lack of the Ext. Pack (which is not open-source), 2) the output of the command "VBoxManage -version". If it's a fork, then there should be a "_Ubuntu" at the end.

Glad you got it going. Marking as [Resolved].
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply