Virtualbox 内核模块未加载

Virtualbox 内核模块未加载

我尝试在 Ubuntu 上使用内核为 6.4.10 的 Virtualbox 7.0.10,但出现了这个错误。

    vboxmanage -version
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (6.4.10-060410-generic) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.
7.0.10r158379

我认为问题与 DKMS 安装有关。这是我尝试安装最新版本的 DKMS 时遇到的错误。

sudo dpkg -i virtualbox-dkms_7.0.10-dfsg-2_amd64.deb 
(Reading database ... 202752 files and directories currently installed.)
Preparing to unpack virtualbox-dkms_7.0.10-dfsg-2_amd64.deb ...
Deleting module virtualbox-7.0.6 completely from the DKMS tree.
Unpacking virtualbox-dkms (7.0.10-dfsg-2) over (7.0.6-dfsg-1) ...
Setting up virtualbox-dkms (7.0.10-dfsg-2) ...
Loading new virtualbox-7.0.10 DKMS files...
Building for 6.4.10-060410-generic
Building initial module for 6.4.10-060410-generic
ERROR (dkms apport): kernel package linux-headers-6.4.10-060410-generic is not supported
Error! Bad return status for module build on kernel: 6.4.10-060410-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.10/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (--install):
 installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 virtualbox-dkms

提前感谢您提供的任何帮助。

相关内容