Public bug reported:

When software-center is installed on an Ubuntu derivative (in our case,
Nexradix), update-apt-xapian-index fails.

When run, a python error indicating that "no module Nexradix is found"

When I replace lines 112-114 in /usr/share/software-
center/softwarecenter/distro/__init__.py with:

distro_id = "Ubuntu"

update-apt-xapian-index works without incident.

Based on the prior code, it appears that the current distro name is
being parsed from /etc/lsb-release, and if it doesn't find a matching
distro in the "/usr/share/software-center/softwarecenter/distro"
directory, it fails.

I assume that adding the distro in question to that directory using
Ubuntu.py as a template would likely solve this, however it remains a
bug:  update-apt-xapian-index should not rely on software-center's
distro-specific code, or at the very least, fail more gracefully with an
error message or link to documentation as to what the fix is.

** Affects: software-center (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/808455

Title:
  Software-center causes update-apt-xapian-index to fail on downstream
  distros

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/808455/+subscriptions

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

Reply via email to