解决方案
首先检查您的系统是否包含与您当前运行的内核匹配的内核头文件。
例如:
# dpkg --get-selections | grep linux-headers linux-headers-3.13.0-53 install linux-headers-3.13.0-53-generic install linux-headers-generic install # uname -r 3.13.0-53-generic
上面关于缺少标头的消息可能有点误导,因此请确保构建 VirtualBox Guest Additions 所需的所有其他组件都可用。 运行下面的命令以确保在运行 build 命令之前满足构建 VirtualBox Guest Additions 的所有编译前提条件:
# apt-get install linux-headers-`uname -r` dkms build-essential
问题
VirtualBox Guest Additions在构建阶段时报错:
Building the VirtualBox Guest Additions kernel modules The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason.
日期:2020-07-07 20:55:55 来源:oir作者:oir