sudo apt update
在 Debian 上运行时出现以下错误。
GPG error: http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease:
The following signatures were invalid: EXPKEYSIG 3746C208A7317B0F
sudo apt update
在 Debian 上运行时出现以下错误。
GPG error: http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease:
The following signatures were invalid: EXPKEYSIG 3746C208A7317B0F
这是一个已知的问题。
https://cloud.google.com/compute/docs/troubleshooting/known-issues#keyexpired
运行以下命令获取最新的密钥:
wget https://packages.cloud.google.com/apt/doc/apt-key.gpg \
&& apt-key add apt-key.gpg
或者
curl -O https://packages.cloud.google.com/apt/doc/apt-key.gpg \
&& apt-key add apt-key.gpg
或者..如果您喜欢没有多余文件的简单并且喜欢冒险:
curl -f https://packages.cloud.google.com/apt/doc/apt-key.gpg \
| sudo apt-key add -