我正在尝试使用VirtualBox,但是我收到了错误
The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (4.14.11-300.fc27.x86_64) or it failed to
load. Please recompile the kernel module and install it by
sudo /sbin/vboxconfig
运行建议的命令时,我得到:
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
但是,当我运行sudo yum install kernel-devel gcc
时,它会安装版本4.15.3-300.fc27
,它与我的实际内核版本不同,即4.14.11-300.fc27.x86_64
。
此外,在运行sudo yum install "kernel-devel-uname-r == $(uname -r)"
时,我得到了
No match for argument: kernel-devel-uname-r == 4.14.11-300.fc27.x86_64
Error: Unable to find a match
如何让VirtualBox运行?
答案 0 :(得分:-1)
但是,当我运行sudo yum install kernel-devel gcc时,它会安装版本4.15.3-300.fc27,它与我的实际内核版本不同,即4.14.11-300.fc27.x86_64。
这是因为在撰写本文时,4.15.3是Fedora 27的当前内核更新。您可以下载旧内核的devel包,但最好的选择是更新内核(我建议做所有事情的一般dnf update
),然后安装内核开发包,然后最终重启到该内核并完成VirtualBox安装