Dapper upgrade to Edgy: Frozen dist-upgrade and failed second run (in Finnish locales

Bug #68553 reported by niko-humhum
28
Affects Status Importance Assigned to Milestone
python-apt (Ubuntu)
Fix Released
Medium
Michael Vogt
Dapper
Fix Released
High
Brian Murray
Edgy
Fix Released
High
Michael Vogt
update-manager (Ubuntu)
Fix Released
High
Michael Vogt
Dapper
Invalid
Undecided
Unassigned
Edgy
Fix Released
High
Michael Vogt

Bug Description

Binary package hint: update-manager

I'm not sure if this is a bug, but as the update-manager told me to report this as a bug, I'll post this here, sorry if I'm in a wrong place.

So here we go:
First I ran update-manager -c, it worked fine, until eventually it froze.

Then I restarted the x-server by pressing ctrl+alt+backspace. I wasn't able to log in, so I pressed ctrl+alt+f1 and loged in from there.

I dried to fix the situation according to
http://www.ubuntuforums.org/showthread.php?t=186672

I drove in

sudo dpkg --configure -a

it gave some errors.
I removed the broken packages via

sudo aptitude -f remove

And then I did

sudo dpkg --configure -a

with no errors.

After that I rebooted the x-server and was able to log in. Then I run
sudo aptitude update
sudo aptitude upgrade
sudo aptitude dist-upgrade

and rebooted,
then I noticed that update-manager was missing from my installation, I installed it and started it.
It said that I need to do a dist-upgrade, which I did.
There where ~50 packages yet to install.

Package-manager gave an error message like this (translated from finnish and in a shortened form):

Acute error happened!
Make a bug report including files /var/log/dist-upgrade/main.log & apt.log
The update will be terminated.

And then a punch of some logs on the error message:

Traceback (most recent call last):

  File "/usr/bin/update-manager", line 79, in ?
    if not controler.doDistUpgrade():

  File "/usr/lib/python2.4/site-packages/DistUpgrade/DistUpgradeControler.py", line 456, in doDistUpgrade
    res = self.cache.commit(fprogress,iprogress)

  File "/usr/lib/python2.4/site-packages/apt/cache.py", line 204, in commit
    res = self.installArchives(pm, installProgress)

  File "/usr/lib/python2.4/site-packages/apt/cache.py", line 179, in installArchives
    res = installProgress.run(pm)

  File "/usr/lib/python2.4/site-packages/apt/progress.py", line 212, in run
    res = self.waitChild()

  File "/usr/lib/python2.4/site-packages/DistUpgrade/DistUpgradeViewGtk.py", line 263, in waitChild
    self.updateInterface()

  File "/usr/lib/python2.4/site-packages/DistUpgrade/DistUpgradeViewGtk.py", line 270, in updateInterface
    InstallProgress.updateInterface(self)

  File "/usr/lib/python2.4/site-packages/apt/progress.py", line 178, in updateInterface
    (status, pkg, percent, status_str) = string.split(s, ":")

ValueError: too many values to unpack

Here is my /var/log/dist-upgrade/apt.log
[...]
2006-10-26 21:43:28,035 ERROR got ValueError from InstallPrgoress.updateInterface. Line was 'pmstatus:libc6:0.453882:libc6:n asetusten säätö
' (too many values to unpack)
2006-10-26 21:43:28,060 ERROR got ValueError from InstallPrgoress.updateInterface. Line was 'pmstatus:libc6:0.453882:libc6:n asetusten säätö
' (too many values to unpack)

My system is still able to reboot and everything seems to be working fine, except the performance may be a little lover as before.
I really would appreciate some help.

niko-humhum (nikohuma)
description: updated
description: updated
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

This bug shows under rare circumstances when dpkg sends unexpected error lines. I will attach a debdiff with a fix and the fix will be uploaded to the archive soon.

Changed in update-manager:
assignee: nobody → mvo
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

I would appreciate if you could test the fixed binary here: http://people.ubuntu.com/~mvo/apt/python-apt/python-apt_0.6.19ubuntu9.1_i386.deb

Oh, and what does "libc6:n asetusten säätö" translate to in english?

thanks,
 Michael

Changed in update-manager:
status: Confirmed → Needs Info
Changed in python-apt:
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :
Changed in python-apt:
assignee: nobody → mvo
status: Confirmed → Needs Info
Changed in update-manager:
status: Needs Info → Confirmed
Revision history for this message
niko-humhum (nikohuma) wrote :

Ok, I'm a bit newbie, so I don't know what am I supposed to do with the package. I installed it and it installed fine, but I don't know what to do next. When I run update-manager it tells me that my system is up to date, although the distribution upgrade clearly didn't complete last time.

asetusten säätö could be translated as adjustment of settings.

Thanks for your fast reply, great!
t. Niko

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote : Re: Dapper upgrade to Edgy: Frozen dist-upgrade and failed second run (in finish locales

There are a lot of unfilled dependencies when trying to install that deb file on a dapper. If I force the installation, starting update-manager results in:
Traceback (most recent call last):
  File "/usr/bin/update-manager", line 32, in ?
    from UpdateManager.UpdateManager import UpdateManager
  File "/usr/lib/python2.4/site-packages/UpdateManager/UpdateManager.py", line 36, in ?
    import apt
ImportError: No module named apt

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

I applied the diff to dapper's python-apt source, built and installed new debs.

Now the update-manager seems to handle the upgrade to 6.10 just fine! Can the patched version be supplied with update-manager's distribution upgrade tool that is always downloaded when starting the upgrade, or should the patched version be pushed into dapper-updates?

I bet this should be fixed, in case it affects all the users of some locale.. and perhaps more. Was the problem just because of the non-ascii letters?

Changed in python-apt:
status: Needs Info → Confirmed
Revision history for this message
Ilmari Vacklin (wolverian) wrote :

I think the problem is caused by the ":" character in some lines of the Finnish localisation. Parsing text is hard! (So use a serialisation format.)

Michael Vogt (mvo)
Changed in update-manager:
importance: Medium → High
Revision history for this message
Michael Vogt (mvo) wrote :

The fix can be verified by trying a dapper upgrade from dapper->edgy with finish locales.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote : Re: Dapper upgrade to Edgy: Frozen dist-upgrade and failed second run (in Finnish locales)

Confirming both that the update now works with the newest language packs, and that it also works with the proposed fix (with which the update would work regardless of translations used etc.).

Michael Vogt (mvo)
Changed in python-apt:
assignee: nobody → mvo
importance: Undecided → High
status: Unconfirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

http://librarian.launchpad.net/5767420/python-apt_0.6.16.2ubuntu9.debdiff needs to use version ubuntu8.1 because:

python-apt | 0.6.16.2ubuntu9 | edgy | all

(apparently an ASBA that was not cleaned up). But LP has a version record anyway, so we cannot use this version number any more.

What's the feisty status? Is the edgy fix for python-apt necessary as well?

Michael Vogt (mvo)
Changed in python-apt:
status: Confirmed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

http://librarian.launchpad.net/4937798/python-apt_0.6.19ubuntu9.1.debdiff needs to be uploaded to edgy-proposed, not edgy-updates.

Revision history for this message
Martin Pitt (pitti) wrote :

http://librarian.launchpad.net/4937800/dist-upgrader-fix-68553.diff: The patch mangled white space: is the self.read = "" supposed to be in the except: block?

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

This problem needs to be fixed in both dapper and edgy. I added the according tasks. We could work around the problem in edgy by fixing it in the upgrader for edgy->feisty upgrades, but a regular fix would be much prefered.

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

This is fixed in the feisty version of the dist-upgrader (it will protect against ValueErrors from python-apt.

Changed in update-manager:
status: Confirmed → Fix Released
Revision history for this message
Michael Vogt (mvo) wrote :

This is fixed in the edgy version of the update-manager already

Changed in update-manager:
assignee: nobody → mvo
importance: Undecided → High
status: Unconfirmed → Fix Released
Revision history for this message
Michael Vogt (mvo) wrote :

It is enough if we have a fixed python-apt in dapper, the release-upgrader in dapper will work fine then.

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

http://librarian.launchpad.net/5933961/python-apt_0.6.16.2ubuntu8.1.debdiff approved for dapper-proposed.

http://librarian.launchpad.net/4937798/python-apt_0.6.19ubuntu9.1.debdiff approved for edgy-proposed, if you change s/edgy-updates/edgy-proposed/ in changelog.

Changed in python-apt:
assignee: mvo → nobody
Michael Vogt (mvo)
Changed in python-apt:
importance: Undecided → High
assignee: nobody → mvo
Revision history for this message
Martin Pitt (pitti) wrote :

 python-apt (0.6.16.2ubuntu8.1) dapper-proposed; urgency=low
 .
   * protect against not-parsable strings send from dpkg (lp: 68553)

accepted into dapper-proposed, please go ahead with QA testing.

Changed in python-apt:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

 python-apt (0.6.19ubuntu9.1) edgy-proposed; urgency=low
 .
   * protect against not-parsable strings send from dpkg (lp: 68553)

Accepted into edgy-proposed, please go ahead with QA testing.

Changed in python-apt:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Should be verified for the dapper point release.

description: updated
Changed in python-apt:
assignee: mvo → brian-murray
Revision history for this message
Michael Vogt (mvo) wrote :

Here are the instructions for verfication:

* install fresh dapper
* use language-selector to install finish loclaes
* logout
* login with finish locales again
* run update-manager -c
* wait for the upgade to hang

Same steps as above, but after the installation of dapper, install python-apt from dapper-proposed and see the update continue.

Revision history for this message
Brian Murray (brian-murray) wrote :

I have tried to reproduce the crash 2 times using the 6.06.1 Desktop Edition VMware image and it has failed to reproduce the crash both times. I launched 'update-manager -c' in a terminal. I had python-apt version 06.16.2ubuntu8 and update-manager version 0.42.2ubuntu22.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

I think the problem was also fixed in translations, so it doesn't show up anymore. I tested with the 2006-10-27 patch back then (my comment at 2006-10-28), and it fixed the problem back then. Ie. before it 6.06 -> 6.10 failed, with it it didn't. The patch from 2006-10-27 and the dapper-proposed patch 0.6.16.2ubuntu8.1 are identical.

Revision history for this message
Martin Pitt (pitti) wrote :

Considering as verification-done after Timo's tests and Brian's successful test upgrades.

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to dapper-updates.

Changed in python-apt:
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to edgy-updates.

Changed in python-apt:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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