Can't Empty .Trash

Bug #177600 reported by RichPicker
4
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Don't think this is a bug (don't know), but I've tried everything, and am turning to you.
I'm using Ubuntu 7.1 on Dell Laptop.
When I try to empty the trash, I get this error message:

Error while deleting.
"/home/rich/.../gspca.mod" cannot be deleted because
you do not have permission to modify its parent folder.

I understand I don't have the permissions.
I would do a chown, but I don't know the full path name, because of the "..."

I did this:

rich@rich-laptop:~$ sudo updatedb
Password:
rich@rich-laptop:~$ locate gspca.mod
/home/rich/.Trash/...gspca.mod
/home/rich/.Trash/...gspca.mod/.tmp_versions
/home/rich/.Trash/...gspca.mod/.tmp_versions/gspca.mod
rich@rich-laptop:~$

And then this:

rich@rich-laptop:~$ cd .Trash
rich@rich-laptop:~/.Trash$ rm gspca.mod
rm: cannot remove `gspca.mod': No such file or directory
rich@rich-laptop:~/.Trash$

How can I know the full path name, to delete this file?

Thank you very much,
Rich

Revision history for this message
RichPicker (rich-braden) wrote :

Sorry this is linked to the other bug. I couldn't see how to post.

Here are some other results:

rich@rich-laptop:~$ cd ~/.Trash
rich@rich-laptop:~/.Trash$ ls -lt
total 0
rich@rich-laptop:~/.Trash$ ls -a
. .. ...gspca.mod

It is not there with "-lt" but it IS there with "-a"

rich@rich-laptop:~$ rm -rf ~/.Trash/*
rich@rich-laptop:~$ cd ~/.Trash
rich@rich-laptop:~/.Trash$ ls -a
. .. ...gspca.mod
rich@rich-laptop:~/.Trash$

It is still there. This is puzzling. I can't delete it. Yet I get no error message when trying to delete it.

Revision history for this message
jtholmes (jtholmes) wrote :

cd to /home/rich/.Trash
sudo rm gspa.mod

that should take of removing the file

Revision history for this message
Matthias Klose (doko) wrote :

rm .??* should work

Changed in bash:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.