virtualbox-dkms installation hangs in 18.04 (with secure boot)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DKMS |
New
|
Undecided
|
Unassigned | ||
dkms (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
apt install virtualbox hangs during virtualbox-dkms installation:
# apt install virtualbox
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dkms libgsoap-2.8.60 libqt5opengl5 libqt5printsupport5 libvncserver1
virtualbox-dkms virtualbox-qt
Suggested packages:
menu vde2 virtualbox-
The following NEW packages will be installed:
dkms libgsoap-2.8.60 libqt5opengl5 libqt5printsupport5 libvncserver1
virtualbox virtualbox-dkms virtualbox-qt
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/27.0 MB of archives.
After this operation, 117 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package dkms.
(Reading database ... 185903 files and directories currently installed.)
Preparing to unpack .../0-dkms_
Unpacking dkms (2.3-3ubuntu9.1) ...
Selecting previously unselected package libgsoap-
Preparing to unpack .../1-libgsoap-
Unpacking libgsoap-
Selecting previously unselected package libqt5opengl5:
Preparing to unpack .../2-libqt5ope
Unpacking libqt5opengl5:amd64 (5.9.5+
Selecting previously unselected package libqt5printsupp
Preparing to unpack .../3-libqt5pri
Unpacking libqt5printsupp
Selecting previously unselected package libvncserver1:
Preparing to unpack .../4-libvncser
Unpacking libvncserver1:amd64 (0.9.11+
Selecting previously unselected package virtualbox-dkms.
Preparing to unpack .../5-virtualbo
Unpacking virtualbox-dkms (5.2.10-dfsg-6) ...
Selecting previously unselected package virtualbox.
Preparing to unpack .../6-virtualbo
Unpacking virtualbox (5.2.10-dfsg-6) ...
Selecting previously unselected package virtualbox-qt.
Preparing to unpack .../7-virtualbo
Unpacking virtualbox-qt (5.2.10-dfsg-6) ...
Setting up libvncserver1:amd64 (0.9.11+
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Setting up libqt5printsupp
Setting up libqt5opengl5:amd64 (5.9.5+
Processing triggers for bamfdaemon (0.5.3+
Rebuilding /usr/share/
Setting up libgsoap-
Setting up dkms (2.3-3ubuntu9.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for systemd (237-3ubuntu10) ...
Processing triggers for man-db (2.8.3-2) ...
Processing triggers for shared-mime-info (1.9-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Setting up virtualbox-dkms (5.2.10-dfsg-6) ...
Loading new virtualbox-5.2.10 DKMS files...
Building for 4.15.0-22-generic
Progress: [ 85%] [######
$ dpkg -l | grep virtualbox
ii unity-scope-
iU virtualbox 5.2.10-dfsg-6 amd64 x86 virtualization solution - base binaries
iF virtualbox-dkms 5.2.10-dfsg-6 all x86 virtualization solution - kernel module sources for dkms
iU virtualbox-qt 5.2.10-dfsg-6 amd64 x86 virtualization solution - Qt based user interface
$
$ lsb_release -rd
Description: Ubuntu 18.04 LTS
Release: 18.04
$
$ apt-cache policy virtualbox-dkms
virtualbox-dkms:
Installed: 5.2.10-dfsg-6
Candidate: 5.2.10-dfsg-6
Version table:
*** 5.2.10-dfsg-6 500
500 http://
500 http://
100 /var/lib/
$ apt-cache policy dkms
dkms:
Installed: 2.3-3ubuntu9.1
Candidate: 2.3-3ubuntu9.1
Version table:
*** 2.3-3ubuntu9.1 500
500 http://
500 http://
100 /var/lib/
2.3-3ubuntu9 500
500 http://
500 http://
$
What I expected to happen: successfully install the package & dependencies
What happened instead: installation stalled at 85%
summary: |
- virtualbox-dkms installation hangs in 18.04 + virtualbox-dkms installation hangs in 18.04 (with secure boot) |
affects: | virtualbox (Ubuntu) → dkms (Ubuntu) |
After killing the hung apt process I ran dpkg --configure -a , which hung again. Killing the hung dpkg process and running dpkg --configure -a again allowed the package installation to complete but resulted in a broken module:
$ VirtualBox generic.
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-
You will not be able to start VMs until this problem is fixed.
$