Read on full site | Join TechSpot! (it's free) | Bookmark / Share this



Undeletable file, Ubuntu

UnWarierMage224
04-29-2008, 12:40 AM
Hi guys,

another problem. A file I sent to the trash won't delete. I right-click on the file, say "delete from trash" and get an error "permission denied"...

I even tried logging in as root: opened up a terminal, typed sudo su, left the terminal open, and tried to delete the file as I did above. That didn't work.

Scanned with AVAST. No viruses.

What to do...

-'Mage

caravel
04-29-2008, 05:02 AM
Somehow a file owned by root is probably in there.

Open a terminal and do:

sudo rm -rf ~/.Trash/*

Note: Please read up on what this command actually does before running it. rm is a dangerous command when run as root or with sudo.

Sudo only works within the terminal you have opened until it is closed or until the sudo session expires.

Ubuntu is a Linux distribution and this is a simple permissions issue, why are you scanning for viruses on a Linux box??!!

Ad
04-29-2008, 05:02 AM
  

UnWarierMage224
04-29-2008, 08:48 AM
Hi caravel,

I just tried that exact command. The file won't go away. I even tried logging in as sudo su and deleting it, error received is:

"There was an error deleting temp.linux-i686-2.5. Error removing file: permission denied."

The program these files came from was a botched installation of listen-0.5.

-'Mage

UnWarierMage224
04-29-2008, 12:42 PM
Update on this problem:

buried in the listen-0.5 folder is the build folder, in that is the mmkeys folder. In the mmkeys folder there are these two folders:

lib.linux-i686-2.5
temp.linux-1686-2.5

It's these two folders that can't be deleted (even while in sudo su)... Right-clicking on them the "Delete from Trash" option is grayed out. Even trying to change their permissions I get the following error:

"Sorry, couldn't change the permissions of "temp.linux-i686-2.5": Operation not supported by backend".. same error for that lib.linux file. Can't change them even while under sudo su...

What to do??

EDIT: More strangeness... output of rm command:
rm: cannot remove `/root/.Trash/listen-0.5/mmkeys/build/lib.linux-i686-2.5': No such file or directory
rm: cannot remove `/root/.Trash/listen-0.5/mmkeys/build/temp.linux-i686-2.5': No such file or directory

Problem is it still shows up that in the trash I have an item (graphically) even though according to this no item exists....


-'Mage

caravel
04-30-2008, 05:50 AM
EDIT: More strangeness... output of rm command:
rm: cannot remove `/root/.Trash/listen-0.5/mmkeys/build/lib.linux-i686-2.5': No such file or directory
rm: cannot remove `/root/.Trash/listen-0.5/mmkeys/build/temp.linux-i686-2.5': No such file or directory
You're trying to remove it from the root user's .Trash. Remove it from your .Trash. Do the following:

sudo nautilus

Go to your home folder and CTRL+H to show hidden files and folders. Go into the .Trash folder and clear it out.

UnWarierMage224
04-30-2008, 08:15 AM
Awesome, that worked!

Thank you!

-'Mage

jobeard
04-30-2008, 01:46 PM
When installing packages on Linux, the process typically goes like
cd xxx
./configure
make
make install

If you no longer want that package, or wish to reverse the install, the process usually is

cd xxx
make uninstall


TRASH is a Windows concept, not a Linux concept and suggest,
When in Rome, do as the Romans do :)

caravel
05-01-2008, 07:51 AM
gnome has a deleted files applet known as the .Trash applet. It is useful for those that might accidentally delete something, because they can restore it later. In Windows it's known as the "Recycle Bin" and is not a Windows concept as even very early versions of Amiga OS had the "Trashcan" which is basically the same thing. The recylce bin was introduced into Windows 95 whereas the Amiga OS Trashcan existed long before.

The package listen-0.5 is actually in the Ubuntu repositaries, so no need to do a manual install.

:cool:

Post a reply, see related topics & more

Tip: Download Advanced SystemCare 3 Free - Clean, Repair, Protect & Optimize your PC.



 Top Technology News

TechSpot Blog: Disable Windows automatic check for solutions after a program crashes

Weekend Open Forum: Google Chrome OS and the future of cloud computing

Tech Tip of the Week: Unearth Region-Specific Windows 7 Themes

Weekend tech reading: How to run Chrome OS as a virtual machine

Sony: PlayStation 3 to be 3D-capable via firmware update

iSuppli: DDR3 to account for over half of DRAM shipments by Q2 2010

Facebook named third most popular video website behind YouTube and Hulu

Patriot introduces new PS-100 SSD series

More Tech News

  
 Software Downloads

Norton Virus Definitions 2003-07 November 20, 2009

AVG Anti-Virus Updates November 20, 2009

Norton Virus Definitions 2008-09 November 20, 2009

avast! Virus Definitions November 20, 2009

McAfee SuperDAT Update 5808

Kaspersky Anti-Virus Update November 20, 2009

Google SketchUp 7.1.6087

More Downloads



Copyright © 1998-2009 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.