【Tools】Ubuntu22.04和Windows无法复制粘贴问题

00. 目录

在这里插入图片描述

01. 问题描述

从Windows复制文件到虚拟机Ubuntu22.04时,出现无法粘贴,或者粘贴到文件夹中后立马闪退。

从Ubuntu22.04复制文件或者内容到Windows,出现无法粘贴。

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. 问题分析

VMWare Tools的一个bug。

03. 问题解决

执行以下命令即可解决问题

sudo apt autoremove open-vm-tools

sudo apt install open-vm-tools-desktop -y 

sudo apt update

sudo apt upgrade 

reboot

参考:

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. 问题验证

复制粘贴

05. 问题讨论

物联网、嵌入式、C++、C方向等等兴趣爱好者可以添加WX一起交流。 点击主页私信,添加博主微信。

06. 附录

Drag and drop on Wayland Desktop

Copy/paste and drag&drop not working in VMware machine with Ubuntu

Ubuntu 22.04: copy-paste doesn’t work

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值