Actions
Idea #21446
openStop using `apt-key add` everywhere
Start date:
Due date:
Story points:
-
Description
Quoting the man page:
apt-key(8) will last be available in Debian 11 and Ubuntu 22.04.
Note: Instead of using [
apt-key add
] 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.
Updated by Brett Smith 11 months ago
- Target version changed from Development 2024-02-14 sprint to Future
I suddenly had the thought "Wait, if apt-key is gone from Debian 12, how am I reading the man page?" It turns out the man page was overly optimistic:
$ lsb_release -d Description: Debian GNU/Linux 12 (bookworm) $ dpkg -S $(command -v apt-key apt-get) apt: /usr/bin/apt-key apt: /usr/bin/apt-get
So we should still do this as a modernization task but there's no immediate need for it.
Updated by Brett Smith 11 months ago
Confirmed apt-key is still in Ubuntu 24.04 too, at least as of this writing. https://packages.ubuntu.com/noble/amd64/apt/filelist
Actions