【问题标题】:RHEL6 installed wrong version of rpmforgeRHEL6 安装错误版本的rpmforge
【发布时间】: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 我将它添加到服务器故障

标签: linux redhat rpm yum rhel


【解决方案1】:

@Michael Hapton this link 的解决方案

这里是解决方案。我不相信它。

首先您需要安装正确的 rpmforge-release 软件包。下载它并使用 rpm -U --oldpackage 将其安装到错误的包上。

其次,您需要清理它所拥有的缓存的 yum 元数据。使用 yum clean all 清除一切。

第三,使用 yum distro-sync 降级为错误发行版安装的任何软件包。 (请注意,这也会升级任何过时的软件包。)

【讨论】:

    猜你喜欢
    • 2014-07-20
    • 2016-10-01
    • 2017-10-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-03
    • 2013-11-29
    相关资源
    最近更新 更多