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
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
場景
CentOS6.9的版本在使用
yum install gcc-c++
安裝C和C++的插件時(shí)提示:
PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found“
?
注:
博客:
https://blog.csdn.net/badao_liumang_qizhi
關(guān)注公眾號(hào)
霸道的程序猿
獲取編程相關(guān)電子書、教程推送與免費(fèi)下載。
實(shí)現(xiàn)
一開始在使用yum安裝插件時(shí)提示:
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的數(shù)據(jù)源又報(bào)了上面的錯(cuò)誤。
再執(zhí)行以下命令
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命令了。
?
總結(jié)
以上是生活随笔為你收集整理的CentOS6在使用yum install 时提示镜像源路径不存在:PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 信息系统项目管理师-项目立项管理考点笔记
- 下一篇: CentOS6中怎样将jdk1.7升级到