Skip to content

apt signing keys should be .pgp files (not .gpg) #2087

Description

@JedMeister

In Debian Trixie the signing key files used by apt are not actually .gpg files. FWIW gpg can still generate the key files from .asc files but a specific gpg option must be used as the default will generate a key file that apt can not use.

To generate or update a compatible pgp keyring in a non-standard location (e.g. /usr/share/keyrings/my_keyring.pgp) and add a key (can be asc or gpg - asc in example below):

gpg --no-default-keyring \
    --keyring gnupg-ring:"/usr/share/keyrings/my_keyring.pgp" \
    --import "/path/to/new/public/keyfile.asc"

The common bootstrap_apt conf script in the 19.x branch is already building the correct key files, however the files still have a .gpg file extension.

Somewhat related to the discussion within this Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128883

Tagged as a 'wishlist' feature as this is related to consistency with Debian rather than a "real" bug.

Activity

  1. added this to the 19.0 milestone on Mar 10, 2026
  2. added
    common
    on Mar 10, 2026
  3. added
    turnkey-keys
    on Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    commonfeatureturnkey-keyswishlist

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions