一、原因
因cnetos6系统官方已不在支持维护,导致centos6系统无法使用yum安装命令。包括使用阿里等其他源也无法下载。
二、更换可用源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/repo/Centos-6.repo
wget -O /etc/yum.repos.d/epel.repo http://file.kangle.odata.cc/repo/epel-6.repo
yum clean all
yum makecache
有问题请加博主微信进行沟通!
全部评论