한 번만 더 해보자

[Linux] The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C 본문

Linux

[Linux] The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C

정 하임 2024. 1. 11. 22:00

상황

apt update를 하려는데 아래와 같은 에러가 발생

 

 

에러코드

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: <http://repo.mysql.com/apt/ubuntu> bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
W: Failed to fetch <http://repo.mysql.com/apt/ubuntu/dists/bionic/InRelease>  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
W: Some index files failed to download. They have been ignored, or old ones used instead.

 

 

해결방안

키 업데이트하기

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B7B3B788A8D3785C

보통은 키 업데이트로 해결이 되는데 나는 해결이 안된다..

 

 

추가해결방안

키 삭제후 재등록

gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys B7B3B788A8D3785C
rm /usr/share/keyrings/mysql-apt-config.gpg
gpg  --output /usr/share/keyrings/mysql-apt-config.gpg --export B7B3B788A8D3785C

Terminal update error

위의 링크로 해결 가능!

반응형