Project

General

Profile

Actions

Idea #21446

open

Stop using `apt-key add` everywhere

Added by Brett Smith 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assigned To:
Category:
Deployment
Target version:
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.

Actions #1

Updated by Brett Smith 3 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.

Actions #2

Updated by Brett Smith 3 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

Also available in: Atom PDF