在Redhat 9上安装google-cloud-sdk最新的稳定版本
系统信息
cat /etc/redhat-release
Red Hat Enterprise Linux release 9.0 (Plow)
uname -r
5.14.0-70.17.1.el9_0.x86_64安装尝试的输出sudo dnf安装google-cloud-cli
Error: GPG check FAILED
yum的含量(已将el8修改为el9 - location )
[google-cloud-cli]
name=Google Cloud CLI
baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el9-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg发布于 2022-08-08 15:16:43
这似乎是由于RHEL 9不推荐使用SHA-1作为GPG签名。这里提到的是- https://access.redhat.com/articles/6846411
奇怪的是,即使您试图使用标志禁用GPG检查,它仍然无法工作:
sudo dnf install --nogpgcheck google-cloud-cli
Error: Transaction test error:
package google-cloud-cli-396.0.0-1.x86_64 does not verify: Header V4 RSA/SHA1 Signature, key ID 3e1ba8d5: BAD但是,我找到了一个解决方案--您可以暂时允许使用SHA-1,安装google,然后恢复如下设置:
sudo update-crypto-policies --set DEFAULT:SHA1
sudo dnf install google-cloud-cli
sudo update-crypto-policies --set DEFAULT:NO-SHA1刚在RHEL9.0上对我起了作用。
https://stackoverflow.com/questions/73263452
复制相似问题