apt-key output should not be parsed (stdout is not a terminal)

Bug #1605861 reported by dino99
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Got that warning logged after registering two ppas and updating them:

com.ubuntu.SoftwareProperties[2113]: gpg: keyring `/tmp/tmp58u008j4/secring.gpg' created
com.ubuntu.SoftwareProperties[2113]: gpg: keyring `/tmp/tmp58u008j4/pubring.gpg' created
com.ubuntu.SoftwareProperties[2113]: gpg: requesting key F59EAE4D from hkp server keyserver.ubuntu.com
com.ubuntu.SoftwareProperties[2113]: gpg: /tmp/tmp58u008j4/trustdb.gpg: trustdb created
com.ubuntu.SoftwareProperties[2113]: gpg: key F59EAE4D: public key "Launchpad PPA for NoobsLab" imported
com.ubuntu.SoftwareProperties[2113]: gpg: no ultimately trusted keys found
com.ubuntu.SoftwareProperties[2113]: gpg: Total number processed: 1
com.ubuntu.SoftwareProperties[2113]: gpg: imported: 1 (RSA: 1)
com.ubuntu.SoftwareProperties[2113]: Warning: apt-key output should not be parsed (stdout is not a terminal)
com.ubuntu.SoftwareProperties[2113]: OK
com.ubuntu.SoftwareProperties[2113]: gpg: keyring `/tmp/tmpjwlat63e/secring.gpg' created
com.ubuntu.SoftwareProperties[2113]: gpg: keyring `/tmp/tmpjwlat63e/pubring.gpg' created
com.ubuntu.SoftwareProperties[2113]: gpg: requesting key E2D0EBE9 from hkp server keyserver.ubuntu.com
com.ubuntu.SoftwareProperties[2113]: gpg: /tmp/tmpjwlat63e/trustdb.gpg: trustdb created
com.ubuntu.SoftwareProperties[2113]: gpg: key E2D0EBE9: public key "Launchpad PPA for RAVEfinity Project" imported
com.ubuntu.SoftwareProperties[2113]: gpg: Total number processed: 1
com.ubuntu.SoftwareProperties[2113]: gpg: imported: 1 (RSA: 1)
com.ubuntu.SoftwareProperties[2113]: Warning: apt-key output should not be parsed (stdout is not a terminal)
com.ubuntu.SoftwareProperties[2113]: OK

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: software-properties-gtk 0.96.24.1
ProcVersionSignature: Ubuntu 4.6.0-9.11-generic 4.6.4
Uname: Linux 4.6.0-9-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_modeset nvidia
ApportVersion: 2.20.2-0ubuntu1
Architecture: amd64
CurrentDesktop: GNOME
Date: Sat Jul 23 13:37:35 2016
PackageArchitecture: all
SourcePackage: software-properties
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
dino99 (9d9) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in software-properties (Ubuntu):
status: New → Confirmed
Revision history for this message
era (era) wrote :

apt-key was changed in Debian Stretch to warn when you attempt to do something like

    apt-key add <file >/dev/null

or the equivalent pipeline. The manual page says

COMMANDS
       add filename
(...)
           Note: Instead of using this command a keyring should be placed
directly in the /etc/apt/trusted.gpg.d/ directory with a descriptive name
and either "gpg" or "asc" as file extension.

So, the right thing to do is to copy the file to the right path instead of
calling apt-key add with it.

^ I got the above snippet from the very tangentially related https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851774

Revision history for this message
dino99 (9d9) wrote :

Yakkety is now unsupported, and that issue is no more seen with recent releases.

Changed in software-properties (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.