Josselin Mouette wrote:
-rw-r--r-- 1 root root 8 2008-06-07 23:41
/usr/share/python-support/python-gobject/pygtk.pth
-rw-r--r-- 1 root root 8 2006-08-06 06:58
/usr/share/python-support/python-gtk2/pygtk.pth
The latter file is not present in the python-gtk2 package at this
version.
Please check the contents of python-gtk2 (dpkg -L python-gtk2) and the
origin of this file (dpkg -S python-gtk2/pygtk.pth).
It is highly probable that this file has been put here by a user error
or a filesystem error (file not correctly unlinked after a crash/fsck
for example).
And I think you've found the solution.
`dpkg -L python-gtk2 | grep pth` returns no matching lines - so
python-gtk2 didn't put /usr/share/python-support/python-gtk2/pygtk.pth
there.
`dpkg -S python-gtk2/pygtk.pth` and `dpkg -S
/usr/share/python-support/python-gtk2/pygtk.pth` state no file found.
After removing /usr/share/python-support/python-gtk{,2}/, I was able to
successfully complete `apt-get upgrade` - I removed the python-gtk2
package, but files were left hanging around in both directories, and the
python-gtk package wasn't installed either.
It's been a few years since I did a full re-install of Debian on this
system and this may have been a time-bomb waiting to go off because I
vaguely remember having to muck around with apt in a rather forceful
manner to get something working.
Thanks for the help you've provided.
Cheers,
Tim Lyth