ubuntu software center not compatible with elementary-lsb

Bug #965879 reported by Brendan William
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
elementary OS
Fix Released
Critical
Sergey "Shnatsel" Davidoff

Bug Description

During sudo apt-get dist-upgrade, I got this message with software-center:

Setting up software-center (5.1.13.2) ...
ERROR:root:DebFileApplication import
Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/db/__init__.py", line 3, in <module>
    from debfile import DebFileApplication
  File "/usr/share/software-center/softwarecenter/db/debfile.py", line 25, in <module>
    from softwarecenter.db.application import Application, AppDetails
  File "/usr/share/software-center/softwarecenter/db/application.py", line 28, in <module>
    from softwarecenter.backend.channel import is_channel_available
  File "/usr/share/software-center/softwarecenter/backend/channel.py", line 25, in <module>
    from softwarecenter.distro import get_distro
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 194, in <module>
    distro_instance = _get_distro()
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 171, in _get_distro
    distro_class = getattr(module, distro_id)
AttributeError: 'module' object has no attribute 'elementary'
Traceback (most recent call last):
  File "/usr/sbin/update-software-center", line 38, in <module>
    from softwarecenter.db.update import rebuild_database
  File "/usr/share/software-center/softwarecenter/db/update.py", line 33, in <module>
    from softwarecenter.distro import get_distro
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 194, in <module>
    distro_instance = _get_distro()
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 171, in _get_distro
    distro_class = getattr(module, distro_id)
AttributeError: 'module' object has no attribute 'elementary'

This happened to me when I was using Joli OS and Linux Mint. Maybe it's bacause the lsb-release file says elementary instead of ubuntu.

Revision history for this message
Brendan William (bwilliam) wrote :
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

The file is changed upstream frequently, so we'll have to set up an OS patch. I'll take care of that. Thanks for the fix!

Changed in elementaryos:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Sergey "Shnatsel" Davidoff (shnatsel)
Changed in elementaryos:
milestone: none → luna-beta1
Changed in elementaryos:
status: In Progress → Fix Committed
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Fails to build in PPA for some mysterious reason.

Changed in elementaryos:
status: Fix Committed → In Progress
Revision history for this message
Ivo Nunes (ivonunes) wrote :

Should be fixed now.

Changed in elementaryos:
status: In Progress → Fix Committed
Ivo Nunes (ivonunes)
Changed in elementaryos:
status: Fix Committed → Fix Released
Revision history for this message
Christopher (cdhornb) wrote :

Still happening. I'm getting the same error

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.