当我尝试在 centos 7 上更新 yum 时,出现 multilib 错误:
Errore: 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 libnghttp2 which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of libnghttp2 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 libnghttp2.otherarch ... this should give you an error
message showing the root cause of the problem.
2. You have multiple architectures of libnghttp2 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 libnghttp2 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).
Versioni multilib protette: libnghttp2-1.33.0-1.1.el7.x86_64 != libnghttp2-1.31.1-2.el7.i686
我试图通过以下方式解决这个问题:
sudo yum erase libselinux.i686
但这并没有改变任何事情。
sudo package-cleanup --dupes
什么也没有提供。 如果我执行:
sudo yum list --showduplicates libselinux
Plugin abilitati:fastestmirror, langpacks
Repository nodesource is listed more than once in the configuration
Repository nodesource-source is listed more than once in the
configuration
Loading mirror speeds from cached hostfile
我应该做什么来修复它?
谢谢,
该问题显然已通过执行解决:
sudo yum erase libnghttp2.i686
此后 yum 更新工作顺利进行。
我通过 wget 下载 nameof.rpm,然后 yum install nameof.rpm 解决了这个问题