VMWare工具不能在Ubuntu 12.04上安装。 我使用Chef来pipe理安装,但是如果手动运行,则Apt命令将失败。
我正在使用VMWare工具Debian repo。 例:
$ cat /etc/apt/sources.list.d/vmware-tools-source.list deb http://packages.vmware.com/tools/esx/5.0u2/ubuntu precise main
当试图安装时,大多数软件包似乎都没问题,但是一个“vmware-tools-foundation”没有。
例:
$ apt-get -q -y install vmware-tools-esx-nox=8.6.10-1.precise Reading package lists... Building dependency tree... Reading state information... You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: vmware-tools-esx-kmods-3.2.0-23-generic : Depends: vmware-tools-foundation (>= 8.6.10) but it is not going to be installed vmware-tools-esx-nox : Depends: ...snip list of deps... E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). $ apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: vmware-tools-foundation The following NEW packages will be installed: vmware-tools-foundation 0 upgraded, 1 newly installed, 0 to remove and 118 not upgraded. 7 not fully installed or removed. Need to get 0 B/5,886 B of archives. After this operation, 86.0 kB of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 103499 files and directories currently installed.) Unpacking vmware-tools-foundation (from .../vmware-tools-foundation_8.6.10-1.precise_all.deb) ... VMware Tools cannot install because it appears that another installation of VMware Tools is already present. Please remove the previous installation and then attempt to install this copy of VMware Tools again. dpkg: error processing /var/cache/apt/archives/vmware-tools-foundation_8.6.10-1.precise_all.deb (--unpack): subprocess new pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/vmware-tools-foundation_8.6.10-1.precise_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
关键似乎是这个错误:“VMware Tools不能安装,因为看起来已经存在另一个VMware Tools的安装,请删除以前的安装,然后尝试再次安装这个VMware Tools的副本。
但是,我已经尝试删除和清除,似乎无法“欺骗”VMWare工具,认为软件包已经消失。 阿普特认为他们走了。
是否有一些服务/文件/caching/lockingVMWare工具看到,使其认为VMWare工具仍然安装?
我用googlesearch了一下,但是在这个问题上我没有回答这个问题。 VMWare的这个错误的文档是最小的。
我有同样的问题,并已经find了一个适合我的解决scheme。
第二章VMWare工具安装指南提醒我们卸载以前版本的VMWare的东西 – 无论是否打开。 我做了apt-get,但发现没有安装,所以继续前进。
事实上,我通过安装脚本安装了VMWare Tools,而不是apt。
运行
sudo vmware-uninstall-tools.pl sudo apt-get install vmware-tools-foundation vmware-tools-esx
足以让事情开始工作。