我买了一台新笔记本电脑,必须运行内核 5.1+,否则我的 WiFi 芯片(Intel® Wi-Fi 6 AX200)将不受支持。现在,我在使用 VirtualBox 时遇到了问题。
问题
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver is either not loaded or not
set up correctly. Please try setting it up again by executing
'/sbin/vboxconfig'
as root.
If your system has EFI Secure Boot enabled you may also need
to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp,
vboxpci) before you can load them. Please see your Linux
system's documentation for more information.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908)
The support driver is not installed. On linux, open returned ENOENT.
我尝试过
sudo /sbin/vboxconfig
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-generic linux-headers-5.2.5-050205-generic
我已经安装了,但是由于它不存在,所以linux-headers-generic
我无法安装。存在并且我已经安装了它,但是没有什么区别。linux-headers-5.2.5-050205-generic
linux-headers-5.2.5-050205
If your system is using EFI Secure Boot...
我已禁用安全启动。sudo modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.2.5-050205-generic
目录存在,但模块确实不存在。我尝试运行sudo apt install --reinstall linux-headers-$(uname -r) virtualbox-dkms dkms
并重新启动,但这并不能解决问题
sudo apt remove virtualbox*
和sudo apt-get install build-essential linux-headers-'uname -r' dkms virtualbox-dkms
Package linux-headers-5.2.5-050205-generic is not available, but is referred to by another package.
与第 1 点一样,这再次出现错误。
sudo apt-get install dkms
和sudo /etc/init.d/vboxdrv setup
sudo: /etc/init.d/vboxdrv: command not found
- VirtualBox 6 和 VirtualBox 5.2 都存在这个问题。
可能重复
这可能重复导致我这和这帖子。我尝试了那里的所有解决方案,但都不起作用。我最大的问题似乎是linux-headers-5.2.5-050205-generic
缺少。
编辑 :这帖子被标记为可能重复,但事实并非如此,正如我上面解释的那样。