系统: Red Hat 6.5
我有一个libgcc的问题,显然我的机器上安装了两个不同的版本。
无论如何,当我尝试从字面上安装任何东西时,我无法这样做,因为这个错误:
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 libgcc which is missing some dependency that another package requires. Yum is trying to solve this by installing an older version of libgcc 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 libgcc.otherarch ... this should give you an error message showing the root cause of the problem. 2. You have multiple architectures of libgcc 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 libgcc 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: libgcc-4.4.7-4.el6.i686 != libgcc-4.4.7-4.1.el6_5.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
我意识到,这个问题已经被问及回答,例如:
https://serverfault.com/questions/597168/solving-multilib-version-problems
但是,这个问题的答案不适用于我 。 当我尝试跑步
yum install libgcc.x86_64 libgcc.i686
我得到完全相同的错误 (如上所示)。
我也尝试卸载libgcc软件包,但它有很多的依赖关系,所以我不能用yum来做。 当我使用rpm -e --nodeps rpm -e --nodeps删除这个pacage rpm -e --nodeps rpm -e --nodeps它使得真正丑陋的混乱,首先打破了yum。
为了清楚起见,我附上:
bash-4.1# yum list all libgcc Loaded plugins: product-id, subscription-manager Installed Packages libgcc.x86_64 4.4.7-4.1.el6_5 _some_value Available Packages libgcc.i686 4.4.7-4.el6 _some_another_value
你能帮我解决这个难题吗? 我问,因为我不知道下一步该怎么做。 预先感谢您的关注!