← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1892493] [NEW] apt-key is deprecated and will be removed from Debian and Ubuntu

 

Public bug reported:

Use of apt-key is deprecated and it will last be available in Debian 11
and Ubuntu 22.04, see apt-key(8).

Cloud-init uses `apt-key add`, which can be replaced by dropping the
pubkeys to be trusted in the /etc/apt/trusted.gpg.d/ directory. The
`apt-key list` and `apt-key finger` commands can be replaced by
something like:

gpg --with-fingerprint --no-default-keyring --list-keys --keyring
/etc/apt/trusted.gpg.d/key1 --keyring /etc/apt/trusted.gpg.d/key2
[--keyring ...]

which should produce the same result.

** Affects: cloud-init
     Importance: Low
         Status: Triaged

** Changed in: cloud-init
       Status: New => Triaged

** Changed in: cloud-init
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1892493

Title:
  apt-key is deprecated and will be removed from Debian and Ubuntu

Status in cloud-init:
  Triaged

Bug description:
  Use of apt-key is deprecated and it will last be available in Debian
  11 and Ubuntu 22.04, see apt-key(8).

  Cloud-init uses `apt-key add`, which can be replaced by dropping the
  pubkeys to be trusted in the /etc/apt/trusted.gpg.d/ directory. The
  `apt-key list` and `apt-key finger` commands can be replaced by
  something like:

  gpg --with-fingerprint --no-default-keyring --list-keys --keyring
  /etc/apt/trusted.gpg.d/key1 --keyring /etc/apt/trusted.gpg.d/key2
  [--keyring ...]

  which should produce the same result.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1892493/+subscriptions