Bug#384189: python-gtk2: i can reproduce this bug

ilya margolin listen at ulani.de
Mon Sep 11 17:50:45 UTC 2006


Loïc Minier wrote:
> reopen 384189
> stop
> 
> On Mon, Sep 11, 2006, Ilya Margolin wrote:
>> /etc/alternatives/python-gtk points to /usr/share/python-gtk-2.0
> 
>  Thanks for the report, could you please report the output of:
>     file /usr/share/python-support/python-gtk
> 
it is not there:

/usr/share/python-support/python-gtk: ERROR: cannot open 
`/usr/share/python-support/python-gtk' (No such file or directory)

ls -l /usr/share/python-support/ gives me
-rw-r--r-- 1 root root   18 Aug 10 11:20 gnome-doc-utils.dirs
drwxr-xr-x 2 root root 4096 Sep 11 17:02 python-gnupginterface
drwxr-xr-x 3 root root 4096 Sep 11 19:21 python-gtk2
drwxr-xr-x 2 root root 4096 Sep 10 18:48 python-libxml2
drwxr-xr-x 3 root root 4096 Sep 10 16:16 python-pyogg
drwxr-xr-x 2 root root 4096 Jul 16 06:26 python-pyvorbis
-rw-r--r-- 1 root root   33 Jun 18 14:19 python-support.dirs


i added more verbosity to postinst script:
# dpkg --configure python-gtk2
Setting up python-gtk2 (2.8.6-5) ...
+ rm -f '/usr/lib/python2.[34]/site-packages/pygtk.py[co]'
+ update-alternatives --verbose --install 
/usr/share/python-support/python-gtk python-gtk /usr/share/python-gtk-2.0 20
Checking available versions of python-gtk, updating links in 
/etc/alternatives ...
(You may modify the symlinks there yourself if desired - see `man ln'.)
Automatic updates of /etc/alternatives/python-gtk are disabled, leaving 
it alone.
To return to automatic updates use `update-alternatives --auto python-gtk'.
+ update-python-modules -v -i python-gtk
Traceback (most recent call last):
   File "/usr/sbin/update-python-modules", line 262, in ?
     raise "%s does not exist"%arg
/usr/share/python-support/python-gtk does not exist
dpkg: error processing python-gtk2 (--configure):
  subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
  python-gtk2


sorry to disappoint you, but my results are not reliable anymore, i have 
tinkered with things i do not really understand.
these are steps i used to clean up the situation and reproduce error 
once again:

update-alternatives --remove-all python-gtk
rm -rf /usr/share/python-support/python-gtk*
dpkg -P --force-depends python-gtk2
cat /var/lib/dpkg/info/python-gtk2.list |xargs rm
rm -rf /usr/lib/python-support/python-gtk2 \
/usr/share/python-gtk-2.0 /usr/share/doc/python-gtk2\ 
/usr/share/python-support/python-gtk2
rm /var/lib/dpkg/info/python-gtk2.*
update-python-modules

and then,
apt-get install python-gtk2

this gives the same error as above, only not verbose

hope this helps,
ilya margolin






More information about the Pkg-gnome-maintainers mailing list