CentOS6在使用yum install 时提示镜像源路径不存在:PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found
生活随笔
收集整理的這篇文章主要介紹了
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的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 信息系统项目管理师-项目立项管理考点笔记
- 下一篇: CentOS6中怎样将jdk1.7升级到