본문 바로가기

Anything

구글 크롬 설치 후 PGP 키 에러가 발생하는 경우

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used.

GPG error: http://dl.google.com/linux/chrome/deb stable Release:

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E

W: Some index files failed to download. They have been ignored, or old ones used instead.

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Calculating upgrade... Done

이런 오류가 발생하는 경우엔, 아래 명령어를 입력해주면 해결됩니다.

jaehoon@jaehoon ~ $ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

PGP 키를 wget으로 받아서 표준 출력으로 출력하게 만들어서, 파이프로 키 메니져에게 전달합니다. 키 메니져에서도 표준 입력을 통해 GPG 키를 받겠다고 알려줍니다.


이 방법이 불안하신 분들은,

jaehoon@jaehoon ~ $ wget -q -O google.gpg https://dl-ssl.google.com/linux/linux_signing_key.pub

이렇게 다운로드 받으셔서, google.gpg 내용을 확인하신 후에 적용하시면 되겠습니다.