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:
|
|
A more thorough guide has been written, but for quick reference the key steps are:
- Add the GPG key into the recommended directory:
/etc/apt/trusted.gpg.d/<filename>.(gpg|asc)
- EDIT the apt sources file (either
/etc/apt/sources.list
, or/etc/apt/sources.list.d/<filename>
), and set the signed-by clause to use the new file:deb [signed-by=/etc/apt/trusted.gpg.d/<filename>.(gpg|asc)] https://apt.releases.hashicorp.com jammy main