yum 降级 libstdc++

yum 降级 libstdc++

我正在尝试安装 libstdc++-4.4.4-13.el6.i686.rpm 但它表示已安装此软件包的较新版本。

[root@isoft Downloads]# rpm -ivh libstdc++-4.4.4-13.el6.i686.rpm
warning: libstdc++-4.4.4-13.el6.i686.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
Preparing...                ########################################### [100%]
package libstdc++-4.4.7-17.el6.x86_64 (which is newer than libstdc++-4.4.4-13.el6.i686) is already installed*

即使我无法卸载 libstdc++-4.4.7-17.el6.x86_64。

[root@isoft yum.repos.d]# yum install libstdc++-4.4.6-4.el6.i686
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libstdc++.i686 0:4.4.6-4.el6 will be installed
--> Finished Dependency Resolution
Error:  Multilib version problems found. This often means that the root
       cause is something else and multilib version checking is just
       pointing out that there is a problem. Eg.:

         1. You have an upgrade for libstdc++ which is missing some
            dependency that another package requires. Yum is trying to
            solve this by installing an older version of libstdc++ of the
            different architecture. If you exclude the bad architecture
            yum will tell you what the root cause is (which package
            requires what). You can try redoing the upgrade with
            --exclude libstdc++.otherarch ... this should give you an error
            message showing the root cause of the problem.

         2. You have multiple architectures of libstdc++ installed, but
            yum can only see an upgrade for one of those arcitectures.
            If you don't want/need both architectures anymore then you
            can remove the one with the missing update and everything
            will work.

         3. You have duplicate versions of libstdc++ installed already.
            You can use "yum check" to get yum show these errors.

       ...you can also use --setopt=protected_multilib=false to remove
       this checking, however this is almost never the correct thing to
       do as something else is very likely to go wrong (often causing
       much more problems).

       Protected multilib versions: libstdc++-4.4.6-4.el6.i686 != libstdc++-4.4.7-17.el6.x86_64

任何人都有解决此错误的想法。

答案1

你应该跑

yum 降级 libstdc++

并解决了依赖关系。希望 repos 仍然有您想要的 libstdc++ 4.4.4-13 。 @anthon 和@sam 应该提高阅读能力。他的问题是安装较低版本的 libstdc++ 而不删除较高版本的 libstdc++。我向他展示了如何安装和删除已安装的软件包。由于依赖问题,即使他也无法通过 yum 安装较低版本的 libstdc++。我的答案有什么问题吗?

答案2

当您遇到此类问题时,可以输入此命令

package-cleanup --dupes

这显示了您需要删除系统(重复和旧版本)的数据包,以便可以使用存储库想要安装的体系结构来安装数据包,然后您需要重新开始安装。

注意:此问题是指系统无法安装某些数据包的架构,因为存在一个与其他架构相同的旧数据包。这意味着需要退出重复数据包和老数据包。

相关内容