错误:为 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,所以要加上这两个路径。
错误:为 repo ‘oracle_linux_repo‘ 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.
[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结束才可以。

上一篇:【ORACLE】简单谈谈ORACLE中WALLET(钱夹)


下一篇:repodata创建本地YUM仓库