解决清空不了Fedora 9回收站的办法

我以前下载了 gftp 的安装包,解压之后用命令安装没有成功,删除 gftp-2.0.18 目录之后,gftp-2.0.18 目录留在了回收站中,不过清空回收站的时候却提示权限不够,删除不了了面的 .PO 文件,在网上搜索,得到要用下面这个命令来强制删除 GNOME 下回收站里面的所有文件

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

我用这个命令,试了N次都没有成功。

[[email protected] ~]$ sudo rm -rf ~/.local/share/Trash/files/*
[sudo] password for charles:
charles is not in the sudoers file. This incident will be reported.

直接用 rm -rf ~/.local/share/Trash/files/* 命令却提示我权限不够

[[email protected] ~]$ rm -rf ~/.local/share/Trash/files/*
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/fsplib/.deps/fsplib.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/fsplib/.deps/lock.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/mkstemps.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/local.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/rfc2068.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/rfc959.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/ftps.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/https.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/misc.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/config_file.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/sslcommon.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/cache.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/bookmark.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/protocols.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/fsp.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/pty.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/sshv2.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/text/.deps/textui.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/text/.deps/gftp-text.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/misc-gtk.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/chmod_dialog.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/transfer.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/view_dialog.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/delete_dialog.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/gftp-gtk.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/dnd.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/menu-items.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/gtkui_transfer.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/gtkui.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/bookmarks.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/options_dialog.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/uicommon/.deps/gftpuicallbacks.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.0.18/src/uicommon/.deps/gftpui.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/fsplib/.deps/fsplib.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/fsplib/.deps/lock.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/mkstemps.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/local.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/rfc2068.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/rfc959.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/ftps.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/https.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/misc.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/config_file.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/sslcommon.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/cache.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/bookmark.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/protocols.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/fsp.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/pty.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/sshv2.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/text/.deps/textui.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/text/.deps/gftp-text.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/misc-gtk.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/chmod_dialog.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/transfer.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/view_dialog.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/delete_dialog.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/gftp-gtk.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/dnd.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/menu-items.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/gtkui_transfer.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/gtkui.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/bookmarks.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/options_dialog.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/uicommon/.deps/gftpuicallbacks.Po”: 权限不够
rm: 无法删除 “/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/uicommon/.deps/gftpui.Po”: 权限不够

用 su 命令,然后用下面的命令

[[email protected] ~]$ su
密码:
[[email protected] charles]# rm -rf ~/.local/share/Trash/files/*
[[email protected] charles]# rm -rf ~/.local/share/Trash/files/*
[[email protected] charles]# rm -fr $HOME/.local/share/Trash/files/*

同样删除不了,我都头大了,直接用 cd 命令,和 ls -a 命令浏览到 .local/share/Trash/files/ 目录下,用 rm -rf * 命令强制删除所有文件,终于成功!

[[email protected] charles]# cd .local
[[email protected] .local]# ls -a
. .. share
[[email protected] .local]# cd share
[[email protected] share]# ls -a
. .. applications audacious codeina desktop-directories Trash
[[email protected] share]# cd Trash
[[email protected] Trash]# ls -a
. .. files info
[[email protected] Trash]# cd files
[[email protected] files]# ls -a
. .. gftp-2.0.18 gftp-2.2.0.18
[[email protected] files]# rm -rf *
[[email protected] files]# ls -a
. ..
[[email protected] files]#

终于删除成功!

Leave a Reply

Your email address will not be published. Required fields are marked *