BUG : I can't copy any file inside the Trash and the Trash seems always full of unwanted items but there is nothing inside

Asked by Marietto

Hello.

I've reinstalled ubuntu 20.10 and I'm experimenting this error :

Error during the copy of "file" inside trash:/// operation not supported

how to fix that ? basically I can't copy any file inside the Trash and the Trash seems always full of unwanted items. It does not work with Cinnamon / Nemo 4.5 (without to be root) and also with Nautilus (with the root priviledges). I've installed kde plasma and with this DM the Trash works great. So,I suspect that it is a bug.

https://i.stack.imgur.com/DGFxw.png

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Install trash-cli and empty the trash in terminal prefixed by sudo. I suspect you have a root owned file in the trash or trash is owned by root

Revision history for this message
Marietto (marietto2008) said :
#2

I don't want to install a third party application. I want to fix the permissions of my Trash can. Why it works with KDE plasma and it does not work with Cinnamon ? Give a look at below what i did :

root@ziomario-Z390-AORUS-PRO:/home/ziomario# chmod 777 /home/ziomario/.local/share/Trash

root@ziomario-Z390-AORUS-PRO:/home/ziomario# chmod 777 /root/.local/share/Trash/files/home_/ziomario/.local/share/Trash

root@ziomario-Z390-AORUS-PRO:/home/ziomario# chmod 777 /root/.local/share/Trash/files/home_/ziomario/Scrivania/Items/TooLinux/OLD-scrivania/.local/share/Trash

root@ziomario-Z390-AORUS-PRO:/home/ziomario# chmod 777 /root/.local/share/Trash

is this wrong ? because the problem is still there.

Revision history for this message
Marietto (marietto2008) said :
#3

Sorry I have pressed on the wrong button. The problem is not solved.

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

Is there anything weird shown with the commands

ls -la ~/.local/share/Trash/
ls -la ~/.local/share/Trash/files/
ls -la ~/.local/share/Trash/info/

Are any files shown as owned by somebody else instead your own user-ID?

Revision history for this message
Marietto (marietto2008) said :
#5

I think that after having set up the 777 permissions like I have shown before the Trash can works,I can put files in there and I can restore them without problem,but now the problem is that its icon is not the icon of an empty trash can,but of a full one and it's annoying.

as root :

root@ziomario-Z390-AORUS-PRO:/home/ziomario# ls -la ~/.local/share/Trash/
totale 16
drwxrwxrwx 4 root root 4096 mar 1 22:50 .
drwxr-xr-x 5 root root 4096 mar 1 23:08 ..
drwx------ 3 root root 4096 mar 2 14:48 files
drwx------ 2 root root 4096 mar 2 14:48 info

root@ziomario-Z390-AORUS-PRO:/home/ziomario# ls -la ~/.local/share/Trash/files/
totale 388
drwx------ 3 root root 4096 mar 2 14:48 .
drwxrwxrwx 4 root root 4096 mar 1 22:50 ..
drwxr-xr-x 3 root root 4096 mar 1 08:23 home_
lrwxrwxrwx 1 ziomario ziomario 51 mar 1 19:33 org.kde.kinfocenter.desktop -> /usr/share/applications/org.kde.kinfocenter.desktop
-rwxrwxrwx 1 ziomario ziomario 382848 feb 24 00:27 'Screenshot from 2021-02-24 00-27-34.png'

root@ziomario-Z390-AORUS-PRO:/home/ziomario# ls -la ~/.local/share/Trash/info/
totale 20
drwx------ 2 root root 4096 mar 2 14:48 .
drwxrwxrwx 4 root root 4096 mar 1 22:50 ..
-rw------- 1 root root 58 mar 1 22:50 home_.trashinfo
-rw------- 1 root root 104 mar 2 14:47 org.kde.kinfocenter.desktop.trashinfo
-rw------- 1 root root 135 mar 2 14:48 'Screenshot from 2021-02-24 00-27-34.png.trashinfo'

root@ziomario-Z390-AORUS-PRO:/home/ziomario# exit
exit

as user :

ziomario@ziomario-Z390-AORUS-PRO:~$ ls -la ~/.local/share/Trash/
totale 20
drwxrwxrwx 5 ziomario ziomario 4096 mar 1 19:54 .
drwxr-xr-x 40 ziomario ziomario 4096 mar 2 15:14 ..
drwx------ 2 ziomario ziomario 4096 mar 2 15:00 expunged
drwx------ 2 ziomario ziomario 4096 mar 2 15:03 files
drwx------ 2 ziomario ziomario 4096 mar 2 15:03 info

ziomario@ziomario-Z390-AORUS-PRO:~$ ls -la ~/.local/share/Trash/files/
totale 8
drwx------ 2 ziomario ziomario 4096 mar 2 15:03 .
drwxrwxrwx 5 ziomario ziomario 4096 mar 1 19:54 ..

ziomario@ziomario-Z390-AORUS-PRO:~$ ls -la ~/.local/share/Trash/info/
totale 8
drwx------ 2 ziomario ziomario 4096 mar 2 15:03 .
drwxrwxrwx 5 ziomario ziomario 4096 mar 1 19:54 ..

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.