package python3-apport 2.14.1-0ubuntu3.18 failed to install/upgrade: Paket ist in einem sehr schlechten inkonsistenten Zustand - Sie sollten es nochmal installieren, bevor Sie die Konfiguration versuchen.

Bug #1532548 reported by Andreas Rakowsky
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Low
Unassigned
Trusty
In Progress
Low
Brian Murray

Bug Description

[Impact]
------
The general Ubuntu apport hook can receive a Traceback if DpkgTerminalLog is empty. While its a minor issue it results in extra attachments being sent to Launchpad and should be sorted out.

This was fixed in Xenial.

[Test Case]
-----------
1) Install apport
2) cd /usr/share/apport/general-hooks
3) Run the following
(trusty-amd64)root@impulse:/usr/share/apport/general-hooks# python3
Python 3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import apport
>>> import ubuntu
>>> report = apport.Report()
>>> report['DpkgTerminalLog'] = ''
>>> ubuntu.trim_dpkg_log(report)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/share/apport/general-hooks/ubuntu.py", line 437, in trim_dpkg_log
    if isinstance(lines[0], str):
IndexError: list index out of range

With the version of apport from -proposed one will no longer receive a Traceback.

[Regression Potential]
None as we just return if lines is empty.

ProblemType: PackageDistroRelease: Ubuntu 14.04
Package: python3-apport 2.14.1-0ubuntu3.18
ProcVersionSignature: Ubuntu 3.13.0-74.118-generic 3.13.11-ckt30
Uname: Linux 3.13.0-74-generic i686
ApportLog:

ApportVersion: 2.14.1-0ubuntu3.18
Architecture: i386
Date: Sun Jan 10 13:49:13 2016
ErrorMessage: Paket ist in einem sehr schlechten inkonsistenten Zustand - Sie sollten es nochmal installieren, bevor Sie die Konfiguration versuchen.
InstallationDate: Installed on 2012-02-02 (1437 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.17.5ubuntu5.5
 apt 1.0.1ubuntu2.10SourcePackage: apport
Title: package python3-apport 2.14.1-0ubuntu3.18 failed to install/upgrade: Paket ist in einem sehr schlechten inkonsistenten Zustand - Sie sollten es nochmal installieren, bevor Sie die Konfiguration versuchen.
UpgradeStatus: Upgraded to trusty on 2014-10-04 (462 days ago)

Revision history for this message
Andreas Rakowsky (andreas-rakowsky) wrote :
tags: added: apport-hook-error
description: updated
Changed in apport (Ubuntu):
status: New → Fix Released
importance: Undecided → Low
Changed in apport (Ubuntu Trusty):
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Brian Murray (brian-murray)
status: Triaged → In Progress
Changed in apport (Ubuntu):
milestone: none → ubuntu-17.04
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.