I encounter this error:
The path /usr/src/linux/include is not an existing directory.
Hi there are still issues as listed below. Please advise
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
This also happened to me when I interrupted vmware tools upgrade. it seems, the first thing the upgrade does is delete all files in the system. the uninstall script being the first one and that's why you can't find it.
I don't understand why the installation gets interrupted+ if the uninstall script is not found (for me, that's just a bad decision), but the mounted device comes with its own script which you can use to delete everything. a simple
outputed its location and for me it was in
For you, the only difference should be ronald instead of *my_username*. Hope that helps.
Run
sudo rm -R /etc/vmware
ORsudo rm -R /etc/vmware-tools
this will remove settings and you can install new one.
you should install the header first
and then enter on the vmware installation:
It should help
It appears that vmware is trying to uninstall the older version before installing the newer one, but is failing to do so.
I would manually uninstall the old version of vmware tools by typing the following command into the terminal:
Note: the word "vmware" is just a guess as to what the name of this package is. If this gives you an error like "Unable to locate package" then try changing the word vmware to whatever you think the package name is.
What worked for me was the last answer provided in this thread by Amir Arian -- so simple and yet I could not find it easily elsewhere.
If you followed VMware instructions, you extracted the VMware tools to
/tmp
. So, you should have/tmp/vmware-tools-distrib
. Inside that you have a bin directory and there is thevmware-uninstall-tools.pl
file.Then run the installer once more:
It will come back with an error that might look like this:
However, the installer will keep working and eventually proceed to the installation phase.
I solved this same problem doing fixes below. I would summarize issue as aborting a vmware-install when kernel headers not found. Pressing Ctrl-C during vmware-install can cause the "Error: Unable to execute "/usr/bin/vmware-uninstall-tools.pl." in several cases in general.
To install the kernel headers needed by vmware tools run uname -r (to get kernel name) and apt-get below. Might end up needing to do this even after a 'sudo apt-get install build-essentials' when you update to a leading edge kernel via 'sudo apt-get dist-upgrade' or manually. I added build-essential to apt-get because you always need it for vmware tools.
To correct "Error: Unable to execute "/usr/bin/vmware-uninstall-tools.pl." do a sudo copy of the vmware-uninstall-tools.pl from the new vmware tools you want to install to the location it is looking for it (typically /usr/bin)
As an example, I usually open a terminal and change directory to /tmp then click on VMware menu Manage then option "Reinstall VMware Tools..." then (once VMware mounts its CDROM of latest tools) copy tar from read-only CDROM to /tmp as below (based on a version 9.6.1-1378637)
The vmware install script checks if the package is present on your installation. The solution is to purge the package:
copy uninstall script from vmware-tools-distrib/bin/ to /usr/bin as following command:
then run install script again.
This was caused by me killing the install (CNTRL C) because I forgot to add -d to automate the install with defaults. The initial run of the script creates the /etc/vmware-tools folder, because that exists the script thinks vmware-tools is already installed.
Simple answer is: sudo rm -R /etc/vmware-tools
then re-run the installation script.
I ran into this when I upgrade the version of VMWare on my host, and followed its instructions for updating the client.
After I'd mounted the virtual CD image, untarred and ran the installed, I saw the message:
From this it is clear what muast be done to remove them:
I did that, and re-ran the installer. And this time I got:
So I gave up on installing the client software from the virtual ISO in the host, and just ran
IOW, the right answer for this issue isn't to find a way to work around installing the vm tools from the host ISO, but to not install the vm tools from the host ISO, but to update the open-vm-tools package, instead.