![无法安装适用于 Linux 的 VirtualBox 4.2.4 Guest Additions](https://linux22.com/image/1346394/%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%E9%80%82%E7%94%A8%E4%BA%8E%20Linux%20%E7%9A%84%20VirtualBox%204.2.4%20Guest%20Additions.png)
尝试安装 Guest Additions 时我看到:
sh ./VBoxLinuxAdditions.run
The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason. The missing package can be probably installed with yum install kernel-devel-2.6.18-194.el5
Building the main Guest Additions module [FAILED]
尝试安装 kernel-devel-2.6.18-194.el5 我看到:
yum install kernel-devel-2.6.18-194.el5
Setting up Install Process No package kernel-devel-2.6.18-194.el5 available. Nothing to do
那该怎么办呢?
主机操作系统是Windows 7 64位,客户机操作系统是RedHat 5.5 64位。
答案1
尝试kernel-headers-2.6.18-194.el5
。
在 Debian 上它对我有用
通常yum install kernel-headers
会自行选择正确的版本