Crashing upgrade procedure

Bug #224294 reported by Roman M. Tuz
6
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Medium
Michael Vogt
Hardy
Fix Released
Medium
Michael Vogt

Bug Description

Binary package hint: update-manager

TEST CASE:
1. install gutsy
2. switch to Ukrainian as default langauge
3. run update-manager click on "upgrade"
4. watch it crash

5. run update-manager --proposed
6. confirm that it does not crash and show the expected "upgrade" dialog

Hello!
I'm using "sudo do-release-upgrade -m desktop" for upgrading. But I get error:

Hit http://ubuntu.intergenia.de hardy-backports/main Sources
Hit http://ubuntu.intergenia.de hardy-backports/multiverse Sources
Hit http://ubuntu.intergenia.de hardy-backports/restricted Sources
Done downloading

Перевірка менеджера пакунків
Reading package lists: Done
Reading state information: Done
Reading state information: Done
Reading state information: Done

Прийняття змін...

Виникла невиправна помилка

Please report this as a bug and include the files
/var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in
your report. The upgrade aborts now.
Your original sources.list was saved in
/etc/apt/sources.list.distUpgrade.

Traceback (most recent call last):

File "/tmp/tmpXilql0/hardy", line 60, in <module>
app.run()

File "/tmp/tmpXilql0/DistUpgradeController.py", line 1550, in run
self.fullUpgrade()

File "/tmp/tmpXilql0/DistUpgradeController.py", line 1513, in
fullUpgrade
if not self.askDistUpgrade():

File "/tmp/tmpXilql0/DistUpgradeController.py", line 818, in
askDistUpgrade
self.cache.requiredDownload)

File "/tmp/tmpXilql0/DistUpgradeViewText.py", line 167, in
confirmChanges
DistUpgradeView.confirmChanges(self, summary, changes, downloadSize,
actions)

File "/tmp/tmpXilql0/DistUpgradeView.py", line 200, in confirmChanges
pkgs_remove) % pkgs_remove

TypeError: not all arguments converted during string formatting

I include compressed logfiles: /var/log/dist-upgrade/apt.log & /var/log/dist-upgrade/main.log

Thanks.
P.S. Sorry for my English, I'm Ukrainian

Revision history for this message
Roman M. Tuz (tuzr) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

This is a bug in the uk.po translation file. I fixed it locally and it will be part of the next upload.

Changed in update-manager:
assignee: nobody → mvo
importance: Undecided → Medium
milestone: none → ubuntu-8.04.1
status: New → Fix Committed
description: updated
Revision history for this message
Michael Vogt (mvo) wrote :

Here is the diff with the fix (for review by ubuntu-sru):

=== modified file 'po/uk.po'
--- po/uk.po 2008-04-02 08:44:34 +0000
+++ po/uk.po 2008-04-30 10:47:55 +0000
@@ -849,7 +849,7 @@
 msgid_plural "%d packages are going to be removed."
 msgstr[0] ""
 "Copy text \t\r\n"
-"1 пакет буде видалено."
+"%d пакет буде видалено."
 msgstr[1] "%d пакети буде видалено."
 msgstr[2] "%d пакетів буде видалено."

@@ -857,7 +857,7 @@
 #, python-format
 msgid "%d new package is going to be installed."
 msgid_plural "%d new packages are going to be installed."
-msgstr[0] "Буде встановлено 1 новий пакет."
+msgstr[0] "Буде встановлено %d новий пакет."
 msgstr[1] "Буде встановлено %d нових пекети."
 msgstr[2] "Буде встановлено %d нових пекетів."

@@ -865,7 +865,7 @@
 #, python-format
 msgid "%d package is going to be upgraded."
 msgid_plural "%d packages are going to be upgraded."
-msgstr[0] "Буде поновлено 1 пакет."
+msgstr[0] "Буде поновлено %d пакет."
 msgstr[1] "Буде поновлено %d пакети."
 msgstr[2] "Буде поновлено %d пакетів."

@@ -1610,7 +1610,7 @@

 #~ msgid "%d package is going to be downgraded."
 #~ msgid_plural "%d packages are going to be downgraded."
-#~ msgstr[0] "Буде поновлено 1 пакет."
+#~ msgstr[0] "Буде поновлено %d пакет."
 #~ msgstr[1] "Буде поновлено %d пакети."
 #~ msgstr[2] "Буде поновлено %d пакетів."

Steve Langasek (vorlon)
Changed in update-manager:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Steve Langasek (vorlon) wrote :

Accepted into -proposed, please test and give feedback here

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

Although not all fixed bugs have been verified, four tests from Brian showed that update-manager is still able to upgrade from dapper and gutsy, and fixed some bugs. Due to the urgency of some bugs I have copied this to hardy-updates now.

Changed in update-manager:
status: Fix Committed → Fix Released
Michael Vogt (mvo)
Changed in update-manager:
assignee: nobody → mvo
status: Triaged → 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.