Ubuntu 18.10 install error for 5.2.22

Discussions related to using VirtualBox on Linux hosts.
csmithhelena
Posts: 11
Joined: 8. May 2015, 23:52

Ubuntu 18.10 install error for 5.2.22

Post by csmithhelena »

After a fresh install of Ubuntu 18.10, added /etc/apt/sources.list.d/virtualbox.list:
deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian cosmic contrib
Then did "sudo apt update" and "sudo apt-get install virtualbox-5.2". The install is PAINFULLY slow. Plus, there are several errors trying to install VirtualBox 5.2.22:

Setting up virtualbox-5.2 (5.2.22-126460~Ubuntu~bionic) ...
Adding group `vboxusers' (GID 131) ...
Done.
Failed to enable unit: Connection timed out
Failed to enable unit: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
Failed to enable unit: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
Failed to enable unit: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
Failed to start vboxdrv.service: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
See system logs and 'systemctl status vboxdrv.service' for details.
Failed to start vboxballoonctrl-service.service: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
See system logs and 'systemctl status vboxballoonctrl-service.service' for details.
Failed to start vboxautostart-service.service: Connection timed out
See system logs and 'systemctl status vboxautostart-service.service' for details.

This is right in the middle of the install, which has been running for over 5 minutes. When it finishes I will do an "apt purge virtualbox-5.2" and try falling back to the one in the Ubuntu repository (5.2.18). I have not tried the standalone .deb. But I am thinking this is a problem with the 5.2.22 release.
eudoxus
Posts: 3
Joined: 10. Nov 2018, 03:22

Re: Ubuntu 18.10 install error for 5.2.22

Post by eudoxus »

I can confirm these installation error messages for VirtualBox 5.2.22 when installing on Lubuntu 18.10 cosmic:
$ sudo dpkg -i virtualbox-5.2_5.2.22-126460~Ubuntu~bionic_amd64.deb
[sudo] password for eudoxus:
(Reading database ... 405556 files and directories currently installed.)
Preparing to unpack virtualbox-5.2_5.2.22-126460~Ubuntu~bionic_amd64.deb ...
Unpacking virtualbox-5.2 (5.2.22-126460~Ubuntu~bionic) over (5.2.20-125813~Ubuntu~bionic) ...
Setting up virtualbox-5.2 (5.2.22-126460~Ubuntu~bionic) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Failed to enable unit: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
Failed to enable unit: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
Failed to enable unit: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
Failed to enable unit: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
Failed to start vboxdrv.service: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
See system logs and 'systemctl status vboxdrv.service' for details.
Failed to start vboxballoonctrl-service.service: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
See system logs and 'systemctl status vboxballoonctrl-service.service' for details.
Failed to start vboxautostart-service.service: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
See system logs and 'systemctl status vboxautostart-service.service' for details.
Failed to start vboxweb-service.service: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
See system logs and 'systemctl status vboxweb-service.service' for details.
Processing triggers for systemd (239-7ubuntu10.1) ...
Failed to reload daemon: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
Processing triggers for desktop-file-utils (0.23-3ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (1.10-1) ...
The log files in /var/log don't seem to contain a lot of useful info. Here is the relevant content of syslog:
Nov 9 20:01:51 superprime vboxdrv.sh: Stopping VirtualBox services.
Nov 9 20:01:51 superprime vboxdrv.sh: VirtualBox services stopped.
Nov 9 20:01:51 superprime vboxdrv.sh: Starting VirtualBox services.
Nov 9 20:01:51 superprime vboxdrv.sh: Building VirtualBox kernel modules.
Nov 9 20:02:14 superprime vboxdrv.sh: VirtualBox kernel modules built.
Nov 9 20:02:14 superprime kernel: [328184.942221] vboxdrv: Found 16 processor cores
Nov 9 20:02:14 superprime kernel: [328184.962311] vboxdrv: TSC mode is Invariant, tentative frequency 2994366558 Hz
Nov 9 20:02:14 superprime kernel: [328184.962313] vboxdrv: Successfully loaded version 5.2.22 (interface 0x00290001)
Nov 9 20:02:14 superprime kernel: [328185.168276] VBoxNetFlt: Successfully started.
Nov 9 20:02:14 superprime kernel: [328185.170766] VBoxNetAdp: Successfully started.
Nov 9 20:02:14 superprime kernel: [328185.173147] VBoxPciLinuxInit
Nov 9 20:02:14 superprime kernel: [328185.174671] vboxpci: IOMMU found
Nov 9 20:02:14 superprime vboxdrv.sh: VirtualBox services started.
Nov 9 20:17:01 superprime CRON[30394]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Nov 9 20:20:09 superprime systemd-resolved[1138]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
kern.log:
Nov 9 20:02:14 superprime kernel: [328184.942221] vboxdrv: Found 16 processor cores
Nov 9 20:02:14 superprime kernel: [328184.962311] vboxdrv: TSC mode is Invariant, tentative frequency 2994366558 Hz
Nov 9 20:02:14 superprime kernel: [328184.962313] vboxdrv: Successfully loaded version 5.2.22 (interface 0x00290001)
Nov 9 20:02:14 superprime kernel: [328185.168276] VBoxNetFlt: Successfully started.
Nov 9 20:02:14 superprime kernel: [328185.170766] VBoxNetAdp: Successfully started.
Nov 9 20:02:14 superprime kernel: [328185.173147] VBoxPciLinuxInit
Nov 9 20:02:14 superprime kernel: [328185.174671] vboxpci: IOMMU found
vbox-setup.log:
Building the main VirtualBox module.
Building the net filter module.
Building the net adaptor module.
Building the PCI pass-through module.
Despite these errors, I was able to run a guest vm! SEE IMPORTANT UPDATE BELOW!!!
eudoxus
Posts: 3
Joined: 10. Nov 2018, 03:22

Re: Ubuntu 18.10 install error for 5.2.22

Post by eudoxus »

Since installing VirtualBox 5.2.22 on Ubuntu 18.10 Cosmic, I have noticed bizarre behavior. It's very slow, and I have not been able to reboot the system via the OS, and had to do a hard reboot. After the hard reboot, I was not able to run guest OSes. I have uninstalled VirtualBox. If I continue to have issues, I will reinstall the OS. I URGE PEOPLE RUNNING UBUNTU 18.10 COSMIC NOT TO INSTALL VIRTUALBOX 5.2.22!!! WAIT FOR ORACLE TO FIX THE PROBLEMS AND RELEASE AN UPDATE. I also urge Oracle to retract the statement that VirtualBox 5.2.22 works with Ubuntu 18.10!!!
csmithhelena
Posts: 11
Joined: 8. May 2015, 23:52

Re: Ubuntu 18.10 install error for 5.2.22

Post by csmithhelena »

I've noticed the same problems as the two posts above, and honestly, I am surprised to be the first to post about it here (as far as I know).
eudoxus
Posts: 3
Joined: 10. Nov 2018, 03:22

Re: Ubuntu 18.10 install error for 5.2.22

Post by eudoxus »

It seems VirtualBox 5.2.22 somehow trashed systemd. After removing (and purging) VirtualBox 5.2.22, and doing a hard reboot, I had to reinstall systemd with the command:
sudo apt-get install --reinstall systemd udev systemd-sys
As an added precaution, I also reinstalled the linux kernel (image, modules, etc.) and then rebooted.

After reboot, I installed VirtualBox 5.2.20 (i.e., the previous release), the extension pack for 5.2.20 and the guest additions for 5.2.20.

After all these reinstalls and reboots, my system finally seems to be running again OK, but if I encounter more collateral damage from VirtualBox 5.2.22, then I will need to wipe my system, reinstall the OS, and restore my data from backups...ughh.

Again, I urge Ubuntu 18.10 Cosmic users NOT to install VirtualBox 5.2.22!!! Wait for a new version that fixes these issues!
vmark
Posts: 2
Joined: 15. Nov 2018, 17:33

Re: Ubuntu 18.10 install error for 5.2.22

Post by vmark »

I also have this problem, it breaks all systemctl commands and only way to restart is a hard reset.

Have had to go back to Ubuntu repository (5.2.18) version for now.

It occurs when running vboxsetup I think.
gravax
Posts: 2
Joined: 18. Nov 2018, 19:16
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows 10, Android X86

Re: Ubuntu 18.10 install error for 5.2.22

Post by gravax »

Same behavior here.

Had to hard stop the machine during install. Then reboot. Then

Code: Select all

sudo apt-get purge virtualbox*
and reinstall the Ubuntu repository version 5.18 which works fine.

Oracle Virtualbox 5.2.22 is definitely broken on Ubuntu 18.10...

Gilles
wnicholls
Posts: 2
Joined: 22. Nov 2018, 22:48

Re: Ubuntu 18.10 install error for 5.2.22

Post by wnicholls »

Why is it that I always find things out AFTER trying to upgrade. (It was a normal 'you have updates' type message too.
You can force hard reboot without using power button with sudo systemctl --force --force reboot
Should be possible to hold virtualbox at 5.2.20 with apt-mark hold virtualbox-5.2 but I haven't found out if that works with the Oracle repos yet. I'm about to do a hard reboot so I'll post this now.
Funny aside: my first instinct was to blame systemd.
wnicholls
Posts: 2
Joined: 22. Nov 2018, 22:48

Re: Ubuntu 18.10 install error for 5.2.22

Post by wnicholls »

To reinstall the Ubuntu repo version:

Code: Select all

apt-get purge virtualbox*
# hard reboot, this works but takes ages:
sudo systemctl --force --force reboot
# for good measure I disabled the deb line in [b]/etc/apt/sources.list.d/virtualbox.list[/b] which references Oracle repository, although I'm not sure that's necessary
apt-get install virtualbox
Then if needed download the extension pack from wiki/Downloads and install - even though this is the 5.2.22 extension pack, worked for me on vb 5.2.18

Or if you want 5.2.20 : the .deb can be downloaded from wiki/Download_Old_Builds_5_2 . There might be a way to just install from Oracle repo with apt-get install virtualbox-5.2=something but I don't know what the magic something is and couldn't see poking around. I'm up and running now and need to get on with other work.

Has anyone logged a ticket for this? I can't find one and for some reason my login isn't working on Trac. (Probably because I've reactivated the login after several years' inactivity: several things are weird).
csmithhelena
Posts: 11
Joined: 8. May 2015, 23:52

Re: Ubuntu 18.10 install error for 5.2.22

Post by csmithhelena »

My original attempt was after installing the Oracle repository for Ubuntu 18.10, as "virtualbox-5.2".
Last edited by socratis on 28. Nov 2018, 11:57, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
biggmdc
Posts: 2
Joined: 30. Nov 2018, 11:05

Re: Ubuntu 18.10 install error for 5.2.22

Post by biggmdc »

have the same issue, anyone got it 5.2.22 working
socratis
Site Moderator
Posts: 27330
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: Ubuntu 18.10 install error for 5.2.22

Post by socratis »

Anyone here tried the Test builds or the Development snapshots from https://www.virtualbox.org/wiki/Testbuilds ?
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.
biggmdc
Posts: 2
Joined: 30. Nov 2018, 11:05

Re: Ubuntu 18.10 install error for 5.2.22

Post by biggmdc »

socratis wrote:Anyone here tried the Test builds
on it, report back what I find
vmark
Posts: 2
Joined: 15. Nov 2018, 17:33

Re: Ubuntu 18.10 install error for 5.2.22

Post by vmark »

Good news - Virtualbox 6 does not seem to have this problem.

Got it installed today with no issues (Ubuntu 1810)

:D
gravax
Posts: 2
Joined: 18. Nov 2018, 19:16
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows 10, Android X86

Re: Ubuntu 18.10 install error for 5.2.22

Post by gravax »

Yeah! Same here. Had to manually "sudo apt-get purge virtualbox*" first, reboot, then sudo apt-get install virtualbox-6.0 but it works like a charm!

Anybody know if the driver is signed, and this can be installed with SecureBoot enabled? :)

(I'm not using SecureBoot, but since Ubuntu 18.10 supports it, I might move from EFI non secure to EFI secure...)

Thanks!
Post Reply