Crashes on launch if /etc/lsb-release is missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
software-center trunk r3054, Ubuntu 12.04
1. sudo mv /etc/lsb-release /etc/lsb-
2. software-center
3. sudo mv /etc/lsb-release /etc/lsb-
What happens:
2. ------------
ERROR:root:
Traceback (most recent call last):
File "/home/
from debfile import DebFileApplication, DebFileOpenError
File "/home/
from softwarecenter.
File "/home/
import softwarecenter.
File "/home/
distro_instance = _get_distro()
File "/home/
distro_class = getattr(module, distro_id)
AttributeError: 'module' object has no attribute 'debian'
INFO:softwarece
2012-07-02 11:46:49,094 - softwarecenter - INFO - Using data (UI, xapian) from current dir
Traceback (most recent call last):
File "./software-
from softwarecenter.
File "/home/
from softwarecenter.
File "/home/
import softwarecenter.
File "/home/
distro_instance = _get_distro()
File "/home/
distro_class = getattr(module, distro_id)
AttributeError: 'module' object has no attribute 'debian'
------------
Fixing this bug may also fix bug 982370.
Setting this to Confirmed, as I can reproduce using the steps described above, but set the Priority to Low, as this should not be a common issue on the distributions software-center currently works on, as lsb-release should exist by default (I thinkg the use rmight have some more serious trouble than software-center doesn't start if it does not exist) wiki.ubuntu. com/BugSquad
---
Ubuntu Bug Squad volunteer triager
http://