LoginSignup
13
8

More than 5 years have passed since last update.

Ubuntuでapt updateしようとしたらnvidia-dockerのGPGキー周りでエラーが起こった時の対処法

Last updated at Posted at 2018-10-08

解決策

このコードを実行すれば良い

curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
  sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \
  sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get 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/ubuntu16.04/amd64  InRelease: The following signatures were invalid: KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745

GPGキーの期限が切れたのが原因かなと思う。

(aptは深く理解しないまま使ってきていたので、問題が発生したときに解決するのがちょっと大変。この記事も、友達に解決策を教えてもらったので、共有するために書いた。時間作って勉強しよう。)

13
8
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
8