[英]RHEL6 installed wrong version of rpmforge
我为el7安装了错误版本的rpmforge。 然后我运行了一个更新程序,该更新程序在我的系统上安装了此软件包
python-crypto-2.6.1-1.el7.rf.x86_64
注意el7,但是我在rhel6。 然后,我意识到并删除了错误的存储库,并为el6安装了正确的存储库。
$ rpm -qa | grep rpmfor
rpmforge-release-0.5.2-2.el6.rf.x86_64
但是上述过程破坏了更新过程,我知道我可以使用--skip-broken
选项来解决。 我如何降级上述软件包。 我尝试卸载并重新安装回去,但出现此错误:
Error: Trying to remove "c4ebpl", which is protected
它向我展示了一些无法删除的受保护软件包。 使用sudo yum update
更新过程给我这个错误:
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: libgmp.so.10()(64bit)
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: python(abi) = 2.7
Installed: python-2.6.6-52.el6.x86_64 (@el66/$releasever)
python(abi) = 2.6
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: libpython2.7.so.1.0()(64bit)
You could try using --skip-broken to work around the problem
谁会知道如何降级到原始软件包? 有办法恢复出厂设置吗? 还是我需要重新安装Linux?
我尝试了一些操作:我使用此命令删除了python-crypto.x86_64
程序包
sudo rpm --nodeps -e python-crypto.x86_64
更新进行了。 所以我认为我现在应该安装python-crypto.x86_64
软件包,因为我拥有正确的el6 rpmforge存储库。 所以我运行了sudo yum install python-crypto.x86_64
这个命令,但是出现了同样的错误:
Resolving Dependencies
--> Running transaction check
---> Package python-crypto.x86_64 0:2.6.1-1.el7.rf will be installed
--> Processing Dependency: python(abi) = 2.7 for package: python-crypto-2.6.1-1.el7.rf.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: python-crypto-2.6.1-1.el7.rf.x86_64
--> Processing Dependency: libpython2.7.so.1.0()(64bit) for package: python-crypto-2.6.1-1.el7.rf.x86_64
--> Processing Dependency: libgmp.so.10()(64bit) for package: python-crypto-2.6.1-1.el7.rf.x86_64
--> Finished Dependency Resolution
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: libgmp.so.10()(64bit)
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: python(abi) = 2.7
Installed: python-2.6.6-52.el6.x86_64 (@el66/$releasever)
python(abi) = 2.6
Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge)
Requires: libpython2.7.so.1.0()(64bit)
You could try using --skip-broken to work around the problem
我不知道为什么要尝试找到el7软件包? 我的机器中有这些库。
$ rpm -qa | grep rpmfor
rpmforge-release-0.5.3-1.el7.rf.x86_64
@Michael Hapton在此链接上的解决方案
这是解决方案。 我对此不承担任何责任。
首先,您需要安装正确的rpmforge-release软件包。 下载它,然后使用rpm -U --oldpackage将其安装在错误的软件包上。
其次,您需要清除缓存的元数据。 使用yum clean all清除所有内容。
第三,使用yum distro-sync降级为错误分发安装的所有软件包。 (请注意,这还将升级所有过期的软件包。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.