MCC fails on amd64 if medibuntu hasn't been used in the past

Bug #154985 reported by Mario Limonciello
22
Affects Status Importance Assigned to Milestone
mythbuntu-control-centre (Ubuntu)
Fix Released
High
Unassigned
Gutsy
Fix Released
High
Unassigned
Hardy
Fix Released
High
Unassigned

Bug Description

Binary package hint: mythbuntu-control-centre

If the user has never installed anything from medibuntu, their apt cache is unaware of w64codecs. This causes MCC to throw an exception and fail.

This only happens on AMD64 though because the check for w64codecs only happens on amd64. i386 machines check for w32codecs, but no problems exist there because other apt packages reference w32codecs.

Here is a sample backtrace that happens:

andy@andy-dvr:~$ mythbuntu-control-centre
Reading package lists... Done
Building dependency tree
Reading state information... Done
File "/usr/share/mythbuntu-control-centre/bin/mythbuntu-control-centre", line 46, in <module>
script = ControlCentre()
File "/usr/lib/python2.5/site-packages/MythbuntuControlCentre/core.py", line 166, in __init__
self.revert_gui()
File "/usr/lib/python2.5/site-packages/MythbuntuControlCentre/core.py", line 942, in revert_gui
self.query_system_state()
File "/usr/lib/python2.5/site-packages/MythbuntuControlCentre/core.py", line 610, in query_system_state
if self.query_installed("ubuntu-desktop"):
File "/usr/lib/python2.5/site-packages/MythbuntuControlCentre/core.py", line 544, in query_installed
return self.cache[package].CurrentVer
KeyError: 'w64codecs'

Revision history for this message
Scott Kitterman (kitterman) wrote :

Crash with a small patch, so go for it, but please remember to use a version number that won't conflict with the eventual Hardy upload.

Revision history for this message
Mario Limonciello (superm1) wrote :
Changed in mythbuntu-control-centre:
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
Mario Limonciello (superm1) wrote :

This has been uploaded to -proposed and needs to be accepted by someone in ~ubuntu-archive

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

Accepted into gutsy-proposed, please test.

Changed in mythbuntu-control-centre:
status: New → Fix Committed
Revision history for this message
Thomas Mashos (tgm4883) wrote :

I've tested this on both my Mythbuntu 64-bit frontend, as well as my 2 Gutsy 64-bit machines with MCC installed. In all instances it fixes the problem.

Changed in mythbuntu-control-centre:
importance: Undecided → High
Revision history for this message
Mario Limonciello (superm1) wrote :

mythbuntu-control-centre (0.11-0ubuntu1) hardy; urgency=low

  * Release into hardy.
  * Include fix for KeyErrors (LP: #154985)

 -- Mario Limonciello <email address hidden> Fri, 02 Nov 2007 12:21:22 -0400

Changed in mythbuntu-control-centre:
status: Fix Committed → Fix Released
Revision history for this message
laga (laga) wrote :

Hello,

I've just tested the new mythbuntu-control-centre in my 64bit Gutsy install.

I can install w64codecs just fine now and the patch doesn't seem to break anything. However, I have noticed that it is also possible to install the w32codecs on amd64. This fails here with a "Could not mark all packages" message. I guess w32codecs is not available on amd64 and should be greyed out.

Revision history for this message
Mario Limonciello (superm1) wrote :

This has received the necessary 2 +1's. Can an archive admin confirm and copy over to the appropriate pocket?

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

Copied to -udpates.

Changed in mythbuntu-control-centre:
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.