Using ... sudo apt install --reinstall virtualbox-dkms
... I have the same issue as user zwets above in this message thread: whiptail command hangs infinitely and does not show a menu possibly because of the bad environment it is running in. My workaround was to kill the perl process and run it standalone ... sudo perl -w /usr/share/debconf/frontend /usr/sbin/update-secureboot- policy --enroll-key ... in a usual interactive shell, so that whiptail shows the menu to set a password. Afterwards (that is, after reboot and enrolling this password key during boot) VirtualBox is running for me on Ubuntu 18.04 with secure boot and does not complain about an unsigned vboxdrv anymore. Seems to be a design flaw to prevent interactivity during installation. -- 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 : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp