我已经使用VirtualBox在Ubuntu 12.04主机上安装了Ubuntu 12.10 Guest。一切都来自存储库,没有直接安装。当我安装来宾添加项时,控制台中会显示以下错误。在运行命令之前,我在Guest中映射了VBoxGuestAdditions.iso。
我能得到的最接近的是这个文章它说安装最新版本的VirtualBox的(不是一个从资源库中)。有其他解决方法吗?
sudo ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.1.12 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing installed version 4.1.12 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
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.
Building the main Guest Additions module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.
Installing the Window System drivers
Warning: unknown version of the X Window System installed. Not installing
X Window System drivers.
Installing modules ...done.
Installing graphics libraries and desktop services components ...done.