본문 바로가기
반치용/문제해결(trouble shooting)

gpg 오류 대처

by  반  2019. 12. 10.

뭔가 설치하려고 하는데, 그럴 때 마다 apt-get update 하라고 하고, 오류가 뜨면서 안되는 상황에 대한 대처입니다.

흔한 gpg 오류

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 [공개키]

참 쉽죠?

 

댓글