Apt-get Update GPG Key Errors and Fix
Running sudo apt-get upgrade, I started getting this error:
1 | Reading package lists... Done |
1 | W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 313D312748A22A95 |
1 | W: You may want to run apt-get update to correct these problems |
Ah ha! But apt-get update is the command causing this problem.
The solution is to import this key from the gpg servers; I don’t know why this isn’t done automatically, but here is it:
1 | sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 313D312748A22A95; gpg --export --armor 313D312748A22A95 | sudo apt-key add - |
Resulting in:
1 2 3 4 5 6 | Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --recv-keys --keyserver keyserver.ubuntu.com 313D312748A22A95 gpg: requesting key 48A22A95 from hkp server keyserver.ubuntu.com gpg: key 48A22A95: public key "Launchpad PPA for Filip Brcic" imported gpg: Total number processed: 1 gpg: unchanged: 1 OK |
Congrats! sudo apt-get update now works properly!
Short URL: http://sysbash.com/h

Pingback: Dave Drager