Skip to content

Instantly share code, notes, and snippets.

@jc00ke
Created May 25, 2022 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment