为 repo ‘AppStream‘ 下载元数据失败 错误:为 repo ‘AppStream‘ 下载元数据失败

问题出现环境:

Linux master 4.18.0-147.el8.x86_64 #1 SMP Wed Dec 4 21:51:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

解决方法

1. cd /etc/yum.repos.d/
2. ll
总用量 52
-rw-r--r--. 1 root root  866 226 03:02 CentOS-AppStream.repo
-rw-r--r--. 1 root root 2495 84 2022 CentOS-Base.repo
-rw-r--r--. 1 root root  891 226 03:01 CentOS-Extras.repo
省略不重要文件...
3. 分别打开如下三个文件
	vim CentOS-Base.repo
	vim CentOS-AppStream.repo
	vim CentOS-Extras.repo
	注释 mirrorlist,添加如下一行数据: 
	baseurl=https://mirrors.aliyun.com/centos/$releasever-stream/extras/$basearch/os/

出现“ 元数据缓存已建立”表示成功

4. 
[root@master yum.repos.d]# yum clean all
	Repository AppStream is listed more than once in the configuration
	Repository extras is listed more than once in the configuration
	Repository PowerTools is listed more than once in the configuration
	Repository centosplus is listed more than once in the configuration
	0 文件已删除
[root@master yum.repos.d]# yum makecache
	Repository AppStream is listed more than once in the configuration
	Repository extras is listed more than once in the configuration
	Repository PowerTools is listed more than once in the configuration
	Repository centosplus is listed more than once in the configuration
	CentOS-8 - AppStream                                                                       	48 kB/s |  18 kB     00:00    
	CentOS-8.5.2111 - Base - mirrors.aliyun.com                                               222 kB/s | 4.6 MB     00:21    
	CentOS-8.5.2111 - Extras - mirrors.aliyun.com                                              45 kB/s |  10 kB     00:00    
	Docker CE Stable - x86_64                                                                 2.3 kB/s |  37 kB     00:15    
	模块依赖问题

	 问题 1: conflicting requests
	  - nothing provides module(perl:5.26) needed by module perl-DBD-	MySQL:4.046:8010020191114030811:073fa5fe-0.x86_64
	 问题 2: conflicting requests
	  - nothing provides module(perl:5.26) needed by module perl-	DBI:1.641:8010020191113222731:16b3ab4d-0.x86_64
	 元数据缓存已建立。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值