【问题标题】:Error "best candidate" while doing yum update执行 yum update 时出错“best candidate”
【发布时间】:2022-12-15 17:13:33
【问题描述】:

执行sudo yum update时如何解决以下错误

#sudo yum update
Error:
 Problem 1: cannot install the best update candidate for package netdata-1.30.1-2.el8.x86_64
  - nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by netdata-1.37.1-1.el8.x86_64
 Problem 2: package netdata-1.30.1-2.el8.x86_64 requires netdata-conf = 1.30.1-2.el8, but none of the providers can be installed
  - cannot install both netdata-conf-1.37.1-1.el8.noarch and netdata-conf-1.30.1-2.el8.noarch
  - problem with installed package netdata-1.30.1-2.el8.x86_64
  - cannot install the best update candidate for package netdata-conf-1.30.1-2.el8.noarch
  - nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by netdata-1.36.1-1.el8.x86_64
  - nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by netdata-1.37.1-1.el8.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)

【问题讨论】:

    标签: linux unix redhat yum


    【解决方案1】:

    尝试清理缓存,然后更新。

    # sudo yum clean all
    # sudo yum check
    # sudo yum check-update
    # sudo yum update
    

    如果仍然存在问题,请尝试使用 sudo yum update --nobest 命令。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-10-05
      • 1970-01-01
      • 2021-09-13
      • 1970-01-01
      • 2013-08-14
      • 2021-12-14
      • 1970-01-01
      相关资源
      最近更新 更多