sudo dpkg --configure -a
Setting up virtualbox-dkms (5.2.10-dfsg-6) ...
Removing old virtualbox-5.2.10 DKMS files...
-------- Uninstall Beginning --------
Module: virtualbox
Version: 5.2.10
Kernel: 4.15.0-23-generic (x86_64)
-------------------------------------
Status: This module version was INACTIVE for this kernel.
depmod.......
DKMS: uninstall completed.
------------------------------
Deleting module version: 5.2.10
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-5.2.10 DKMS files...
Building for 4.15.0-23-generic
Building initial module for 4.15.0-23-generic
答案1
系统正在后台等待输入密码。
输入密码4次(带有enter)。
来源:https://www.reddit.com/r/Ubuntu/comments/8r3zov/stuck_at_building_initial_module/e0z7oli/