我为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发布于 2015-07-25 05:22:45
@Michael Hapton在this link上的解决方案
这是解决办法。我对此没有功劳。
首先,您需要安装正确的rpmforge发行包。下载它并使用rpm -U --oldpackage将其安装在错误的包上。
其次,您需要清理缓存的yum元数据。用百胜清洁把所有的东西都清除掉。
第三,使用yum发行版同步降低为错误发行版安装的任何包的级别。(请注意,这也将升级任何过时的软件包。)
https://stackoverflow.com/questions/31622991
复制相似问题