错误:为 repo ‘oracle_linux_repo‘ 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.

2021/7/30 2:06:07

本文主要是介绍错误:为 repo ‘oracle_linux_repo‘ 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

错误:为 repo 'oracle_linux_repo' 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

出现此问题的原因是OracleLinux与Redhat中的baseurl配置路径有不同之处,OracleLinux多了BaseOS和
AppStream,所以要加上这两个路径。
在这里插入图片描述
[oracle_linux_repo]
name = oracle_linux_8
baseurl = file:///yum/BaseOS
enabled = 1
gpgcheck = 0
gpgkey = file:///yum/RPM-GPG-KEY-oracle

[oracle_linux_repo]
name = oracle_linux_8
baseurl = file:///yum/AppStream
enabled = 1
gpgcheck = 0
gpgkey = file:///yum/RPM-GPG-KEY-oracle

平常我们都是配置到 file:///yum 结束,但是在OracleLinux里面我们要配置到BaseOS和AppStream结束才可以。



这篇关于错误:为 repo ‘oracle_linux_repo‘ 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程