Skip to content

Instantly share code, notes, and snippets.

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 ReSearchITEng/e57eedd0eeb81de13f2eccacae011814 to your computer and use it in GitHub Desktop.
Save ReSearchITEng/e57eedd0eeb81de13f2eccacae011814 to your computer and use it in GitHub Desktop.
Solving Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
## Solution for
## Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
apt-key list > tempfile
# vi tempfile and keep only the section coming from: /etc/apt/trusted.gpg and then rename it as tempfile_updated
readarray -t x < tempfile_updated
for a in "${x[@]}"; do apt-key export "$a" >/etc/apt/keyrings/"$a".gpg; done
# if all is good, probably you can now delete /etc/apt/trusted.gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment