ubuntu-bug claims systemd is not an official package

Bug #1730736 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Invalid
High
Unassigned

Bug Description

I have just used 'env -i' to avoid the gtk dialog.
The same occurs when using gtk.

I can't file a bug against systemd because it complains:
   This is not an official Ubuntu package. Please remove any third party package and try again.

Other packages work (i tried 'cloud-initramfs-rooturl' for one).
(also note, i used 'ubuntu-bug' to file *this* bug, so not all packages are borked).

$ apt-cache policy systemd
systemd:
  Installed: 234-2ubuntu12.1
  Candidate: 234-2ubuntu12.1
  Version table:
 *** 234-2ubuntu12.1 100
        100 /var/lib/dpkg/status
     234-2ubuntu12 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

$ dpkg-query --show systemd
systemd 234-2ubuntu12.1

$ env -i HOME=$HOME ubuntu-bug systemd

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
.....ERROR: hook /usr/share/apport/package-hooks/systemd.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 198, in _run_hook
    symb['add_info'](report, ui)
TypeError: add_info() takes 1 positional argument but 2 were given

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 203, in _run_hook
    symb['add_info'](report)
  File "/usr/share/apport/package-hooks/systemd.py", line 11, in add_info
    apport.hookutils.attach_hardware(report)
  File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 265, in attach_hardware
    attach_dmi(report)
  File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 221, in attach_dmi
    value = fd.read().strip()
  File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)

*** Problem in systemd

The problem cannot be reported:

This is not an official Ubuntu package. Please remove any third party package and try again.

Press any key to continue...
No pending crash reports. Try --help for more information.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: apport 2.20.7-0ubuntu3.1
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
ApportLog:

ApportVersion: 2.20.7-0ubuntu3.1
Architecture: amd64
CrashReports: 640:1000:116:17662:2017-10-31 09:46:03.727057218 -0400:2017-10-31 09:46:04.727057218 -0400:/var/crash/_usr_bin_tox.1000.crash
CurrentDesktop: ubuntu:GNOME
Date: Tue Nov 7 14:22:04 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-07-23 (838 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150722.1)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Scott Moser (smoser) wrote :
description: updated
Changed in apport (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
dino99 (9d9) wrote :

This should work now with the latest version:

apport (2.20.7-0ubuntu4) bionic; urgency=medium

  * etc/apport/crashdb.conf: Enable Launchpad crash reports for bionic.
  * bin/apport-cli: read until <enter> instead of a single character when # of
    apport options is non-unique with a single character. Thanks to Chad Smith
    for the patch. (LP: #1722564)

 -- Brian Murray <email address hidden> Wed, 08 Nov 2017 12:18:04 -0800

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

apport uses the dpkg database to determine if a package is official. In your description we can see that apt does not know where the package was installed from.

$ apt-cache policy systemd
systemd:
  Installed: 234-2ubuntu12.1
  Candidate: 234-2ubuntu12.1
  Version table:
 *** 234-2ubuntu12.1 100
        100 /var/lib/dpkg/status
     234-2ubuntu12 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64

This is why apport would not file a bug and said that it was not an official package.

Changed in apport (Ubuntu):
status: Confirmed → Invalid
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.