2

I'm having trouble opening my Trash folder in Ubuntu and unable to open and view my deleted files as per normal.

It shows up as:

This location could not be displayed.
Sorry, could not display all the contents of “trash:///”: Operation not supported

Does anyone knows how to resolve this? I know i can empty the contents in /.local/share/Trash, but the Trash directory is also missing as well. I tried to create a new Trash directory but the problem described above still persists.

Greatly appreciate any comments from the community!

wjandrea
  • 14,236
  • 4
  • 48
  • 98

2 Answers2

0

You need to create four separate directories (although I'm not sure this approach will actually work for you):

mkdir ~/.local/share/Trash
mkdir ~/.local/share/Trash/expunged
mkdir ~/.local/share/Trash/files
mkdir ~/.local/share/Trash/info

Let me know your progress on this and I'll update the answer as needed.

  • hi!, doesn't seems to resolve the issue though; but when i tried to delete a file, it'll go into /.local/share/Trash/files. But when i access it through the Trash folder, i encounter the same problem with the error message described in the main thread. – rainfrost Aug 07 '17 at 03:29
  • The Trash system might have a mini-database that needs to be rebuilt some how. Or if it's a permission issue try chmod 700 ~/.local/share/Trash but I'm not sure if that will solve much. – WinEunuuchs2Unix Aug 07 '17 at 03:47
  • yeah i tried working around permission but still can't solve it, do you've any idea how to rebuild the Trash folder without re-installing ubuntu as i got this workstation from someone else. – rainfrost Aug 07 '17 at 05:03
0

If you are creating it in /.local, that may be part of the problem. You should be creating ~/.local/share/Trash

That folder should contain subdirectories called expunged, files, and info

Those folders should have permissions of 0700

I cannot replicate your error message, but removing and recreating those files seems to leave a working trash in 17.04