Ubuntu

Quick Tip: Fix Apt GPG error NO_PUBKEY

In the Ubuntu (Debian) packaging world of Apt, the use of apt-key has been deprecated (other than apt-key del to remove keys).

I’ve run into errors like the following periodically, and have had to spend more time than I should reminding myself of how to fix the issue:

1
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://apt.releases.hashicorp.com jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DA418C88A3219F7B
Wednesday, February 22, 2023