AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 563497
Accepted
elekgeek
elekgeek
Asked: 2020-01-23 10:58:27 +0800 CST2020-01-23 10:58:27 +0800 CST 2020-01-23 10:58:27 +0800 CST

dnf升级问题

  • 772

在 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

谢谢

upgrade centos
  • 1 1 个回答
  • 1913 Views

1 个回答

  • Voted
  1. Best Answer
    elekgeek
    2020-01-24T16:34:05+08:002020-01-24T16:34:05+08:00

    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
    
    • 0

相关问题

  • smartmontools - 自动测试是否与运行简短测试相同?

  • systemctl 命令在 RHEL 6 中不起作用

  • 为什么我的交换机没有从指定的池中获取地址

  • 在 CentOS7 GNOME 的 Applications-menu 选项卡中创建自定义菜单

  • 奇怪的路由器与centos 6一起工作[关闭]

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve