了解 yum 错误

了解 yum 错误

这是我尝试进行 yum 更新时收到的错误消息。

Error: Package: 389-ds-base-snmp-1.3.10.2-9.el7_9.x86_64 (@rhui-REGION-rhel-server-optional)
       Requires: 389-ds-base = 1.3.10.2-9.el7_9
       Removing: 389-ds-base-1.3.10.2-9.el7_9.x86_64 (@rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.10.2-9.el7_9
       Updated By: 389-ds-base-1.3.11.1-4.el7_9.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.11.1-4.el7_9
       Available: 389-ds-base-1.3.1.6-25.el7.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.1.6-25.el7
       Available: 389-ds-base-1.3.1.6-26.el7_0.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.1.6-26.el7_0
       Available: 389-ds-base-1.3.3.1-13.el7.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.3.1-13.el7
       Available: 389-ds-base-1.3.3.1-15.el7_1.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.3.1-15.el7_1
       Available: 389-ds-base-1.3.3.1-16.el7_1.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.3.1-16.el7_1
       Available: 389-ds-base-1.3.3.1-20.el7_1.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.3.1-20.el7_1
       Available: 389-ds-base-1.3.3.1-23.el7_1.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.3.1-23.el7_1
       Available: 389-ds-base-1.3.4.0-19.el7.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.4.0-19.el7
       Available: 389-ds-base-1.3.4.0-21.el7_2.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.4.0-21.el7_2
       Available: 389-ds-base-1.3.4.0-26.el7_2.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.4.0-26.el7_2
       Available: 389-ds-base-1.3.4.0-29.el7_2.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.4.0-29.el7_2
       Available: 389-ds-base-1.3.4.0-30.el7_2.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.4.0-30.el7_2
       Available: 389-ds-base-1.3.4.0-32.el7_2.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.4.0-32.el7_2
       Available: 389-ds-base-1.3.4.0-33.el7_2.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.4.0-33.el7_2
       Available: 389-ds-base-1.3.5.10-11.el7.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.5.10-11.el7
       Available: 389-ds-base-1.3.5.10-12.el7_3.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.5.10-12.el7_3
       Available: 389-ds-base-1.3.5.10-15.el7_3.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.5.10-15.el7_3
       Available: 389-ds-base-1.3.5.10-18.el7_3.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.5.10-18.el7_3
       Available: 389-ds-base-1.3.5.10-20.el7_3.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.5.10-20.el7_3
       Available: 389-ds-base-1.3.5.10-21.el7_3.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.5.10-21.el7_3
       Available: 389-ds-base-1.3.6.1-16.el7.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.6.1-16.el7
       Available: 389-ds-base-1.3.6.1-19.el7_4.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.6.1-19.el7_4
       Available: 389-ds-base-1.3.6.1-21.el7_4.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.6.1-21.el7_4
       Available: 389-ds-base-1.3.6.1-24.el7_4.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.6.1-24.el7_4
       Available: 389-ds-base-1.3.6.1-26.el7_4.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.6.1-26.el7_4
       Available: 389-ds-base-1.3.6.1-28.el7_4.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.6.1-28.el7_4
       Available: 389-ds-base-1.3.6.1-29.el7_4.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.6.1-29.el7_4
       Available: 389-ds-base-1.3.7.5-18.el7.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.7.5-18.el7
       Available: 389-ds-base-1.3.7.5-19.el7_5.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.7.5-19.el7_5
       Available: 389-ds-base-1.3.7.5-21.el7_5.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.7.5-21.el7_5
       Available: 389-ds-base-1.3.7.5-24.el7_5.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.7.5-24.el7_5
       Available: 389-ds-base-1.3.7.5-25.el7_5.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.7.5-25.el7_5
       Available: 389-ds-base-1.3.7.5-28.el7_5.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.7.5-28.el7_5
       Available: 389-ds-base-1.3.8.4-15.el7.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.8.4-15.el7
       Available: 389-ds-base-1.3.8.4-18.el7_6.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.8.4-18.el7_6
       Available: 389-ds-base-1.3.8.4-22.el7_6.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.8.4-22.el7_6
       Available: 389-ds-base-1.3.8.4-23.el7_6.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.8.4-23.el7_6
       Available: 389-ds-base-1.3.8.4-25.1.el7_6.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.8.4-25.1.el7_6
       Available: 389-ds-base-1.3.9.1-10.el7.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.9.1-10.el7
       Available: 389-ds-base-1.3.9.1-12.el7_7.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.9.1-12.el7_7
       Available: 389-ds-base-1.3.9.1-13.el7_7.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.9.1-13.el7_7
       Available: 389-ds-base-1.3.10.1-5.el7.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.10.1-5.el7
       Available: 389-ds-base-1.3.10.1-9.el7_8.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.10.1-9.el7_8
       Available: 389-ds-base-1.3.10.1-14.el7_8.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.10.1-14.el7_8
       Available: 389-ds-base-1.3.10.2-6.el7.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.10.2-6.el7
       Available: 389-ds-base-1.3.10.2-7.1.el7_9.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.10.2-7.1.el7_9
       Available: 389-ds-base-1.3.10.2-8.el7_9.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.10.2-8.el7_9
       Available: 389-ds-base-1.3.10.2-10.el7_9.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.10.2-10.el7_9
       Available: 389-ds-base-1.3.10.2-12.el7_9.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.10.2-12.el7_9
       Available: 389-ds-base-1.3.10.2-13.el7_9.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.10.2-13.el7_9
       Available: 389-ds-base-1.3.10.2-14.el7_9.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.10.2-14.el7_9
       Available: 389-ds-base-1.3.10.2-15.el7_9.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.10.2-15.el7_9
       Available: 389-ds-base-1.3.10.2-16.el7_9.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.10.2-16.el7_9
       Available: 389-ds-base-1.3.10.2-17.el7_9.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.10.2-17.el7_9
       Available: 389-ds-base-1.3.11.1-1.el7_9.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.11.1-1.el7_9
       Available: 389-ds-base-1.3.11.1-2.el7_9.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.11.1-2.el7_9
       Available: 389-ds-base-1.3.11.1-3.el7_9.x86_64 (rhel-7-server-rhui-rpms)
           389-ds-base = 1.3.11.1-3.el7_9

我看到它显示 389-ds-base-1.3.10.2-9.el7_9.x86_64 丢失,但是当我这样做时:

$ rpm -qa | grep 389-ds-base
389-ds-base-1.3.10.2-9.el7_9.x86_64
389-ds-base-snmp-1.3.10.2-9.el7_9.x86_64
389-ds-base-libs-1.3.10.2-9.el7_9.x86_64

它表明它已安装。我不知道该怎么做,我一直试图通过日志或其他帖子找出答案,但没有运气。任何帮助将不胜感激。

答案1

我找到了这个解决依赖性错误最终只是删除了支撑它的包(389-ds-base-snmp-1.3.10.2-9.el7_9.x86_64)。删除它后我能够成功运行 yum update 。

我注意到 snmp 软件包不再存在,并且看到可选的 rpm 存储库未启用,因此启用后我能够更新到最新的软件包。

相关内容