欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

CentOS6在使用yum install 时提示镜像源路径不存在:PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found

发布时间:2025/3/19 编程问答 28 豆豆
生活随笔 收集整理的这篇文章主要介绍了 CentOS6在使用yum install 时提示镜像源路径不存在:PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

场景

CentOS6.9的版本在使用

yum install gcc-c++

安装C和C++的插件时提示:

PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found“

 

注:

博客:
https://blog.csdn.net/badao_liumang_qizhi
关注公众号
霸道的程序猿
获取编程相关电子书、教程推送与免费下载。

实现

一开始在使用yum安装插件时提示:

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命令了。

 

总结

以上是生活随笔为你收集整理的CentOS6在使用yum install 时提示镜像源路径不存在:PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。