Created
June 30, 2022 04:58
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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