google-cloud-platform - 启动脚本 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),
知道如何在实例配置或任何解决方法时解决此问题吗?
解决方案
我正在尝试重现这个问题。如果您能分享以下信息,将会很有帮助:
您在这里使用的确切操作系统是什么。
当您尝试在 VM 启动后手动运行脚本时会发生什么。
您能否在没有机密信息或凭据的情况下分享示例脚本。
虽然我没有对此进行测试,但由于 yum 没有足够的缓存数据来继续,可能会发生错误。并且可以在公众号上找到解决方案:https ://community.cloudera.com/t5/Support-Questions/yum-doesn-t-have-enough-cached-data-to-continue/mp/220862
推荐阅读
- angular - 在 Angular 7 中,我在哪里可以找到 HttpClient 库?
- java - 有没有更有效的方法来使用流从 ResultSet (Java) 中的 int 列中获取平均值
- javascript - 删除输入之外的表单输入值
- python - 区分 Django 中的“帐户类型”
- mysql - SQL 关系数据库:数据操作和计算
- mongodb - 如何为类别子类别管理创建猫鼬模式?
- sql - HiveQL:如何删除基于两列的重复行
- javascript - 将下拉选择替换为jquery中选择的类
- python - 使用 Flask before_request 和 after_request 的原子事务
- python-3.x - 构建和访问数组列表