Thursday, June 5, 2014

GPG error fix

W: GPG error: http://cran.rstudio.com raring/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9

To fix this run

gpg --keyserver pgpkeys.mit.edu --recv-key 51716619E084DAB9 
gpg -a --export 51716619E084DAB9 | sudo apt-key add - 

This can probably be generalized to any GPG error, just replace 51716619E084DAB9 with the PUBKEY in the error message. Be careful though, only add the key from a trusted source.

0 comments: