sqlite - Centos sudo yum 更新失败

标签 sqlite centos sudo yum

我在尝试更新 yum 以确保安全时出现以下错误,有人可以建议修复吗?我已经运行了 yum clean metadata 但没有用 我担心运行 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.

谢谢

最佳答案

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

首先检测 repo 文件:

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

删除无效的 repo 文件并清理 yum 缓存:

# sudo yum clean all

关于sqlite - Centos sudo yum 更新失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39088439/

相关文章:

php - PHP PDO SQLite连接

python - 无法插入 Sqlite3 数据库

centos - 安装 vagrant 时缺少 centos 7 的 yum 包

linux - X11:以另一个用户身份运行 gnome 应用程序

Bash:如何在不通过 SSH 回显的情况下从标准输入读取密码

php - "--no-scripts"选项是否足以解决以 root 身份运行 composer 的安全问题?

python - SQLAlchemy 不存在于子选择上?

javascript - 如何从 .ejs 获取值到 javascript 文件

powershell 导入 psd1 并使用命令?

php - command exec 和 php shell_exec 有不同的结果