00. Catalog
Article directory
01. Problem description
When copying a file from Windows to the virtual machine Ubuntu22.04, it fails to paste, or crashes immediately after pasting it into a folder.
When copying files or content from Ubuntu 22.04 to Windows, it cannot be pasted.
When trying to drag and drop a file from Windows to Folder in File Explorer, the file icon will be stuck on the screen, and pulling another will show a dialog box with “Unsupported drag operation, an invalid type of drag and drop used”.
02. Problem analysis
A bug in VMWare Tools.
03. Problem solving
Execute the following command to solve the problem
sudo apt autoremove open-vm-tools
sudo apt install open-vm-tools-desktop -y
sudo apt update
sudo apt upgrade
reboot
reference:
sudo apt-get autoremove open-vm-tools
Install VMware Tools by following the usual method (Virtual Machine --> Reinstall VMWare Tools)
Reboot the VM
sudo apt-get install open-vm-tools-desktop
Reboot the VM, after the reboot copy/paste and drag/drop will work!
04. Question verification
copy and paste
05. Question Discussion
Interested enthusiasts in IoT, embedded, C++, C direction, etc. can add WX to communicate together. Click the private message on the homepage to add blogger WeChat.
06. Appendix
Drag and drop on Wayland Desktop
Copy/paste and drag&drop not working in VMware machine with Ubuntu