[Bug 1446537] Re: apport hook fails in add_info with TypeError: 'str' does not support the buffer interface

Martin Pitt martin.pitt at ubuntu.com
Tue May 17 11:02:40 UTC 2016

Fixed in http://bazaar.launchpad.net/~apport-
hackers/apport/trunk/revision/3081 . This now reverts back to the
pre-2.15.2 behaviour of returing str, unless the value is not UTF-8.
Some package hooks might get confused by this, so we should not SRU this
right away. Or at least we need to audit the usage of
attach_root_command_outputs() that its results are not assumed to be

** Changed in: apport (Ubuntu)
       Status: Triaged => Fix Committed

You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.

  apport hook fails in add_info with TypeError: 'str' does not support
  the buffer interface

Status in apport package in Ubuntu:
  Fix Committed

Bug description:
  on vivid

  ⟫ ubuntu-bug ubiquity
  dpkg-query: aucun paquet ne correspond à ubiquity
  ERROR: hook /usr/share/apport/package-hooks/source_ubiquity.py crashed:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
      symb['add_info'](report, ui)
    File "/usr/share/apport/package-hooks/source_ubiquity.py", line 61, in add_info
      if 'Buffer I/O error on device' in syslog:
  TypeError: 'str' does not support the buffer interface

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: ubiquity (not installed)
  ProcVersionSignature: Ubuntu 3.19.0-14.14-generic 3.19.3
  Uname: Linux 3.19.0-14-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Tue Apr 21 10:15:56 2015
  InstallationDate: Installed on 2013-09-03 (594 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902)
  SourcePackage: ubiquity
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:

More information about the foundations-bugs mailing list