Skip to content

Instantly share code, notes, and snippets.

@jc00ke
Created May 25, 2022 19:34
Show Gist options
  • Save jc00ke/078cbe23ac56e76ee0a8ee64523b62dc to your computer and use it in GitHub Desktop.
Save jc00ke/078cbe23ac56e76ee0a8ee64523b62dc to your computer and use it in GitHub Desktop.
Migrate apt-key to keyrings file
> sudo apt-key list
# find last 8 of public signature, for example ABCD EFGH for jc00ke
> sudo apt-key export ABCDEFGH | sudo gpg --dearmour -o /usr/share/keyrings/jc00ke.gpg
> sudo -H gedit /etc/apt/sources.list.d/jc00ke.list
# add [arch=amd64 signed-by=/usr/share/keyrings/jc00ke.gpg] after deb
> sudo apt update
> sudo apt-key del ABCDEFGH
# summarized from https://askubuntu.com/a/1403964
@jc00ke
Copy link
Author

jc00ke commented May 23, 2024

> curl -fsSL https://cli-assets.heroku.com/channels/stable/apt/release.key | gpg --dearmor | sudo tee /us
r/share/keyrings/heroku.gpg

from this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment