7
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Google Cloud PackagesのGPGでエラー。2018/04/02

Posted at

概要

% sudo apt-get update
...略

W: 署名照合中にエラーが発生しました。リポジトリは更新されず、過去のインデックスファイルが使われます。GPG エラー: https://packages.cloud.google.com/apt cloud-sdk-xenial InRelease: 以下の署名が無効です: KEYEXPIRED 1522631986
W: https://packages.cloud.google.com/apt/dists/cloud-sdk-xenial/InRelease の取得に失敗しました  以下の署名が無効です: KEYEXPIRED 1522631986
W: いくつかのインデックスファイルのダウンロードに失敗しました。これらは無視されるか、古いものが代わりに使われます。
...略

apt-get update でエラーが出るので対応する

確認

% apt-key list | egrep -B1 -i 'google cloud'                                
pub   2048R/A7317B0F 2015-04-03 [期限切れ: 2018-04-02]
uid                  Google Cloud Packages Automatic Signing Key <gc-team@google.com>

エラーの通り期限切れ

対応

% curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1326  100  1326    0     0   7679      0 --:--:-- --:--:-- --:--:--  7709
OK

確認

% apt-key list | egrep -B1 -i 'google cloud'                                
pub   2048R/A7317B0F 2015-04-03 [期限切れ: 2018-04-02]
uid                  Google Cloud Packages Automatic Signing Key <gc-team@google.com>
--
pub   2048R/BA07F4FB 2018-04-01 [有効期限: 2021-03-31]
uid                  Google Cloud Packages Automatic Signing Key <gc-team@google.com>

追加された

まとめ

apt-key add で解決してよかった。

7
4
0

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
7
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?