update of python-gtkhtml2 in hardy-updates breaks

Bug #276324 reported by Rolf Leggewie
4
Affects Status Importance Assigned to Milestone
gnome-python (Ubuntu)
Invalid
Low
Unassigned
Nominated for Hardy by Daniel T Chen
gnome-python-extras (Ubuntu)
Invalid
High
Unassigned
Nominated for Hardy by Daniel T Chen

Bug Description

Did my aptitude update routine today and python-gtkhtml2 broke. It looks like the version in hardy-updates needs some love.

(Reading database ... 158220 files and directories currently installed.)
Preparing to replace python-gtkhtml2 2.19.1-0ubuntu7 (using .../python-gtkhtml2_2.19.1-0ubuntu7.1_i386.deb) ...
WARNING: /usr/share/python-support/python-gtkhtml2 does not exist.
         Some bytecompiled files may be left behind.
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 269, in <module>
    args.remove(arg)
ValueError: list.remove(x): x not in list
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
WARNING: /usr/share/python-support/python-gtkhtml2 does not exist.
         Some bytecompiled files may be left behind.
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 269, in <module>
    args.remove(arg)
ValueError: list.remove(x): x not in list
dpkg: error processing /var/cache/apt/archives/python-gtkhtml2_2.19.1-0ubuntu7.1_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Usage: update-python-modules [-v] [-c] package_directory [...]
       update-python-modules [-v] [-c] package.dirs [...]
       update-python-modules [-v] [-a|-f]

update-python-modules: error: /usr/share/python-support/python-gtkhtml2 does not exist
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/python-gtkhtml2_2.19.1-0ubuntu7.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: error processing python-gtkhtml2 (--configure):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting configuration.
Errors were encountered while processing:
 python-gtkhtml2
Press return to continue.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

It's probably as easy as "mkdir -p /usr/share/python-support/python-gtkhtml2" from one of the install scripts. Creating that directory by hand resulted in a successful upgrade afterwards.

Assigning to superhero Sebastian who it appears is the one who looks after this package as well.

Changed in gnome-python-extras:
importance: Undecided → Critical
status: New → Confirmed
assignee: nobody → seb128
status: Confirmed → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

you seem to be the first one to have this issue and that looks rather a python-support bug

Revision history for this message
Sebastien Bacher (seb128) wrote :

unassigning, I didn't do this update and I don't work on python-support, you can to subscribe people to get their opinion

Changed in gnome-python-extras:
assignee: seb128 → nobody
importance: Critical → High
Revision history for this message
Michael Vogt (mvo) wrote :

I just tested this on a stock hardy install and it seems to be not reproducable for me.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Michael, was the directory in question present before the upgrade? Were you going from python-gtkhtml2 2.19.1-0ubuntu7 to 2.19.1-0ubuntu7.1?

Revision history for this message
Daniel T Chen (crimsun) wrote :

can't reproduce this in hardy-updates, either

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Apparently, most people have that directory on their system automatically. I wonder why I did not. Maybe it is because I don't install recommended packages automatically?

/usr/share/python-support/python-gtkhtml2 is not in http://packages.ubuntu.com/hardy/i386/python-gnome2-extras/filelist nor in http://packages.ubuntu.com/hardy-updates/i386/python-gtkhtml2/filelist I don't have time right now to dig further into where it is supposed to come from. Maybe somebody can comment? That particular directory exists but is empty on my system. I think I created it by hand.

Do others here have that directory? Is it empty for you?

Revision history for this message
Sebastien Bacher (seb128) wrote :

closing the bug is has got no comment in 1.5 years now and happened to one user, seems rather a local installation issue

Changed in gnome-python-extras (Ubuntu):
status: New → Invalid
Changed in gnome-python (Ubuntu):
importance: Undecided → Low
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.