无法在 Ubuntu 中安装 VBox Guest Additions。它显示 Linux Header 存在一些问题。PS:我在 Windows8 Host 上使用 ubuntu 12.10 guest。当我尝试安装它时,我得到了以下信息:-
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.10 Guest Additions for Linux..........
VirtualBox Guest Additions installer
Removing installed version 4.2.10 of VirtualBox Guest Additions...
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
Installing X.Org Server 1.13 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.
Installing graphics libraries and desktop services components ...done.
Press Return to close this window...
答案1
答案2
如果您使用的是基于 Debian 的发行版,并且像我们大多数使用 Linux 的人一样是个老古董,那么您也可以打开一个终端窗口并输入:
(sudo) apt-get install linux-headers-generic
我这样做是因为无论出于什么原因它都没有出现在软件中心(并且我找不到Show Technical Items
Vikramjeet 提到的选项)。
答案3
我在装有 VirtualBox 4.3.10 的 Ubuntu 14.04 桌面上遇到了类似的问题。
当我运行ls -al /sbin/mount*
它时,它显示这/sbin/mount.vboxsf
是一个不存在的符号链接/usr/lib/VBoxGuestAdditions/mount.vboxsf
。经过一番探索,VBoxGuestAdditions 安装在/opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions/
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
这为我修复了共享文件夹