[ubuntu] Trash files not deleted

Asked by paul1149

I'm on Linux Lite, which is a derivative of ubuntu 16.04, x64, using the XFCE desktop environment and EXT4 file system.

A good percentage of the time BB will not delete files in the Trash bin. They manually delete with no problem. After running BB I have to check Trash and make sure it's been emptied.

Thanks.

Question information

Language:
English Edit question
Status:
Expired
For:
BleachBit Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andrew Ziem (ahziem1) said :
#1

Regarding the files that are not deleted, are they in one of these paths?

~/.Trash
~/.local/share/Trash/

Are they on another file system than the user's home directory? Common examples are a network drive or removable drive.

Revision history for this message
paul1149 (pbpublic) said :
#2

I just deleted a file and found it at /home/paul/.local/share/Trash. I suppose the problem files went to the same place. I will check next time it happens.

There is no network drive involved. My user profile is located on the same drive as the system files.

Thanks.

Revision history for this message
paul1149 (pbpublic) said :
#3

I've been watching this, and finally had a straggler. The error was one of permissions. Apparently the stuck file had root permissions, while I usually operate BB from my normal user account. This time it threw an error. I don't recall an error the other times, but I'll have to keep looking.

Revision history for this message
paul1149 (pbpublic) said :
#4

Ok, it just happened again. I had done some updates to Linux, then rebooted. Then I ran BB at the user level. The files in Trash were deleted with the exception of a folder containing old LibreOffice .deb installer files, which should have no special permissions attached to it.

The folder is showing in Trash, at 285MB, but it doesn't show at ~./.local/share/Trash/.... There is no ~/.trash folder

Revision history for this message
paul1149 (pbpublic) said :
#5

I think I've found the problem. The deleted folder was from a secondary drive. Evidently in Linux each drive is set up with its own trash bin. In this case it is labeled .Trash-1000, and the folder in question is in it. Linux polls all the remote .Trash-1000 locations when presenting the main Trash folder, and also purges them when the main folder is purged. But BB is not doing either of these things, or at least not the purging part.

Revision history for this message
Andrew Ziem (ahziem1) said :
#6

By secondary do you mean a second physical fixed (permanent) drive, a second partition, or a removable drive? Either way, it sounds like this should be converted to a bug report.

As I am hoping to move bug reports from Launchpad to GitHub, preferably you could create the bug report here https://github.com/bleachbit/bleachbit/issues/new with the brief description that this is about Trash on non-home partitions (or specifically whatever you found is the issue)

Revision history for this message
paul1149 (pbpublic) said :
#7

It's a second fixed drive in the machine. I have three hard drives. the SSD is dedicated to Linux, one has two partitions, and one has three partitions.

I see that on all the EXT4 partitions, there is a local trash folder labeled .Trash-0 in addition to the one labeled .Trash-1000. But on the drive in question, which is formatted to NTFS, there is only .Trash-1000.

It appears the .Trash-0 folders are not valid. There's a gray X on their icons and they do not open.

I just tested a file deletion on one of the ext4 drives, and BB did not purge it there either. So drive file system seems to be irrelevant.

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

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