jaunty upgrade fails when libboost-python-dev is installed

Bug #339100 reported by Alastair Porter
6
Affects Status Importance Assigned to Milestone
boost (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: libboost-python-dev

While performing an upgrade from intrepid to jaunty (using do-release-upgrade -d), an error occurs while setting up python 2.6.

as part of the rtupdate hooks, the file
/usr/share/python/runtime.d/libboost-python-dev.rtupdate
is processed if libboost-python-dev is installed. The version of this file installed with intrepid does not have a stanza in it to support being passed python2.6 as an argument, so the install fails. Removing libboost-python-dev via dpkg --remove allows apt-get -f install to continue setting up packages. Reinstalling the package shows there is now a stanza for python 2.6.

Sorry I don't have more specific output to paste, I lost the scrollback on my terminal while trying to fix the problem.

Revision history for this message
sparr (sparr0) wrote :

More detailed output, also including another python upgrade problem. I had to remove libboost-dbg and libboost-python-dev and pitivi, then python upgraded successfully. Should this one bug encompass all 3 problems, or should separate bugs be opened?

Setting up python (2.6.1-0ubuntu3) ...
running python rtupdate hooks for python2.6...
/usr/share/python/runtime.d/libboost-dbg.rtupdate unknown python version python2.6
error running python rtupdate hook libboost-dbg
/usr/share/python/runtime.d/libboost-python-dev.rtupdate unknown python version python2.6
error running python rtupdate hook libboost-python-dev
Compiling /usr/lib/pitivi/python/pitivi/objectfactory.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/pitivi/python/pitivi/objectfactory.py', 399, 14, ' as = self.audio_info_stream\n'))

pycentral: pycentral updatedefault: error byte-compiling files (55)
pycentral updatedefault: error byte-compiling files (55)
error running python rtupdate hook pycentral
Updating *.pc symlinks for python-gst0.10...
Updating *.pc symlinks for python-gtk2-dev...
dpkg: error processing python (--configure):
 subprocess post-installation script returned error exit status 4
Errors were encountered while processing:
 python

Revision history for this message
Per Ångström (autark) wrote :

I ran into a similar problem while doing an ordinary system update (Jaunty development branch): during the update some problems were reported concerning python, and on reboot the system was almost unusable; the update had apparently been aborted due to python not being available, so the window manager wouldn't start, among other things. When I had reconfigured X manually, Gnome would just hang. The worst thing: even "dpgk --configure -a" wouldn't work, running into an infinite loop. Only by removing package
 libboost-python1.35-dev 1.35.0-8ubuntu4 1.35.0-8ubuntu4 was I able to fix the mess.

I'm absolutely chocked by the fact that a single dependency problem in a fairly unimportant module can have such dire consequences. What could I have done had I been less experienced with the command line - I think I would have had to reinstall from scratch.

I'm attaching the log from the failed install and the recovery.

Changed in boost (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Matthias Klose (doko) wrote :

python 2.6.1-0ubuntu7 now conflicts with the buggy libboost-python*-dev versions

Changed in boost (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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