Forum Stats

  • 3,759,046 Users
  • 2,251,494 Discussions
  • 7,870,477 Comments

Discussions

dnf/yum error with nagios-plugins from ol8_developer_EPEL

User_500WN
User_500WN Member Posts: 3 Red Ribbon
edited Aug 16, 2021 2:07PM in Oracle Linux

I have the paradoxical situation that I can install the Nagios plugins using...

# yum install nagios-plugins-all
[...]
 nagios-plugins                 x86_64    2.3.3-5.el8                                 ol8_developer_EPEL       119 k
[...]
 nagios-plugins-ssl_validity    x86_64    2.3.3-5.el8                                 ol8_developer_EPEL        29 k
[...]

...but afterwards the following command fails (although the mentioned packages have been installed seconds ago and are current):

# yum update
Last metadata expiration check: 0:00:50 ago on Mon 16 Aug 2021 01:15:41 PM CEST.
Error:
 Problem: cannot install both nagios-plugins-2.3.3-3.el8.x86_64 and nagios-plugins-2.3.3-5.el8.x86_64
  - cannot install the best update candidate for package nagios-plugins-ssl_validity-2.3.3-5.el8.x86_64
  - cannot install the best update candidate for package nagios-plugins-2.3.3-5.el8.x86_64

Fedora's EPEL doesn't exhibit this behaviour. I can't make up my mind why any of the 2.3.3-5 packages should have a dependency against the earlier release 2.3.3-3. Do you have an idea?

Tagged:

Best Answer

  • User_500WN
    User_500WN Member Posts: 3 Red Ribbon
    edited Aug 17, 2021 10:50AM Accepted Answer

    For the reason see my other comment.

    The solution for now is to exclude the specific package version in repository.

    # dnf config-manager --save --setopt ol8_developer_EPEL.exclude=nagios-plugins-2.3.3-3.el8.x86_64
    

Answers

  • User_500WN
    User_500WN Member Posts: 3 Red Ribbon
    edited Aug 16, 2021 2:21PM

    I think I found it. The package nagios-plugins-ssl_validity was temporarily removed in 2.3.3-3.el8. (cf. repodata/updateinfo):

    - Obsolete check_ssl_validity.  To be reinstated when CentOS 8.2 is released.  BZ#1837397
    

    It was reintroduced later on. Unfortunately ol8_developer_EPEL still contains the old nagios-plugins release that obsoleted it (cf. repodata/primary):

    <package type="rpm">
      <name>nagios-plugins</name>
      <arch>x86_64</arch>
      <version epoch="0" ver="2.3.3" rel="3.el8"/>
    [...]
        <rpm:obsoletes>
          <rpm:entry name="nagios-plugins-linux_raid" flags="LT" epoch="0" ver="1.4.16" rel="11"/>
          <rpm:entry name="nagios-plugins-ssl_validity" flags="LE" epoch="0" ver="2.3.3"/>
        </rpm:obsoletes>
    [...]
    

    This creates the shown version clash (circular dependency). Where should I report the issue as a bug? A possible solution would be to retire the release 2.3.3-3.el8 (as upstream did).

  • User_500WN
    User_500WN Member Posts: 3 Red Ribbon
    edited Aug 17, 2021 10:50AM Accepted Answer

    For the reason see my other comment.

    The solution for now is to exclude the specific package version in repository.

    # dnf config-manager --save --setopt ol8_developer_EPEL.exclude=nagios-plugins-2.3.3-3.el8.x86_64