Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

概要

% 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 で解決してよかった。

abetomo
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした