Virtualbox package fails to install -broken?
I had virtualbox running OK. An upgrade broke it. Looks like kernel package linux-headers-
How do I fix this?
> uname -a
Linux meerkat 5.8.0-55-generic #62~20.04.1-Ubuntu SMP Wed Jun 2 08:55:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
> lsb_release -dr
Description: Ubuntu 20.04.2 LTS
Release: 20.04
> sudo apt install virtualbox
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
kbuild module-assistant
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
virtualbox-dkms virtualbox-qt
Suggested packages:
vde2 virtualbox-
The following NEW packages will be installed:
virtualbox virtualbox-dkms virtualbox-qt
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/43.7 MB of archives.
After this operation, 177 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package virtualbox-dkms.
(Reading database ... 285137 files and directories currently installed.)
Preparing to unpack .../virtualbox-
Unpacking virtualbox-dkms (6.1.6-dfsg-1) ...
Selecting previously unselected package virtualbox.
Preparing to unpack .../virtualbox_
Unpacking virtualbox (6.1.6-dfsg-1) ...
Selecting previously unselected package virtualbox-qt.
Preparing to unpack .../virtualbox-
Unpacking virtualbox-qt (6.1.6-dfsg-1) ...
Setting up virtualbox-dkms (6.1.6-dfsg-1) ...
Loading new virtualbox-6.1.6 DKMS files...
Building for 5.8.0-55-generic
Building initial module for 5.8.0-55-generic
ERROR (dkms apport): kernel package linux-headers-
Error! Bad return status for module build on kernel: 5.8.0-55-generic (x86_64)
Consult /var/lib/
dpkg: error processing package virtualbox-dkms (--configure):
installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of virtualbox:
virtualbox depends on virtualbox-dkms (>= 6.1.6-dfsg-1) | virtualbox-source (>= 6.1.6-dfsg-1) | virtualbox-modules; however:
Package virtualbox-dkms is not configured yet.
Package virtualbox-source is not installed.
Package virtualbox-modules is not installed.
Package virtualbox-dkms which provides virtualbox-modules is not configured yet.
dpkg: error processing package virtualbox (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
ror message indicates its a followup error from a previous failure.
virtualbox-qt depends on virtualbox (= 6.1.6-dfsg-1); however:
Package virtualbox is not configured yet.
dpkg: error processing package virtualbox-qt (--configure):
dependency problems - leaving unconfigured
Processing triggers for menu (2.1.47ubuntu4) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for systemd (245.4-4ubuntu3.6) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for shared-mime-info (1.15-1) ...
Errors were encountered while processing:
virtualbox-dkms
virtualbox
virtualbox-qt
E: Sub-process /usr/bin/dpkg returned an error code (1)
> cat /var/lib/
DKMS make.log for virtualbox-6.1.6 for kernel 5.8.0-55-generic (x86_64)
Sat Jun 19 17:59:16 PDT 2021
make: Entering directory '/usr/src/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
In file included from ./include/
rvInternal.h:79,
linux.c:32:
/var/lib/
updrvOSChangeCR4’:
/var/lib/
‘cpu_tlbstate’ undeclared (first use in this function); did you mean ‘cpuhp_state’?
760 | RTCCUINTREG uOld = this_cpu_
| ^~~~~~~~~~~~
./include/
318 | typeof(variable) pscr_ret__; \
| ^~~~~~~~
/var/lib/
760 | RTCCUINTREG uOld = this_cpu_
| ^~~~~~~~~~~~~
/var/lib/
each function it appears in
760 | RTCCUINTREG uOld = this_cpu_
| ^~~~~~~~~~~~
./include/
318 | typeof(variable) pscr_ret__; \
| ^~~~~~~~
/var/lib/
760 | RTCCUINTREG uOld = this_cpu_
| ^~~~~~~~~~~~~
make[2]: *** [scripts/
make[2]: *** Waiting for unfinished jobs....
/var/lib/
/var/lib/
notation
make[1]: *** [scripts/
make: *** [Makefile:1785: /var/lib/
make: Leaving directory '/usr/src/
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply: