LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 08: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, 08:55 AM   #2
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 184

Rep: Reputation: 22
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, 09: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, 12:00 PM   #4
fezziks
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
can someone help me please?
 
Old 08-21-2011, 12:56 PM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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, 05: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, 12:53 PM   #7
fezziks
LQ Newbie
 
Registered: Aug 2011
Posts: 7

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

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, 01:43 PM   #9
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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, 03: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, 08:21 PM   #11
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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 08:30 PM. Reason: added PS
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 9 03-08-2015 10:27 AM
Lost disk space after deleting files, trash, hidden trash, etc. themacguy Ubuntu 7 06-06-2012 03:51 AM
ubuntu trash Bob32 Linux - Newbie 19 03-31-2011 05:04 AM
Move to trash works beautifully, but empty trash .. different story. kd5eax Mandriva 2 12-04-2007 03: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 02:59 PM


All times are GMT -5. The time now is 10:11 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration