LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2011, 07:14 AM   #1
fezziks
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Rep: Reputation: Disabled
ubuntu trash


hello,

I have items on my trash (I know they are there, and they're indeed shown in ./.local/share/Trash), but when I open the trash, it doesn't list anything (0 elements), although there still is a button 'empty trash'.

How to fix this bug ?

Thanks
 
Old 08-21-2011, 07:55 AM   #2
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 194

Rep: Reputation: 23
You can try/:

rm -rf .local/share/Trash

No need for sudo as these are user Trash files.
Sometimes logging out, logging in again will show
an empty trash icon.
 
Old 08-21-2011, 08:05 AM   #3
fezziks
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
I don't want to delete these files. I would just like to know why they are not listed in the trash that opens with the file explorer.

And by the way, I just noticed something else. When my mouse hovers over the trash icon, it says there are 37 elements in the trash, yet when I click on the icon, nothing is listed in the explorer, and it says 0 elements in the bottom.
 
Old 08-21-2011, 11:00 AM   #4
fezziks
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
can someone help me please?
 
Old 08-21-2011, 11:56 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Maybe a permission issue where you deleted items as root (using sudo / gksudo) ?

The below might shine a light on that.

Code:
fortyfourgalena@desktop-01:~$ ls -ld .local/share/Trash/
drwx------ 5 fortyfourgalena fortyfourgalena 4096 2010-12-15 16:05 .local/share/Trash/
fortyfourgalena@desktop-01:~$ ls -l .local/share/Trash/
total 36
drwx------ 2 fortyfourgalena fortyfourgalena  4096 2011-05-15 12:58 expunged
drwx------ 2 fortyfourgalena fortyfourgalena 12288 2011-08-13 06:39 files
drwx------ 2 fortyfourgalena fortyfourgalena 20480 2011-08-13 06:39 info
fortyfourgalena@desktop-01:~$ ls -l .local/share/Trash/expunged/
total 0
fortyfourgalena@desktop-01:~$ ls -l .local/share/Trash/files/
total 0
-rw-r--r-- 1 fortyfourgalena fortyfourgalena 0 2011-08-21 18:52 abc.txt
fortyfourgalena@desktop-01:~$ ls -l .local/share/Trash/info/
total 4
-rw-r--r-- 1 fortyfourgalena fortyfourgalena 81 2011-08-21 18:52 abc.txt.trashinfo
fortyfourgalena@desktop-01:~$
 
Old 08-21-2011, 04:58 PM   #6
fezziks
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
hi,
yes it might be a permission issue, this account has some restrictions. But which restriction would forbid to access the current user's own trash, specially if it is still accessible in its real location ?
Anyway,
ls -ld .local/share/Trash/ returns
drwx ------ fezziks fezziks .local/share/Trash/
ls -l .local/share/Trash/ returns
drwx------ fezziks fezziks expunged
drwx------ fezziks fezziks files
drwx------ fezziks fezziks info
ls -l .local/share/Trash/expunged/ is empty
ls -l .local/share/Trash/files/ returns all the files I expect to be in the trash (around 40).
ls -l .local/share/Trash/info/ gives the same files as above with a .info extension.
 
Old 09-09-2011, 11:53 AM   #7
fezziks
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
My issue is still not solved.
 
Old 09-09-2011, 12:12 PM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Have you tried creating a file, putting it in Trash and then seeing if it shows up in the Trash folder?
jdk
 
Old 09-09-2011, 12:43 PM   #9
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by fezziks View Post
hi,
ls -l .local/share/Trash/files/ returns all the files I expect to be in the trash (around 40).
ls -l .local/share/Trash/info/ gives the same files as above with a .info extension.
And who are the owner and the group of the files that you found?
 
Old 09-09-2011, 02:15 PM   #10
fezziks
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
jdkaye, yes I have tried, it doesn't show up in the shortcut of the bottom right corner, but it is in the ~/.local/share/Trash
Wim, the current user (me) is the owner of the file, and the group is composed of only one person (me).
 
Old 09-09-2011, 07:21 PM   #11
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
OK, at a loss here. Assuming that the permissions are as I showed in my first reply, the only thing I can think of is that you deleted hidden files which will be hidden in the trash as well; but it is a bit far fetched, I think.

Sorry for not being able to help further; I hate to admit defeat. You can consider to ask the question on launchpad or file a bug report there.

PS
Found a bug report on launchpad; https://bugs.launchpad.net/ubuntu/+s...per/+bug/42471 (I hope the link works if one is not logged in); applies to Dapper Drake (6.06). If you're still running Dapper, you might want to consider to upgrade.

Last edited by Wim Sturkenboom; 09-09-2011 at 07:30 PM. Reason: added PS
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] The trash has reached its maximum size! Cleanup the trash manually. kiruja Linux - Newbie 12 12-11-2020 08:19 AM
Lost disk space after deleting files, trash, hidden trash, etc. themacguy Ubuntu 7 06-06-2012 02:51 AM
ubuntu trash Bob32 Linux - Newbie 19 03-31-2011 04:04 AM
Move to trash works beautifully, but empty trash .. different story. kd5eax Mandriva 2 12-04-2007 02:52 PM
I changed the trash can icons but now the full trash can icon doesn't show? Why? Ausar Linux - Newbie 6 08-04-2004 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration