CentOS6在使用yum install 时提示镜像源路径不存在的解决办法
CentOS6.9的版本在使用yum install XXX 的时候
安装时提示:PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found“
Loading mirror speeds from cached hostfile
Nothing to do
也就是找不到镜像源,所以先通过
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.backup
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
mv CentOS6-Base-163.repo CentOS-Base.repo
yum clean all
以上的命令更换为163的数据源又报了上面的错误。
再执行以下命令
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
就能正常使用yum命令了。
页:
[1]