病征
在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.
解
首先检查您的系统是否包括与当前正在运行的内核匹配的内核头文件。例如:
# 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命令之前,请运行以下命令ta,以确保满足构建VirtualBox Guest Additions的所有编译先决条件:
# apt-get install linux-headers-`uname -r` dkms build-essential