Re: unremovable directory



On 10/09/2006 05:19 PM, Tobias Niemann wrote:
I have a problem, I can't update my python-gtk2 because I get this error:

Setting up python-gtk2 (2.8.6-6) ...
Traceback (most recent call last):
File "/usr/sbin/update-python-modules", line 281, in ?
process(basedir,install_modules(py_installed))
File "/usr/sbin/update-python-modules", line 154, in process
func(basedir, dir, file)
File "/usr/sbin/update-python-modules", line 125, in install_modules_func
os.remove(destpath)
OSError: [Errno 1] Operation not permitted:
'/var/lib/python-support/python2.3/pygtk.pth'

I only get this far because I edited the old
/var/lib/dpkg/info/python-gtk2.prerm and commented out all
update-python-modules -c -i /usr/share/python-support/python-gtk2
and
update-python-modules -c -i python-gtk
but at the end the update still fails (see above).

If I perform as root

# ls -lad /var/lib/python-support/python2.3/pygtk.pth
dr-xrwsrwx 2 17996 34912 49152 1970-01-03 07:36
/var/lib/python-support/python2.3/pygtk.pth

(weired user, group, permissions, size and date)
and then

# rmdir /var/lib/python-support/python2.3/pygtk.pth
rmdir: /var/lib/python-support/python2.3/pygtk.pth: Operation not permitted

how's about a chown?

# chown -R root. /var/lib/python-support/python2.3/pygtk.pth
chown: changing ownership of
`/var/lib/python-support/python2.3/pygtk.pth': Operation not permitted

or a rm -r?

# rm -r /var/lib/python-support/python2.3/pygtk.pth
rm: remove write-protected directory
`/var/lib/python-support/python2.3/pygtk.pth'? y
rm: remove write-protected directory
`/var/lib/python-support/python2.3/pygtk.pth'? y
rm: cannot remove directory
`/var/lib/python-support/python2.3/pygtk.pth': Operation not permitted

or a chmod?

# chmod -R 755 /var/lib/python-support/python2.3/pygtk.pth
chmod: changing permissions of
`/var/lib/python-support/python2.3/pygtk.pth': Operation not permitted

I guess you get the idea, I'm not allowed to perform any operation on
that directory. An "fsck.ext3 -f .." did complete without errors but I
guess it's a relict of my last crash about two weeks ago (my CPU was the
reason not the OS). I also wasn't able to delete the directory from
within knoppix.

I'm very much clueless, any help is appreciated. How can I get rid of
the directory?
[...]

Boot into single-user mode and see if you can remove that directory in that mode (it probably won't work, but it's worth a shot).

If that shot misses, can you manually move that directory out of the way?


--
paduille.4059.mumia.w@xxxxxxxxxxxxx


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • unremovable directory
    ... Setting up python-gtk2... ... rm: remove write-protected directory ... or a chmod? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: [SLE] Thread Highjacking Protocol --OT but related to this list
    ... (unsubscribe from SLE as an example) ... highjacking threads - I got the point, stopped the practice, and gee I'm ... Spammers Beware: Trespassers will be shot, ... "The only problem with capitalism is capitalists, ...
    (SuSE)
  • Re: Unable to su as a user, I get: Cannot execute /bin/bash: Permission denied
    ... It'll be executed by the user, not root. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Also to be a right prat, chmod a-x `which chmod` (don't do it, but i've ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
    (Debian-User)
  • Re: mass chmod chown...
    ... :: chmod/chown files? ... i want to be able to like chmod all the files and folders say ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
    (Fedora)
  • RE: /dev/dsp
    ... > Please check if your sound drivers have loaded successfully. ... >> Hey group. ... >> chmod on the file, but I don't want to mess anything up. ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". ...
    (Debian-User)