dnf 업그레이드 문제

dnf 업그레이드 문제

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

감사해요

답변1

편집하다2020년 6월 8일: Redhat에 버그를 제출했는데 프리미엄 지원을 받았기 때문에 버그가 발생했습니다.#1773441. Redhat은 더 이상 net-snmp-perl을 빌드하지 않으므로 net-snmp-perl 1:5.8-12.el8_1.1이 곧 제공될 것이라고 가정합니다.

문제를 발견했습니다. Centos 8에는 net-snmp-perl-1:5.8-10.el8이 없는 것 같습니다. net-snmp-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 Package

관련 정보