Covenant

 

apt-get update를 하려고 하면 GPG public key 오류가 나온다.GPG는 GNU의 pgp 암호화 프로그램이다. 오류 메시지에서 표시된 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 [                       ]
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  [                       ]
W: Some index files failed to download. They have been ignored, or old ones used instead.

이런 식의 오류가 나온다.

 

 

apt-key list | grep "expired:" 명령어를 치면 다음과 같이 만료된 key를 볼 수 있다.

 

 

wget -q -O - https://archive.kali.org/archive-key.asc  | apt-key add

를 입력하면 간단하게 OK가 나온다. 그러면 완료된 것이다.