gpg 오류 대처
뭔가 설치하려고 하는데, 그럴 때 마다 apt-get update 하라고 하고, 오류가 뜨면서 안되는 상황에 대한 대처입니다.
Err:1 http://cran.rstudio.com/bin/linux/ubuntu xenial/ InRelease
W: GPG error: http://cran.rstudio.com/bin/linux/ubuntu xenial/ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9
E: The repository 'http://cran.rstudio.com/bin/linux/ubuntu xenial/ InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
의미 : GPG 오류. 퍼블릭키 사용 불가능함
해결
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys [공개키]