Public bug reported:

Binary package hint: update-manager

sudo update-manager will crash and show the error messages below with
zh_TW.UTF-8 locale

Traceback (most recent call last):
File "/usr/bin/update-manager", line 71, in ?
app.main(options)
File "/usr/lib/python2.4/site-packages/UpdateManager/UpdateManager.py", line 
749, in main
self.fillstore()
File "/usr/lib/python2.4/site-packages/UpdateManager/UpdateManager.py", line 
618, in fillstore
self.update_count()
File "/usr/lib/python2.4/site-packages/UpdateManager/UpdateManager.py", line 
476, in update_count
len(self.store)) % \
TypeError: not all arguments converted during string formatting


the patch below fix the problem ..
--- /usr/lib/python2.4/site-packages/UpdateManager/UpdateManager.py.orig        
2006-06-16 23:31:37.000000000 +0800
+++ /usr/lib/python2.4/site-packages/UpdateManager/UpdateManager.py     
2006-06-16 23:32:43.000000000 +0800
@@ -471,10 +471,9 @@ class UpdateManager(SimpleGladeApp):
           self.textview_descr.get_buffer().set_text("")
       else:
           text_header = "<big><b>" + \
-                        gettext.ngettext("You can install %s update",
-                                         "You can install %s updates",
-                                         len(self.store)) % \
-                                        len(self.store) + "</b></big>"
+                        gettext.ngettext("You can install %s update" % 
len(self.store),
+                                         "You can install %s updates" % 
len(self.store),
+                                         len(self.store)) + "</b></big>"
           text_download = _("Download size: %s") % 
apt_pkg.SizeToStr(self.dl_size)
           self.notebook_details.set_sensitive(True)
           self.treeview_update.set_sensitive(True)

** Affects: update-manager (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

-- 
update-manager run failed on dapper
https://launchpad.net/bugs/50089

--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to