【发布时间】:2015-07-25 04:38:35
【问题描述】:
我为 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_64package,因为我有正确的 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
【问题讨论】:
-
我相信这个问题属于Server Fault。
-
感谢@bufh 我将它添加到服务器故障