骑猪兜风

CentOS 7 使用DNF包管理 出现Failed to open错误解决方法

骑猪兜风 2015-12-22 07:26:24    201970 次浏览
Centos7下使用yum安装dnf
yum install epel-release -y
yum install dnf

安装完毕后,实行dnf update命令检查软件应用更新 出现如下错误

Extra Packages for Enterprise Linux 7 - x86_64  668 kB/s | 9.4 MB     00:14
Failed to open: /var/cache/dnf/x86_64/7/x86_64/7/epel/repodata/e8...19-updateinfo.xml.bz2.

执行 dnf clean all 还是没有解决这个问题。


对于这个问题,站长搜索了很多结果,终于找到解决方法:

yum remove epel-release

and after that:

dnf repolist
dnf list installed

etc. worked (at least on my CentOS 7 system).


内容加载中