Created
September 19, 2017 06:15
-
-
Save gowthamsadasivam/c6d7fea4f2edf227f27eb8a4199c38b2 to your computer and use it in GitHub Desktop.
[Ubuntu] Fix gpg resource limits and missing keys
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
### The solution is to empty the "/etc/apt/trusted.gpg.d", run "apt-get update" and then manually adding every key it blocked on to the main "/etc/apt/trusted.gpg" keyring with apt-key adv as described. | |
### FROM https://medium.com/@foxoman/ubuntu-tip-fix-gpg-resource-limits-and-missing-keys-ec7f1da4c02 | |
### TESTED ON Ubuntu 14.04.4 | |
sudo mv /etc/apt/trusted.gpg.d/ /etc/apt/trusted.gpg.d.backup | |
sudo mkdir /etc/apt/trusted.gpg.d | |
sudo chmod 755 /etc/apt/trusted.gpg.d | |
sudo apt-get update 2> /tmp/keymissing; for key in $(grep "NO_PUBKEY" /tmp/keymissing |sed "s/.*NO_PUBKEY //"); do echo -e "\nProcessing key: $key"; sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key ; done | |
# Sources: | |
# http://elementaryos.stackexchange.com/questions/96/how-to-fix-gpg-keyblock-resource-etc-apt-trusted-gpg-d-key-gpg-resource-l | |
# http://askubuntu.com/questions/127326/how-to-fix-missing-gpg-keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment