The problem is that the DKMS hook in virtualbox-dkms starts a whiptail
dialog explaining that a new signing key will be enrolled in the MOK
database, but this dialog does not get displayed, which is why the
system appears to hang.
Below is the output of 'pstree' showing the stack of commands and the
whiptail content.
Secondary issue (with DKMS): I have a signing key in the MOK database
already (like commenter #4), with which I have always used signed the
vbox drivers, so I do not want to enrol a _new_ signing key. So even if
I would see the dialog, it does not present the appropriate option.
I have tried this with aptitude, apt, dpkg --configure, both inside and
outside of a 'screen' session (to make sure I was on a plain console),
but the dialog does not show up in any of these cases.
This is the pstree output:
└─aptitude,5796
├─sh,11827 -c DPKG_NO_TSTP=1 dpkg --configure -a
└─dpkg,11828 --configure -a
└─virtualbox-dkms,11829 /var/lib/dpkg/info/virtualbox-dkms.postinst
configure 5.2.10-dfsg-6ubuntu18.04.1
└─common.postinst,11830 /usr/lib/dkms/common.postinst virtualbox
5.2.10 /usr/share/virtualbox-dkms 5.2.10-dfsg-6ubuntu18.04.1
└─dkms,12103 /usr/sbin/dkms build -m virtualbox -v 5.2.10 -k
4.15.0-24-generic
└─dkms,12120 /usr/sbin/dkms build -m virtualbox -v 5.2.10 -k
4.15.0-24-generic
└─frontend,15868 -w /usr/share/debconf/frontend
/usr/sbin/update-secureboot-policy --enroll-key
├─update-securebo,15882
/usr/sbin/update-secureboot-policy --enroll-key
└─whiptail,15897 --backtitle Package configuration
--title Configuring Secure Boot --output-fd 12 --nocancel --msgbox Y our system
has UEFI Secure Boot enabled.\012\012UEFI Secure Boot requires additional
configuration to work with third-party drivers.\012\012The system will assist
you in configuring UEFI Secure Boot. To permit the use of third-party drivers,
a new Machine-Owner Key (MOK) has been generated. This key now needs to be
enrolled in your system's \012firmware.\012\012To ensure that this change is
being made by you as an authorized user, and not by an attacker, you must
choose a password now and then confirm the change after reboot using the same
password, in both the\012"Enroll MOK" and "Change Secure Boot state" menus that
will be presented to you when this system reboots.\012\012If you proceed but do
not confirm the password upon reboot, Ubuntu will still be able to boot on your
system but any hardware that requires third-party drivers to work correctly may
not be usable. 17 208
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to dkms in Ubuntu.
https://bugs.launchpad.net/bugs/1775672
Title:
virtualbox-dkms installation hangs in 18.04 (with secure boot)
Status in DKMS:
New
Status in dkms package in Ubuntu:
Confirmed
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-guest-additions-iso
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_2.3-3ubuntu9.1_all.deb ...
Unpacking dkms (2.3-3ubuntu9.1) ...
Selecting previously unselected package libgsoap-2.8.60:amd64.
Preparing to unpack .../1-libgsoap-2.8.60_2.8.60-2build1_amd64.deb ...
Unpacking libgsoap-2.8.60:amd64 (2.8.60-2build1) ...
Selecting previously unselected package libqt5opengl5:amd64.
Preparing to unpack .../2-libqt5opengl5_5.9.5+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5opengl5:amd64 (5.9.5+dfsg-0ubuntu1) ...
Selecting previously unselected package libqt5printsupport5:amd64.
Preparing to unpack .../3-libqt5printsupport5_5.9.5+dfsg-0ubuntu1_amd64.deb
...
Unpacking libqt5printsupport5:amd64 (5.9.5+dfsg-0ubuntu1) ...
Selecting previously unselected package libvncserver1:amd64.
Preparing to unpack .../4-libvncserver1_0.9.11+dfsg-1ubuntu1_amd64.deb ...
Unpacking libvncserver1:amd64 (0.9.11+dfsg-1ubuntu1) ...
Selecting previously unselected package virtualbox-dkms.
Preparing to unpack .../5-virtualbox-dkms_5.2.10-dfsg-6_all.deb ...
Unpacking virtualbox-dkms (5.2.10-dfsg-6) ...
Selecting previously unselected package virtualbox.
Preparing to unpack .../6-virtualbox_5.2.10-dfsg-6_amd64.deb ...
Unpacking virtualbox (5.2.10-dfsg-6) ...
Selecting previously unselected package virtualbox-qt.
Preparing to unpack .../7-virtualbox-qt_5.2.10-dfsg-6_amd64.deb ...
Unpacking virtualbox-qt (5.2.10-dfsg-6) ...
Setting up libvncserver1:amd64 (0.9.11+dfsg-1ubuntu1) ...
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 libqt5printsupport5:amd64 (5.9.5+dfsg-0ubuntu1) ...
Setting up libqt5opengl5:amd64 (5.9.5+dfsg-0ubuntu1) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Setting up libgsoap-2.8.60:amd64 (2.8.60-2build1) ...
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-virtualbox 0.1+13.10.20130723-0ubuntu1
all VirtualBox scope for Unity
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://us.archive.ubuntu.com/ubuntu bionic/multiverse amd64
Packages
500 http://us.archive.ubuntu.com/ubuntu bionic/multiverse i386
Packages
100 /var/lib/dpkg/status
$ apt-cache policy dkms
dkms:
Installed: 2.3-3ubuntu9.1
Candidate: 2.3-3ubuntu9.1
Version table:
*** 2.3-3ubuntu9.1 500
500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64
Packages
500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386
Packages
100 /var/lib/dpkg/status
2.3-3ubuntu9 500
500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu bionic/main i386 Packages
$
What I expected to happen: successfully install the package & dependencies
What happened instead: installation stalled at 85%
To manage notifications about this bug go to:
https://bugs.launchpad.net/dkms/+bug/1775672/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp