티스토리 뷰

반응형

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: https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64  InRelease: The following signatures were invalid: EXPKEYSIG 6ED91CA3AC1160CD NVIDIA CORPORATION (Open Source Projects) <cudatools@nvidia.com>
W: Failed to fetch https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64/InRelease  The following signatures were invalid: EXPKEYSIG 6ED91CA3AC1160CD NVIDIA CORPORATION (Open Source Projects) <cudatools@nvidia.com>

문제의 원인

찾아보았더니 해당 오류는 apt key를 등록한지 오래되어 기존에 등록했던 gpg key가 올바르지 않게 되어 발생하는 문제이다.

해결 방법

curl 명령어를 통해 새 gpg key를 받아온 다음 apt-key add 명령어를 통해 등록해주면 된다. 아래의 명령어를 사용하면 바로 등록할 수 있다.

curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
sudo apt-key add -

출처

[1] github.com/NVIDIA/nvidia-container-runtime/issues/76

[2] askubuntu.com/questions/943146/apt-update-error-an-error-occurred-during-the-signature-verification-chrome

반응형
댓글