无法安装 vmware-tools:检测到以前安装的 VMware Tools

无法安装 vmware-tools:检测到以前安装的 VMware Tools

我遇到了这个错误:

The path /usr/src/linux/include is not an existing directory.

您好,仍有以下问题。请提供意见

ronald@ronald-virtual-machine:~/Desktop/vmware tools/vmware-tools-distrib$ sudo ./vmware-install.pl
[sudo] password for ronald:
A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed. Continuing this install will 
first uninstall the currently installed version. 
Do you wish to continue? (yes/no) [yes]

Error: Unable to execute "/usr/bin/vmware-uninstall-tools.pl.

Uninstall failed. Please correct the failure and re run the install.

Execution aborted.

ronald@ronald-virtual-machine:~/Desktop/vmware tools/vmware-tools-distrib$ `chmod +x /usr/bin/vmware-uninstall-tools.pl`

chmod: cannot access `/usr/bin/vmware-uninstall-tools.pl': No such file or directory

答案1

当我中断 vmware tools 升级时也发生了这种情况。看来,升级所做的第一件事就是删除系统中的所有文件。卸载脚本是第一个,这就是你找不到它的原因。

我不明白为什么如果找不到卸载脚本,安装就会中断+(对我来说,这是一个糟糕的决定),但安装的设备带有自己的脚本,您可以使用它来删除所有内容。一个简单的

locate vmware-uninstall

输出了它的位置,对我来说它在

/home/my_username/Desktop/vmware-tools-distrib/bin/vmware-uninstall-tools.pl

对你来说,唯一的区别应该是罗纳德而不是 *my_username*。希望这能有所帮助。

答案2

运行sudo rm -R /etc/vmwaresudo rm -R /etc/vmware-tools

这将删除设置,您可以安装新的设置。

答案3

你应该先安装标题

apt-get install linux-headers-2.6.10-5-386(name of your kernel)

然后在vmware安装上输入:

/usr/src/linux-headers-2.6.10-5-386/include

它应该有帮助

答案4

vmware 安装脚本会检查您的安装中是否存在该软件包。解决方案是清除该软件包:

sudo dpkg --purge open-vm-tools

相关内容