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?
--
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]