Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-28-2006, 11:19 AM   #1
LQ Newbie
Registered: Oct 2006
Posts: 2

Rep: Reputation: 0
unremovable file after dpkg failure

this is a new and interesting problem i've never seen before.after a dpkg installation failure i'm left with a file i can't do a thing about, its presence blocks any dpkg usage and ldconfig too. any ideas how i can remove this file or alter its permissions?

root@crystaltree:~# ls -l /usr/lib/
p-w-r-Srwx 9781 2801277591 676399779 3409598200 2038-05-23 22:55 /usr/lib/
root@crystaltree:~# rm /usr/lib/
rm: cannot remove `/usr/lib/': Operation not permitted
root@crystaltree:~# chown root.root /usr/lib/
chown: changing ownership of `/usr/lib/': Operation not permitted
root@crystaltree:~# chmod -s /usr/lib/
chmod: changing permissions of `/usr/lib/': Operation not permitted
root@crystaltree:~# chmod 0777 /usr/lib/
chmod: changing permissions of `/usr/lib/': Operation not permitted

Last edited by Dinxter; 10-28-2006 at 11:20 AM.
Old 10-28-2006, 12:12 PM   #2
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
It seems to be a pipe, maybe some process has it still allocated. You could search for the process and kill it, or reboot your machine if possible. After that you should be able to remove the file.
Old 10-29-2006, 03:43 AM   #3
LQ Newbie
Registered: Oct 2006
Posts: 2

Original Poster
Rep: Reputation: 0
thanks for the reply. rebooting didnt change the state of the file. i managed to eventually fix by forcing a fsck in single user mode. then fsck became stuck in an automatic filesystem checking loop at boot, repeatedly fixing problems on the root partition and forcing reboot. using a boot floppy i ran a few more fsck and eventually managed to get a clean filesystem with the offending file fixed.


file, permissions

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 09:24 AM
dpkg: `file' not found on PATH. utw-mephisto Debian 11 10-21-2011 07:53 AM
Package unremovable with exit status 127 Mark_in_Hollywood Linux - Newbie 6 02-17-2009 02:11 AM
Unremovable File? whisper81 Linux - Newbie 2 05-25-2006 04:36 AM
apt-get/dpkg failure ls3 Debian 3 11-18-2003 02:27 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:12 AM.

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