[root@sql mysql]# yum install -y yum-utils
CentOS-8 - AppStream 25 B/s | 38 B 00:01
CentOS-8 - Base 82 B/s | 38 B 00:00
Failed to synchronize cache for repo 'AppStream', ignoring this repo.
Failed to synchronize cache for repo 'BaseOS', ignoring this repo.
Last metadata expiration check: 2:21:17 ago on Sun 31 Mar 2024 10:00:37 PM CST.
No match for argument: yum-utils
Error: Unable to find a match
解决方法:
#进入配置文件目录
[root@sql mysql]# cd /etc/yum.repos.d/
#删除所有的.repo源文件
[root@sql yum.repos.d]# rm *.repo #
rm: remove regular file 'CentOS-AppStream.repo'? y
rm: remove regular file 'CentOS-Base.repo'? y
rm: remove regular file 'CentOS-centosplus.repo'? y
r

文章介绍了如何修复在CentOS8中通过`yuminstallyum-utils`时遇到的错误,涉及删除旧repo、替换镜像源和更新缓存的过程。
最低0.47元/天 解锁文章
1991






