Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 如何将GC实例上rh-cloud.repo中的Yum repos更新为受信任的?_Google Cloud Platform_Redhat_Yum - Fatal编程技术网

Google cloud platform 如何将GC实例上rh-cloud.repo中的Yum repos更新为受信任的?

Google cloud platform 如何将GC实例上rh-cloud.repo中的Yum repos更新为受信任的?,google-cloud-platform,redhat,yum,Google Cloud Platform,Redhat,Yum,我有一个安装了Redhat 7的Google Comput实例。突然,我无法再在实例上使用Yum,因为所有回购都被标记为不可信。我在运行任何Yum命令时都会遇到大量类似这样的错误: https://cds.rhel.updates.googlecloud.com/pulp/repos///content/dist/rhel/rhui/server/7/7Server/x86_64/os/Packages/device-mapper-1.02.135-1.el7_3.5.x86_64.rpm: [

我有一个安装了Redhat 7的Google Comput实例。突然,我无法再在实例上使用Yum,因为所有回购都被标记为不可信。我在运行任何Yum命令时都会遇到大量类似这样的错误:

https://cds.rhel.updates.googlecloud.com/pulp/repos///content/dist/rhel/rhui/server/7/7Server/x86_64/os/Packages/device-mapper-1.02.135-1.el7_3.5.x86_64.rpm: [Errno 14] curl#60 - "Peer's certificate issuer has been marked as not trusted by the user."
Trying other mirror.
device-mapper-libs-1.02.135-1. FAILED
/etc/yum.repos.d/rh-cloud.repo中的所有repo都会出现此错误。如果删除该repo文件,错误将消失,但Yum找不到任何包


我如何更新这些回购协议以指向正确的、受信任的URL?(或者让Yum忽略这个错误,尽管这似乎有点狡猾!)

我有一个简单的解决方案:禁用ssl检查

在文件
/etc/yum.repos.d/rh cloud.repo
中,我将
sslverify=1
的所有实例替换为
sslverify=0

它允许我安装所需的软件包(
traceroute


需要找到另一个解决方案。

请向谷歌或红帽客户支持部门提出此问题。这很可能是订阅问题。