pycentral breaks if /usr/bin/dpkg-querry fails to read trigger enabled status file (was: Feisty to Gutsy Upgrade: Aborts with partial upgrade)

Bug #152827 reported by Stephen Eisenhauer
4
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
High
Michael Vogt

Bug Description

Binary package hint: update-manager

The desktop ran Feisty, up-to-date as of 10/12/07, and I used "update-manager -c -d" to upgrade to Gutsy RC1 on that same date. The installed architecture was i386, although the CPU is really an amd64. I have 768MB of RAM.

Come the installation phase of the upgrade, I received a slew of message windows indicating the failure of x package to install. Among these were (and I apologize if I made any mistakes transcribing the names):

baseutils
bash
adduser
passwd
ssl-cert
cupsys
python-apt
dbus
libgnomevfs2-0
libgnome2-0
libbonoboui2-0
libgnomeui2-0

with the given reason being "dependency problems - leaving unconfigured".

After these messages I received the closing remarks:
"Could not install the upgrades

The upgrade aborts now. Your system could be in an unusable state. A recovery will run now (dpkg --configure -a).

Please report this bug against the 'update-manager' package and include the files in /var/log/dist-upgrade/ in the bugreport.
installArchives() failed"

It proceeded with the dpkg --configure business, and the installer closed without notice. I have yet to reboot and see if the resultant installation works. Attachments to follow. Thanks!

Related branches

Revision history for this message
Stephen Eisenhauer (bhspitmonkey) wrote :

Requested attachments.

Michael Vogt (mvo)
Changed in update-manager:
importance: Undecided → High
milestone: none → ubuntu-7.10
status: New → In Progress
Revision history for this message
Michael Vogt (mvo) wrote : Re: pycentral breaks if it can't read /var/lib/dpkg/status (was: Feisty to Gutsy Upgrade: Aborts with partial upgrade)

The problem is that pycentral uses /usr/bin/dpkg-querry (with explicit path) to ask for a filelist in the postinst of all appylications that use python-central. This breaks when python-apt is configured before the new dpkg is available in /usr/bin/dpkg{-querry} (the upgrader uses its own private version build against the old libraries of feisty).

Revision history for this message
Michael Vogt (mvo) wrote :

I can reproduce the failure on a server install with:
$ sudo apt-get install python-all-dev python-vte dpkg-dev python-all

installed.

Revision history for this message
Michael Vogt (mvo) wrote :
Michael Vogt (mvo)
Changed in update-manager:
status: In Progress → Fix Committed
assignee: nobody → mvo
Revision history for this message
Martin Pitt (pitti) wrote :

 python-apt (0.7.3.1ubuntu4) gutsy; urgency=low
 .
   * pre-depend on gutsy version pycentral, this ensures that we get a
     updated dpkg with triggers support before pycentral uses
     /usr/bin/dpkg-querry (LP: #152827)

Changed in update-manager:
status: Fix Committed → Fix Released
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.