Public bug reported:
Attempting to install virtualbox-dkms on my Noble/24.04 system results in
failure:
:~$ sudo apt install virtualbox-dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
virtualbox-dkms
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 764 kB of archives.
After this operation, 6,104 kB of additional disk space will be used.
Get:1 file:/etc/apt/mirrors.txt Mirrorlist [90 B]
Get:2 http://us.archive.ubuntu.com/ubuntu noble-updates/multiverse amd64
virtualbox-dkms amd64 7.0.16-dfsg-2ubuntu1.3 [764 kB]
Fetched 764 kB in 0s (10.2 MB/s)
Selecting previously unselected package virtualbox-dkms.
(Reading database… 404882 files and directories currently installed.)
Preparing to unpack …/virtualbox-dkms_7.0.16-dfsg-2ubuntu1.3_amd64.deb…
Unpacking virtualbox-dkms (7.0.16-dfsg-2ubuntu1.3)…
Setting up virtualbox-dkms (7.0.16-dfsg-2ubuntu1.3)…
Loading new virtualbox-7.0.16 DKMS files...
Building for 7.0.0-31-generic
Building initial module for 7.0.0-31-generic
Error! Bad return status for module build on kernel: 7.0.0-31-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (--configure):
installed virtualbox-dkms package post-installation script subprocess returned
error exit status 10
Errors were encountered while processing:
virtualbox-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
----
The log shows:
:~$ tail /var/lib/dkms/virtualbox/7.0.16/build/make.log
ERROR: modpost: module vboxdrv uses symbol kvm_enable_virtualization from
namespace module:kvm-amd,kvm-intel, but does not import it.
ERROR: modpost: module vboxdrv uses symbol kvm_disable_virtualization from
namespace module:kvm-amd,kvm-intel, but does not import it.
ERROR: modpost: module vboxdrv uses symbol cr4_update_irqsoff from namespace
module:kvm,kvm-amd,kvm-intel, but does not import it.
ERROR: modpost: module vboxdrv uses symbol cr4_read_shadow from namespace
module:kvm,kvm-amd,kvm-intel, but does not import it.
make[3]: ***
[/usr/src/linux-headers-7.0.0-31-generic/scripts/Makefile.modpost:147:
Module.symvers] Error 1
make[2]: *** [/usr/src/linux-headers-7.0.0-31-generic/Makefile:2084: modpost]
Error 2
make[1]: *** [/usr/src/linux-headers-7.0.0-31-generic/Makefile:248: __sub-make]
Error 2
make[1]: Leaving directory '/var/lib/dkms/virtualbox/7.0.16/build'
make: *** [Makefile:248: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-7.0.0-31-generic'
----
This was also reported upstream here[1], with the only reported fix
being to install from the upstream repo and skip using the OS-shipped
packages. The specific issue as to why the build is failing is described
in detail in this comment[2].
:~$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 24.04.5 LTS
Release: 24.04
:~$ apt-cache policy virtualbox-dkms
virtualbox-dkms:
Installed: 7.0.16-dfsg-2ubuntu1.3
Candidate: 7.0.16-dfsg-2ubuntu1.3
Version table:
*** 7.0.16-dfsg-2ubuntu1.3 500
500 mirror+file:/etc/apt/mirrors.txt noble-updates/multiverse amd64
Packages
100 /var/lib/dpkg/status
7.0.16-dfsg-2 500
500 mirror+file:/etc/apt/mirrors.txt noble/multiverse amd64 Packages
[1] https://github.com/linuxmint/linuxmint/issues/896
[2] https://github.com/linuxmint/linuxmint/issues/896#issuecomment-5127382863
** Affects: virtualbox (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2166933
Title:
Virtualbox dkms fails to build on Noble
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/2166933/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs