当在centos 8上发出命令dnf upgrade时,我会收到以下命令:
Error:
Problem 1: package net-snmp-perl-1:5.8-7.el8.2.x86_64 requires net-snmp-agent-libs(x86-64) = 1:5.8-7.el8.2, but none of the providers can be installed
- cannot install both net-snmp-agent-libs-1:5.8-10.el8.x86_64 and net-snmp-agent-libs-1:5.8-7.el8.2.x86_64
- cannot install both net-snmp-agent-libs-1:5.8-7.el8.2.x86_64 and net-snmp-agent-libs-1:5.8-10.el8.x86_64
- cannot install the best update candidate for package net-snmp-perl-1:5.8-7.el8.2.x86_64
- cannot install the best update candidate for package net-snmp-agent-libs-1:5.8-7.el8.2.x86_64
Problem 2: package net-snmp-gui-1:5.8-7.el8.2.x86_64 requires net-snmp-perl(x86-64) = 1:5.8-7.el8.2, but none of the providers can be installed
- package net-snmp-perl-1:5.8-7.el8.2.x86_64 requires net-snmp-libs(x86-64) = 1:5.8-7.el8.2, but none of the providers can be installed
- cannot install both net-snmp-libs-1:5.8-10.el8.x86_64 and net-snmp-libs-1:5.8-7.el8.2.x86_64
- cannot install both net-snmp-libs-1:5.8-7.el8.2.x86_64 and net-snmp-libs-1:5.8-10.el8.x86_64
- cannot install the best update candidate for package net-snmp-libs-1:5.8-7.el8.2.x86_64
- cannot install the best update candidate for package net-snmp-gui-1:5.8-7.el8.2.x86_64
Problem 3: problem with installed package net-snmp-perl-1:5.8-7.el8.2.x86_64
- package net-snmp-perl-1:5.8-7.el8.2.x86_64 requires net-snmp-agent-libs(x86-64) = 1:5.8-7.el8.2, but none of the providers can be installed
- cannot install both net-snmp-agent-libs-1:5.8-10.el8.x86_64 and net-snmp-agent-libs-1:5.8-7.el8.2.x86_64
- cannot install both net-snmp-agent-libs-1:5.8-7.el8.2.x86_64 and net-snmp-agent-libs-1:5.8-10.el8.x86_64
- package net-snmp-1:5.8-10.el8.x86_64 requires net-snmp-agent-libs(x86-64) = 1:5.8-10.el8, but none of the providers can be installed
- cannot install the best update candidate for package net-snmp-1:5.8-7.el8.2.x86_64
Problem 4: problem with installed package net-snmp-gui-1:5.8-7.el8.2.x86_64
- package net-snmp-gui-1:5.8-7.el8.2.x86_64 requires net-snmp-perl(x86-64) = 1:5.8-7.el8.2, but none of the providers can be installed
- package net-snmp-perl-1:5.8-7.el8.2.x86_64 requires net-snmp-libs(x86-64) = 1:5.8-7.el8.2, but none of the providers can be installed
- cannot install both net-snmp-libs-1:5.8-10.el8.x86_64 and net-snmp-libs-1:5.8-7.el8.2.x86_64
- cannot install both net-snmp-libs-1:5.8-7.el8.2.x86_64 and net-snmp-libs-1:5.8-10.el8.x86_64
- package net-snmp-utils-1:5.8-10.el8.x86_64 requires net-snmp-libs(x86-64) = 1:5.8-10.el8, but none of the providers can be installed
- cannot install the best update candidate for package net-snmp-utils-1:5.8-7.el8.2.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)任何关于我可以在这个问题上做什么的线索,而不必使用--allowerasing和--skip-broken,因为我试图理解消息的含义,但不幸的是,我无法判断是哪个包导致了这个问题。
我也注意到了这一点:
[root@localhost ~]# yum list installed | grep snmp
Modular dependency problems:
Problem 1: conflicting requests
- nothing provides module(perl:5.26) needed by module perl-DBD-MySQL:4.046:8010020191114030811:073fa5fe-0.x86_64
Problem 2: conflicting requests
- nothing provides module(perl:5.26) needed by module perl-DBD-SQLite:1.58:8010020191114033549:073fa5fe-0.x86_64
Problem 3: conflicting requests
- nothing provides module(perl:5.26) needed by module perl-DBI:1.641:8010020191113222731:16b3ab4d-0.x86_64
net-snmp.x86_64 1:5.8-7.el8.2 @okay
net-snmp-agent-libs.x86_64 1:5.8-7.el8.2 @okay
net-snmp-gui.x86_64 1:5.8-7.el8.2 @okay
net-snmp-libs.x86_64 1:5.8-7.el8.2 @okay
net-snmp-perl.x86_64 1:5.8-7.el8.2 @okay
net-snmp-utils.x86_64 1:5.8-7.el8.2 @okay
pcp-pmda-snmp.x86_64 4.3.2-2.el8 @AppStream
snmptt.noarch 1.4-1.7 @@commandline此外,还包括:
[root@localhost ~]# rpm -qa | grep snmp
net-snmp-agent-libs-5.8-7.el8.2.x86_64
net-snmp-perl-5.8-7.el8.2.x86_64
net-snmp-utils-5.8-7.el8.2.x86_64
net-snmp-5.8-7.el8.2.x86_64
pcp-pmda-snmp-4.3.2-2.el8.x86_64
snmptt-1.4-1.7.noarch
net-snmp-libs-5.8-7.el8.2.x86_64
net-snmp-gui-5.8-7.el8.2.x86_64谢谢
发布于 2020-01-24 00:34:05
编辑2020年6月8日:我在Redhat上注册了一个bug,因为我有一个额外的支持,bug #1773441。Redhat并不是longr构建,所以我认为1:5.8-12.el8_1.1很快就会面世。
我发现了这个问题,似乎Centos 8不存在net perl-1:5.8-10.el8,为什么要安装net perl,它将这些包降级为1:5.8-7.el8。显然,这次使用Centos 8是个坏主意。我需要手动安装许多缺少的软件包,例如snmptt,您是否知道如何请求此包才能用于Centos 8?
=======================================================================================================================================================
Package Architecture Version Repository Size
=======================================================================================================================================================
Upgrading:
net-snmp x86_64 1:5.8-10.el8 AppStream 353 k
net-snmp-agent-libs x86_64 1:5.8-10.el8 AppStream 751 k
net-snmp-utils x86_64 1:5.8-10.el8 AppStream 238 k
net-snmp-libs x86_64 1:5.8-10.el8 BaseOS 822 k
Removing dependent packages:
net-snmp-perl x86_64 1:5.8-7.el8.2 @okay 1.2 M
Transaction Summary
=======================================================================================================================================================
Upgrade 4 Packages
Remove 1 Packagehttps://unix.stackexchange.com/questions/563497
复制相似问题