[Bug 1532548] Re: 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.

Brian Murray brian at ubuntu.com
Fri Mar 24 19:17:27 UTC 2017


** Description changed:

- sometimes the screencontent enlarges to the right;  the adobe update is
- not running automatically;
+ [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.
  
- ProblemType: Package
- DistroRelease: Ubuntu 14.04
+ This was fixed in Xenial.
+ 
+ [Test Case]
+ -----------
+ 1) Install apport
+ 2) cd /usr/share/apport/general-hooks
+ 3) Run the following
+ (trusty-amd64)root at 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.10
- SourcePackage: apport
+  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)

** Changed in: apport (Ubuntu)
       Status: New => Fix Released

** Changed in: apport (Ubuntu)
   Importance: Undecided => Low

** Also affects: apport (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Changed in: apport (Ubuntu Trusty)
       Status: New => Triaged

** Changed in: apport (Ubuntu Trusty)
   Importance: Undecided => Low

** Changed in: apport (Ubuntu Trusty)
     Assignee: (unassigned) => Brian Murray (brian-murray)

** Changed in: apport (Ubuntu Trusty)
       Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1532548

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.

Status in apport package in Ubuntu:
  Fix Released
Status in apport source package in Trusty:
  In Progress

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 at 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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1532548/+subscriptions



More information about the foundations-bugs mailing list