yum安装包时出现is a duplicate with

本文介绍了当使用YUM安装软件遇到错误时的一种常见情况:“[Errno256] Nomore mirrorsto try”及“包出现重复”的问题。文中提供了具体的解决方法,包括使用package-cleanup工具来清理重复的软件包。

yum 安装软件的时候报错了:

1: [Errno 256] No more mirrors to try.

 You could try using --skip-broken to work around the problem
** Found 4 pre-existing rpmdb problem(s), 'yum check' output follows:
glibc-2.12-1.192.el6.x86_64 is a duplicate with glibc-2.12-1.107.el6.x86_64
glibc-common-2.12-1.192.el6.x86_64 is a duplicate with glibc-common-2.12-1.107.el6.x86_64
libgcc-4.4.7-17.el6.x86_64 is a duplicate with libgcc-4.4.7-3.el6.x86_64

tzdata-2016d-1.el6.noarch is a duplicate with tzdata-2012j-1.el6.noarch

包出现重复的了


解决方法:

If this doesn't help then take a look at the package-cleanup tool which is part of the yum-utils package.
package-cleanup --dupes lists duplicate packages
package-cleanup --cleandupes
removes duplicate packages
But be carefull with the command and create a backup before removing duplicates.

错误: 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 libxml2 which is missing some dependency that another package requires. Yum is trying to solve this by installing an older version of libxml2 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 libxml2.otherarch ... this should give you an error message showing the root cause of the problem. 2. You have multiple architectures of libxml2 installed, but yum can only see an upgrade for one of those architectures. 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 libxml2 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). 保护多库版本:libxml2-2.9.1-6.el7.5.i686 != libxml2-2.9.1-6.el7_9.6.x86_64 错误:保护多库版本:xz-libs-5.2.2-1.el7.i686 != xz-libs-5.2.2-2.el7_9.x86_64 错误:保护多库版本:glibc-2.17-317.el7.i686 != glibc-2.17-326.el7_9.x86_64 错误:保护多库版本:nss-softokn-freebl-3.44.0-8.el7_7.i686 != nss-softokn-freebl-3.67.0-3.el7_9.x86_64
最新发布
12-26
[root@localhost file]# yum install glibc-common-2.17-317.el7 Failed to set locale, defaulting to C ??????fastestmirror Loading mirror speeds from cached hostfile ???????? --> ?????? ---> ??? glibc-common.x86_64.0.2.17-317.el7 ?? ?? --> ???????? glibc = 2.17-317.el7?????? glibc-common-2.17-317.el7.x86_64 ?? --> ?????? ---> ??? glibc.i686.0.2.17-317.el7 ?? ?? --> ???????? libfreebl3.so(NSSRAWHASH_3.12.3)?????? glibc-2.17-317.el7.i686 ?? --> ???????? libfreebl3.so?????? glibc-2.17-317.el7.i686 ?? --> ?????? ---> ??? nss-softokn-freebl.i686.0.3.44.0-8.el7_7 ?? ?? --> ???????? 错误: 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 glibc which is missing some dependency that another package requires. Yum is trying to solve this by installing an older version of glibc 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 glibc.otherarch ... this should give you an error message showing the root cause of the problem. 2. You have multiple architectures of glibc installed, but yum can only see an upgrade for one of those architectures. 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 glibc 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). 保护多库版本:glibc-2.17-317.el7.i686 != glibc-2.17-326.el7_9.x86_64 错误:保护多库版本:nss-softokn-freebl-3.44.0-8.el7_7.i686 != nss-softokn-freebl-3.67.0-3.el7_9.x86_64
12-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值