LLI Wiki — My Digital Knowledge Base

Arch Linux: fetch a missing or unknown GPG key

Two gpg commands to fetch a missing public key: WKD lookup by e-mail and receive by key ID.

On Arch Linux, a "GPG key not found or unknown" error appears when a signature cannot be verified because the public key is missing from the keyring. Two commands can fetch it.

gpg --auto-key-locate nodefault,wkd --locate-keys user@example.com
sudo gpg --recv-key <KEY_ID>

Check the received key's fingerprint against a trusted source before trusting it.

Mastodon LLIMastodon SocialFosstodon