software-center crashed with ImportError in _get_distro(): No module named "Ubuntu"

Bug #982370 reported by alberto albanese
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

software-center crash on start

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: software-center 5.1.14.2
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu2
Architecture: amd64
CrashCounter: 1
Date: Sun Apr 15 16:36:40 2012
ExecutablePath: /usr/share/software-center/software-center
InstallationMedia: Ubuntu 12.04 precise - Release amd64 (20120408)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-center
ProcEnviron:
 PATH=(custom, no user)
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/software-center']
SoftwareCenterLog:

SourcePackage: software-center
Title: software-center crashed with ImportError in _get_distro(): No module named "Ubuntu"
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
alberto albanese (albertoalbanese) wrote :
security vulnerability: no → yes
tags: removed: need-duplicate-check
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

I can not reproduce this crash. Does it happen all the time for you? When it happend, was there anything special going on with the system (like a release upgrade or a normal upgrade)?

security vulnerability: yes → no
visibility: private → public
Changed in software-center (Ubuntu):
status: New → Incomplete
Revision history for this message
YunQiang Su (wzssyqa) wrote :

The simliar problem on Derivative version of Ubuntu if this distribution modified /etc/lsb-release.

Software center should import module Ubuntu fallback if import DerivativeVersion failed.

Changed in software-center (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

YunQiang Su, I tested based on your comment and got a different traceback, so I reported it as bug 1020038.

Changed in software-center (Ubuntu):
importance: Medium → Undecided
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for software-center (Ubuntu) because there has been no activity for 60 days.]

Changed in software-center (Ubuntu):
status: Incomplete → Expired
Revision history for this message
paul (phaenze) wrote :

I would like to see this bug opened up again. It affects both 12.04 and 12.10. It can be easily reproduced by putting Ubuntu in quotes in /etc/lsb-release, i.e. DISTRIB_ID="Ubuntu" rather than DISTRIB_ID=Ubuntu. Once I changed the DISTRIB_ID to Ubuntu (without quotes) the problem went away.
Since other values in /etc/lsb-release accept quotes (DISTRIB_DESCRIPTION), I would suggest that the values should be read correctly regardless of whether there are quotation marks or not. This would lead to a consistent format in /etc/lsb-release.
Thanks.

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

<mvo_> ...should be trivial, but would of course be nicer if it would actually be handled correctly by lsb_release (which is the module that USC is using to parse this)
<mvo_> mpt: I haven't verified if its valid or not, but if he claims it is, I'm fine with distro.strip('"''") (which is probably all that is needed)

Changed in software-center (Ubuntu):
status: Expired → New
lupi (nicorizzo306)
Changed in software-center (Ubuntu):
status: New → Confirmed
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.