Centos sudo yum更新失败

时间:2016-08-22 20:45:17

标签: sqlite centos sudo yum

我尝试更新yum的安全性时有以下错误可以有人建议修复,我已经运行yum clean元数据并且没有工作我担心运行yum clean all因为这被建议作为另一个帖子中的修复我不确定它的作用是什么?

    sudo yum update
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest                                         | 2.1 kB     00:00     
amzn-updates/latest                                      | 2.3 kB     00:00     
centos                                                   | 3.7 kB     00:00     
http://apt.sw.be/redhat/el5/en/x86_64/dag/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
epel/x86_64/metalink                                     |  23 kB     00:00     
epel/x86_64                                              | 4.3 kB     00:00     
epel/x86_64/updateinfo                                   | 736 kB     00:00     
epel/x86_64/primary_db                                   | 5.9 MB     00:00     
http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
rpmforge                                                 | 1.9 kB     00:00     
4028 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package aws-cli.noarch 0:1.10.46-1.40.amzn1 will be updated
---> Package aws-cli.noarch 0:1.10.56-1.41.amzn1 will be an update
---> Package compat-libtiff3.x86_64 0:3.9.4-10.13.amzn1 will be updated
---> Package compat-libtiff3.x86_64 0:3.9.4-18.14.amzn1 will be an update
---> Package curl.x86_64 0:7.40.0-8.58.amzn1 will be updated
---> Package curl.x86_64 0:7.40.0-8.59.amzn1 will be an update
---> Package dracut.noarch 0:004-336.28.amzn1 will be updated
---> Package dracut.noarch 0:004-409.31.amzn1 will be an update
http://apt.sw.be/redhat/el5/en/x86_64/dag/repodata/filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.

由于

2 个答案:

答案 0 :(得分:2)

您应该删除/etc/yum.repos.d/目录中的无效repo文件。

首先使用以下方法检测repo文件:

# grep -l apt.sw.be /etc/yum.repos.d/

使用以下命令删除无效的repo文件并清除yum缓存:

# sudo yum clean all

答案 1 :(得分:0)

虽然AliOkan提供了一个有效的答案,但这就是为什么它首先失败的原因,因为我也遇到了类似的问题。

从你的踪迹(你实际上有一个参考el5顺便说一句,不再维护):

http://apt.sw.be/redhat/el[5|6]/en/x86_64/dag/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.

此错误指向RPMForge repo的某些问题,然后在official repo上显示此信息:

  

RPMforge / RepoForge状态

     

RPMForge / RepoForge是一个死项目。它没有得到维护。 不要   USE

     

另见https://github.com/repoforge/rpms/issues/375

它不再正式维护,但如果需要,有镜子,请参阅上面的git问题。