centos 5.8 yum 错误

来源:互联网 发布:最新犀牛软件下载 编辑:程序博客网 时间:2024/05/17 08:07

运行 yum update,看到各个mirror都提示 404 not found。

手动打开 http://centos.01link.hk/5.8/  看到提示说, 5.8 不在提供更新了。


wget -P /etc/yum.repos.d/ http://mirrors.163.com/.help/CentOS5-Base-163.repo

vim /etc/yum.repos.d/CentOS-Base.repo

enabled=0 改成 1


再运行yum update  就可以了。

原创粉丝点击