1
0

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 1 year has passed since last update.

cloud SDK sudo apt update の GPG エラーについて

Posted at

動作環境

  • Windows11 Home
  • WSL2 Ubuntu 20.04.5 LTS

本文

sudo apt update 時にGPGエラーが出力された。

~$ sudo apt-get update
取得:3 https://packages.cloud.google.com/apt cloud-sdk InRelease [6,361 B]
エラー:3 https://packages.cloud.google.com/apt cloud-sdk InRelease
  公開鍵を利用できないため、以下の署名は検証できませんでした: NO_PUBKEY B53DC80D13EDEF05

下記のコマンドで正常にアップデートできた。

~$ curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1210  100  1210    0     0   6648      0 --:--:-- --:--:-- --:--:--  6612
OK

~$ sudo apt update
取得:3 https://packages.cloud.google.com/apt cloud-sdk InRelease [6,361 B]
取得:4 https://packages.cloud.google.com/apt cloud-sdk/main amd64 Packages [390 kB]

参考文献

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?