Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.

Go Back   TechSpot OpenBoards > OS & Software > The Alternative OS

Undeletable file, Ubuntu

Reply
Bookmark / Share this page
Thread Tools
  #1  
Old 04-28-2008, 11:40 PM
UnWarierMage224 UnWarierMage224 is offline
TechSpot Member
 
Member since: Aug 2006, 63 posts
Undeletable file, Ubuntu

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
Reply With Quote
  #2  
Old 04-29-2008, 04:02 AM
caravel caravel is offline
TechSpot Member
 
Member since: Jun 2006, 257 posts
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??!!

Last edited by caravel; 04-29-2008 at 04:04 AM.
Reply With Quote
You can remove this banner by registering, join the TS Community for free.
  #3  
Old 04-29-2008, 07:48 AM
UnWarierMage224 UnWarierMage224 is offline
TechSpot Member
 
Member since: Aug 2006, 63 posts
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
Reply With Quote
  #4  
Old 04-29-2008, 11:42 AM
UnWarierMage224 UnWarierMage224 is offline
TechSpot Member
 
Member since: Aug 2006, 63 posts
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

Last edited by UnWarierMage224; 04-29-2008 at 12:10 PM.
Reply With Quote
  #5  
Old 04-30-2008, 04:50 AM
caravel caravel is offline
TechSpot Member
 
Member since: Jun 2006, 257 posts
Quote:
Originally Posted by UnWarierMage224
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.
Reply With Quote
  #6  
Old 04-30-2008, 07:15 AM
UnWarierMage224 UnWarierMage224 is offline
TechSpot Member
 
Member since: Aug 2006, 63 posts
Awesome, that worked!

Thank you!

-'Mage
Reply With Quote
  #7  
Old 04-30-2008, 12:46 PM
jobeard's Avatar
jobeard jobeard is offline
TechSpot Evangelist
 
Location: Southern Calif.
Member since: Apr 2005, 6,204 posts
When installing packages on Linux, the process typically goes like
  1. cd xxx
  2. ./configure
  3. make
  4. make install
If you no longer want that package, or wish to reverse the install, the process usually is
  1. cd xxx
  2. make uninstall

TRASH is a Windows concept, not a Linux concept and suggest,
When in Rome, do as the Romans do
Reply With Quote
  #8  
Old 05-01-2008, 06:51 AM
caravel caravel is offline
TechSpot Member
 
Member since: Jun 2006, 257 posts
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.

Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
my friend dropped my ext. hd last night... vtribes Storage & Networking 9 03-25-2007 02:21 PM
Up all night with this problem Lannstar Windows OS 5 01-11-2007 08:54 PM
Infected over night. RicePaperElite Security and the Web 11 05-31-2006 11:03 PM
BSOD every night spitfireinc2006 Device Drivers 3 02-25-2006 10:10 AM
Undeletable Avi file Godataloss Windows OS 15 07-19-2004 07:12 AM


All times are GMT -4. The time now is 03:37 AM.