本文主要是介绍错误:为 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.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!