在Ubuntu17.04下,遇到清空回收站文件时报错,提示”Failed to delete the item from the trash”,无法清空回收站。

在Ubuntu17.04中遇到无法清空回收站解决方法 Linux 第1张

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

 

回收站其实就是一个文件夹,存放着被删掉的文件。

Ubuntu回收站的路径:

 在Ubuntu17.04中遇到无法清空回收站解决方法 Linux 第2张

 

 

解决方法

打开终端运行以下命令强制清空回收站目录下的所有文件:

sudo rm -rf ~/.local/share/Trash/*

 执行上面命令后,可以看到回收站所有文件已清空

在Ubuntu17.04中遇到无法清空回收站解决方法 Linux 第3张

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄