apt updateでnvidia-dockerのNO_PUBKEYエラー対応


現象

apt-getするとnvidia-dockerのレポジトリーで「NO_PUBKEY 6ED91CA3AC1160CD」が突然表示されるようになりました

実行結果
sudo 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/libnvidia-container/ubuntu18.04/amd64  InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6ED91CA3AC1160CD
....

解消方法

以下のコマンドでnvidia-dockerレポジトリーのgpgkeyのアップデートを行います。

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

参考