错误:为 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.的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-07-04Linux系统上离线升级SSH服务的具体操作步骤-icode9专业技术文章分享
- 2024-06-0600-macOS和Linux安装和管理多个Python版本
- 2024-03-30[译]漫画SELinux概念
- 2024-03-29linux 移动文件
- 2024-03-28linux .so file
- 2024-03-28Linux 磁盘管理
- 2024-03-28Linux学习笔记(十三)磁盘管理(一):磁盘分区
- 2024-03-26linux 创建 文件
- 2024-03-25使用SecureCRT对Linux vim进行颜色设置
- 2024-03-202019-2020-12 20199317 《Linux内核原理与分析》 第十二周作业