问题出现环境:
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 2月 26 03:02 CentOS-AppStream.repo
-rw-r--r--. 1 root root 2495 8月 4 2022 CentOS-Base.repo
-rw-r--r--. 1 root root 891 2月 26 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
元数据缓存已建立。