安装Guest Additions导致问题

我正在尝试使用Windows XP主机和Ubuntu 12.04 guest虚拟机在虚拟机中安装Guest Additions。 我按照上面的步骤:

Devices-> Insert Guest Additions CD Image. After that I locate the folder /media/VBoxAdditions4.3.4_91027/ and run sudo ./VBoxLinuxAdditions.run 

我希望能够创建共享文件夹并调整屏幕的分辨率。 我完成了第一个问题,但我不能做第二个问题。 我没有得到任何消息,但是无法更改屏幕的分辨率,我无法切换到全屏。 我究竟做错了什么?

我在安装日志时发现了以下内容:X Window System的未知版本。 我尝试过建议链接的解决方案,但我得到了:

 Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: virtualbox-guest-x11 : Depends: xorg-video-abi-11 Depends: xserver-xorg-core (>= 2:1.10.99.901) E: Unable to correct problems, you have held broken packages. 

我还尝试安装sudo apt-get install virtualbox-guest-dkms,但没有任何改变。 在安装dkms期间我遇到了Error! Bad return status for module build on kernel 3.13.0-32-generic(i686). Error! Bad return status for module build on kernel 3.13.0-32-generic(i686).

更新

似乎conradk解决方案正在运行,所以我也会在答案中发布它。

  • 我做了sudo apt-get remove libcheese-gtk23 ,然后sudo apt-get install xserver-xorg-core ,最后是sudo apt-get install -f virtualbox-guest-x11 。 它解决了我的问题

如果这对您有用,请向下滚动并给他投票。


我在谷歌上查找了你的问题,这就是我发现的。

只需运行以下内容即可安装软件包及其所有依赖项。 但是,它似乎需要一些时间来完成,所以准备好等待很长时间。

固定:

 $ sudo apt-get -q -y -f build-dep virtualbox-ose-guest-utils virtualbox-guest-x11 virtualbox-ose-guest-x11 virtualbox-ose-guest-dkms 

这将安装’packagename’的所有依赖项,以便它可以构建它。

建筑物完成后,只需输入以下命令再次安装:

 $ sudo apt-get -q -y -f install virtualbox-ose-guest-utils virtualbox-guest-x11 virtualbox-ose-guest-x11 virtualbox-ose-guest-dkms 

你可以通过$ man apt-get了解apt-get的选项。

参考

  1. Ubuntu以下软件包具有未满足的依赖项:$ package1:取决于:$ package2但它不会被安装