[Bug 1692127] [NEW] duplicate signature for Package problems can be too short

Brian Murray brian at ubuntu.com
Fri May 19 22:35:21 UTC 2017


Public bug reported:

Steve brought up bug 1691983 and how it's duplicate signature is missing
information.  It contains:

package:shim-signed:1.27~16.04.1+0.9+1474479173.6c180c6-1ubuntu1
Installing for x86_64-efi platform.
Installation finished. No error reported.
Running in non-interactive mode, doing nothing.
dpkg: error processing package shim-signed (--configure):
 subprocess installed post-installation script returned error exit status 1

But is missing:

Setting up shim-signed (1.27~16.04.1+0.9+1474479173.6c180c6-1ubuntu1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
debconf: unable to initialize frontend: Passthrough
debconf: (Cannot connect to /tmp/aptdaemon-7jrqb_du/debconf.socket: Connection refused at (eval 18) line 3.)
debconf: falling back to frontend: Noninteractive

This is because of the following code in data/general-hooks/ubuntu.py:

145             PKG_MSGS = ('Authenticating', 'De-configuring', 'Examining',
146                         'Installing ', 'Preparing', 'Processing triggers', 'Purging',
147                         'Removing', 'Replaced', 'Replacing', 'Setting up',
148                         'Unpacking', 'Would remove')
149             for line in termlog.split('\n'):
150                 if line.startswith(PKG_MSGS):
151                     dupe_sig = '%s\n' % line
152                     continue

The shim-signed package prints a line starts with "Installing " and that
matches PKG_MSGS so we reset the dupe_sig because that's a message we'd
expect from a package manager.

** Affects: apport (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: apport (Ubuntu Artful)
     Importance: Undecided
         Status: New


** Tags: artful xenial yakkety zesty

** Tags added: artful xenial yakkety zesty

-- 
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/1692127

Title:
  duplicate signature for Package problems can be too short

Status in apport package in Ubuntu:
  New
Status in apport source package in Artful:
  New

Bug description:
  Steve brought up bug 1691983 and how it's duplicate signature is
  missing information.  It contains:

  package:shim-signed:1.27~16.04.1+0.9+1474479173.6c180c6-1ubuntu1
  Installing for x86_64-efi platform.
  Installation finished. No error reported.
  Running in non-interactive mode, doing nothing.
  dpkg: error processing package shim-signed (--configure):
   subprocess installed post-installation script returned error exit status 1

  But is missing:

  Setting up shim-signed (1.27~16.04.1+0.9+1474479173.6c180c6-1ubuntu1) ...
  locale: Cannot set LC_CTYPE to default locale: No such file or directory
  locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  locale: Cannot set LC_ALL to default locale: No such file or directory
  debconf: unable to initialize frontend: Passthrough
  debconf: (Cannot connect to /tmp/aptdaemon-7jrqb_du/debconf.socket: Connection refused at (eval 18) line 3.)
  debconf: falling back to frontend: Noninteractive

  This is because of the following code in data/general-hooks/ubuntu.py:

  145             PKG_MSGS = ('Authenticating', 'De-configuring', 'Examining',
  146                         'Installing ', 'Preparing', 'Processing triggers', 'Purging',
  147                         'Removing', 'Replaced', 'Replacing', 'Setting up',
  148                         'Unpacking', 'Would remove')
  149             for line in termlog.split('\n'):
  150                 if line.startswith(PKG_MSGS):
  151                     dupe_sig = '%s\n' % line
  152                     continue

  The shim-signed package prints a line starts with "Installing " and
  that matches PKG_MSGS so we reset the dupe_sig because that's a
  message we'd expect from a package manager.

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



More information about the foundations-bugs mailing list