近期发现我们的Centos镜像出现了yum库404报错问题,这边正在积极解决。
如果遇到了这个问题 可以通过更改yum源的方法修复该问题方法如下
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
CentOS 8
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
即可解决对应问题
如遇到yum锁,可以通过 kill -9 pid命令杀死对应进程
其中pid是指yum的运行ID
佳丽云官方
Copyright © 2017-2021 佳丽云企业级服务器系统 版权所有 开原市佳丽文化传媒有限公司 辽ICP备20000173号-6
声明:本平台所有机器禁止用于攻击测试、博彩、色情、空间、小说、外挂、病毒、诈骗、钓鱼、VPN、VOIP、挖矿等违法违规用途,一经发现,立即永久关闭并且联合相关单位处理,概不退款。
《中华人民共和国增值电信业务经营许可证》B1-20160477
律师团队:佳丽云律师团队
本程序界面、源代码受相关法律保护 ; 佳丽云® 为我公司注册商标, 未经授权, 严禁使用