How to fix missing GPG keys?
Posted
by
Fih
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Fih
Published on 2012-04-28T22:26:35Z
Indexed on
2012/09/03
15:51 UTC
Read the original article
Hit count: 257
I have just installed Ubuntu 12.04 and I added some repo and when apt-get update i got missing gpg key. Following command seems to doesn't work for me:
apt-get update 2> /tmp/keymissing; for key in $(grep "NO_PUBKEY" /tmp/keymissing |sed "s/.*NO_PUBKEY //"); do echo -e "\nProcessing key: $key"; gpg --keyserver subkeys.pgp.net --recv $key && sudo gpg --export --armor $key | apt-key add -; done
How to fix this problem?
© Ask Ubuntu or respective owner