首页 > 解决方案 > 启动脚本 yum 安装失败,并显示“无法验证 google-cloud-sdk 的签名”

问题描述

我使用以下命令重新运行了启动脚本: sudo google_metadata_script_runner --script-type startup

所有yum install命令都失败并出现以下错误:

startup-script: INFO startup-script-url: Retrieving key from https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
startup-script: INFO startup-script-url: https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for google-cloud-sdk
startup-script: INFO startup-script-url: Trying other mirror.
startup-script: INFO startup-script-url:  One of the configured repositories failed (Google Cloud SDK),

知道如何在实例配置或任何解决方法时解决此问题吗?

标签: google-cloud-platformgoogle-compute-engine

解决方案


我正在尝试重现这个问题。如果您能分享以下信息,将会很有帮助:

  1. 您在这里使用的确切操作系统是什么。

  2. 当您尝试在 VM 启动后手动运行脚本时会发生什么。

  3. 您能否在没有机密信息或凭据的情况下分享示例脚本。

虽然我没有对此进行测试,但由于 yum 没有足够的缓存数据来继续,可能会发生错误。并且可以在公众号上找到解决方案:https ://community.cloudera.com/t5/Support-Questions/yum-doesn-t-have-enough-cached-data-to-continue/mp/220862


推荐阅读