我正在尝试在RHEL 7虚拟机上安装virtualbox5.2,但当我尝试重建内核模块时,出现以下错误:
[root@myserver~]# /usr/lib/virtualbox/vboxdrv.sh setup
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
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.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-3.10.0-693.11.1.el7.x86_64
我尝试安装kernel-devel并获得了成功的消息
Installed:
kernel-devel.x86_64 0:3.10.0-693.21.1.el7
Complete!
但是安装仍然失败。
有任何想法这里缺少什么?
sudo apt-get install -y linux-headers-amd64 linux-headers-$(uname -r)
。 - emrekgn