如何解决 yum 更新时的 multilib 问题?

问题描述 投票:0回答:2

当我尝试在 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
  • 基础:mirror.airenetworks.es
  • city-fan.org:www.city-fan.org
  • epel:镜子.uv.es
  • 额外:mirror.airenetworks.es
  • 雷米:remirepo.reloumirrors.net
  • remi-php73:remirepo.reloumirrors.net
  • remi-php74:remirepo.reloumirrors.net
  • remi 安全:remirepo.reloumirrors.net
  • 更新:mirror.airenetworks.es
  • webtatic:uk.repo.webtatic.com 帕凯蒂安装 libselinux.i686 2.5-15.el7 @base libselinux.x86_64 2.5-15.el7 @base 帕凯蒂·迪斯波尼比利 libselinux.i686 2.5-15.el7 基础 libselinux.x86_64 2.5-15.el7 基础

我应该做什么来修复它?

谢谢,

centos7 yum
2个回答
0
投票

该问题显然已通过执行解决:

 sudo yum erase libnghttp2.i686

此后 yum 更新工作顺利进行。


0
投票

我通过 wget 下载 nameof.rpm,然后 yum install nameof.rpm 解决了这个问题

© www.soinside.com 2019 - 2024. All rights reserved.