software-properties-gtk silently crashes when sourcegear repository is enabled

Bug #1090925 reported by Andrei Dziahel
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Repro:

1. Add sourcegear debian repository with `aptdcon --add-repository 'deb http://debian.sourcegear.com/ubuntu quantal main' && sudo apt-key adv --fetch-keys http://debian.sourcegear.com/SOURCEGEAR-GPG-KEY` command
2. refresh APT cache with aptdcon -c
3. run software-properties-gtk

Expected: "Software Properties" shows up

Actual behavior: software-properties-gtk crashes silently and apport prompt shows up

Disabling mentioned repository fixes this issue.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: software-properties-gtk 0.92.9
ProcVersionSignature: Ubuntu 3.5.0-20.31-generic 3.5.7.1
Uname: Linux 3.5.0-20-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
Date: Sat Dec 15 17:22:00 2012
EcryptfsInUse: Yes
MarkForUpload: True
PackageArchitecture: all
SourcePackage: software-properties
UpgradeStatus: Upgraded to quantal on 2012-11-05 (40 days ago)

Revision history for this message
Andrei Dziahel (develop7) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in software-properties (Ubuntu):
status: New → Confirmed
Revision history for this message
David (lofidevops) wrote :

I get an issue specifically with the diffmerge package (running Ubuntu 12.04) - see https://bugs.launchpad.net/ubuntu/+source/apt-xapian-index/+bug/1086351

Revision history for this message
Troy Stanger (stanger) wrote :

I spent today debugging the issue with the diffmerge package (disclaimer: I am the one that built it originally). It turns out the error was that the control file had the wrong line endings (CRLF instead of simply LF). I have fixed the issue on our end and will be rebuilding the deb.

Revision history for this message
David (lofidevops) wrote :

Thanks Troy :)

Revision history for this message
Brian Murray (brian-murray) wrote :

I think this is the relevant traceback:

Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 103, in <module>
    app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 178, in __init__
    self.init_drivers()
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 1097, in init_drivers
    self.devices = detect.system_device_drivers()
  File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 415, in system_device_drivers
    for pkg, pkginfo in system_driver_packages(apt_cache).items():
  File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 319, in system_driver_packages
    for p in packages_for_modalias(apt_cache, alias):
  File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 164, in packages_for_modalias
    cache_map = _apt_cache_modalias_map(apt_cache)
  File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 129, in _apt_cache_modalias_map
    m = package.candidate.record['Modaliases']
  File "/usr/lib/python3/dist-packages/apt/package.py", line 429, in record
    return Record(self._records.record)
  File "/usr/lib/python3/dist-packages/apt/package.py", line 186, in __init__
    self._rec = apt_pkg.TagSection(record_str)
ValueError: Unable to parse section data

Changed in software-properties (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
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.