apt updateのGPG errorのNO PUBKEY F60F4B3D7FA2AF80を解決する方法

提供: Ubuntu入門
移動: 案内検索
スポンサーリンク

apt updateでCUDAのリポジトリの署名のチェックがエラーになったときの対応方法をまとめます。

読み方

CUDA
くーだ

概要

nvcc コマンドが必要で、cuda のパッケージが必要だったことから、 cuda パッケージを入れようとしました。 cuda パッケージは、追加のリポジトリが必要で、リポジトリを追加したのですが、署名のエラーがおきたので、公開鍵を追加しました。

発生したエラー

$ sudo apt update
省略
W: GPG error: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F60F4B3D7FA2AF80
W: The repository 'http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

対処方法

以下のコマンドで公開鍵を追加し、 apt update で更新するだけです。

$ wget -qO - http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/7fa2af80.pub | sudo apt-key add -
$ sudo apt update

関連項目




スポンサーリンク