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

** Bug watch added: Debian Bug tracker #851774
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851774

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

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1605861/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to