CentOS6使用yum命令报错解决方法


CentOS6 yum命令报错YumRepo Error: All mirror URLs are not using ftp, http[s] or file。原因是,2020年11月30日CentOS官方已经停止对CentOS6版本的维护,CentOS6要使用yum命令都需要修改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 makecache

标签:

文章发布时间:2021-09-27