2022-07-18 22:22:52
原因:centos8停止服务
1. 进入yum的仓库配置页面
cd /etc/yum.repos.d/
2. 修改所有centos文件内容
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
3. 更新源为阿里源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
yum clean all
yum makecache
4. 测试是否成功
yum update
转载自:
©著作权归作者所有:来自51CTO博客作者看,未来的原创作品,请联系作者获取转载授权,否则将追究法律责任
问题解决:Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorlist:...
https://blog.51cto.com/u_15197573/5267140