yum install ,更新在centos 6.6中返回404错误
Posted
技术标签:
【中文标题】yum install ,更新在centos 6.6中返回404错误【英文标题】:yum install , Update returns 404 error in centos 6.6 【发布时间】:2017-02-05 22:24:46 【问题描述】:yum 根本不起作用,
yum install ,更新不起作用给出以下错误
yum update
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
* epel: archive.linux.duke.edu
http://mirror.centos.org/centos/6/SCL/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: scl. Please verify its path and try again
centos 6.6 版 蟒蛇2.6
如果有人知道,请帮助我。
EDIT1:
尝试使用 ,
yum --enablerepo=extras install centos-release-scl
加载的插件:fastestmirror
获取附加存储库数据时出错,未找到存储库
遇到上述错误
【问题讨论】:
试试yum --enablerepo=extras install centos-release-scl
嗨 Bhurhan Khalid,上面的命令是做什么的..?
@BurhanKhalid,当我尝试上面的命令时,我得到了一个错误。我粘贴在问题 EDIT1
【参考方案1】:
我在 Centos 7 上的解决方案是删除 yum
缓存。
rm -rf /var/cache/yum
【讨论】:
【参考方案2】:好像需要配置一些yum相关的文件,
我试图在网上搜索这个问题,并找到了一些对其他人有用的解决方案。
试试这个链接以获得解决方案。
https://community.hortonworks.com/questions/15506/error-cannot-retrieve-repository-metadata-repomdxm.html
https://github.com/puphpet/puphpet/issues/2321
希望这会有所帮助。
【讨论】:
【参考方案3】:在 yum.conf.d 中,找到正在使用这个损坏的 url 的 repo 并将启用标志切换为 0,以不使用这个 repo
grep -ril "<url to find>" ./
【讨论】:
以上是关于yum install ,更新在centos 6.6中返回404错误的主要内容,如果未能解决你的问题,请参考以下文章
CentOS7.3 yum install MySQL5.7
yun install lrzsz安装不了原因,更新centos6yun源