If you want to uninstall and then reinstall VMware on your Ubuntu system, follow these steps. The process may vary slightly depending on the method you originally used to install VMware (via the bundle or another method).
Uninstall VMware
Uninstall VMware Installed via Bundle
-
Open Terminal:
Launch a terminal window.
-
Navigate to VMware Installation Directory:
By default, VMware is usually installed in /usr/bin/vmware-installer. You can change directory to that location:
cd /usr/bin
-
Uninstall VMware:
You can use the VMware installer command to uninstall VMware. Run the following command:
sudo vmware-installer -u vmware-workstation
If you are uninstalling a different VMware product, like VMware Player, replace vmware-workstation with the appropriate product name.
-
Remove VMware Configuration Files (Optional):
If you want to remove all configuration files and virtual machines associated with VMware, you may need to manually delete them. Configuration files are usually located in the home directory:
rm -rf ~/.vmware
-
Check for Remaining Files:
You may also want to check for any remaining VMware files in /usr/lib/vmware or other related directories.
Uninstalling via Package Manager
If VMware was installed via a package manager (like APT or a .deb package), you can remove it with:
sudo apt remove vmware-workstation
or
sudo apt remove vmware-player
Reinstall VMware
Now that you’ve uninstalled VMware, you can reinstall it. Follow these steps:
-
Download the Latest VMware Bundle:
If you haven't already, download the latest version of VMware Workstation or VMware Player from the official VMware website.
-
Make the VMware Bundle Executable:
Navigate to the directory where you downloaded the VMware bundle (e.g., Downloads) and make it executable:
cd ~/Downloads
chmod +x your-vmware-bundle-file.bundle
-
Run the VMware Installer:
Execute the bundle file with superuser privileges:
sudo ./your-vmware-bundle-file.bundle
-
Follow the Installation Wizard:
Follow the prompts in the installer. If needed, provide any additional information or settings for your installation.
-
Reboot (Optional):
After installation, you might want to reboot your system to ensure that all changes take effect and any necessary kernel modules are loaded properly.
Additional Steps
-
Install Kernel Headers: After installation, if prompted for kernel headers or if you have issues with modules, make sure you have the appropriate package installed:
sudo apt install build-essential linux-headers-$(uname -r)
-
Check Configuration: After reinstalling VMware, ensure that your virtual machines and any settings are as you prefer. If you backed up any VM files, you could restore them now.
Conclusion
By following these steps, you will successfully uninstall and reinstall VMware on your Ubuntu system. Always make sure to back up important data before making significant changes to your software.