Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-21874

dnf-automatic will bring the "best update candidate" error, but dnf update will not

    • dnf-4.14.0-11.el9
    • None
    • None
    • rhel-sst-cs-software-management
    • ssg_core_services
    • 10
    • 12
    • None
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • None
    • Bug Fix
    • Hide
      .The `dnf-automatic` `systemd` service no longer fails to apply security updates

      Previously, when you used the `dnf-automatic-install` `systemd` service to only apply security fixes, the automatic upgrade of the `samba-client-libs` package failed. With this update, `dnf-automatic` applies security updates the same way as the DNF tool. As a result, the `dnf-automatic` service no longer fails to apply security updates.
      Show
      .The `dnf-automatic` `systemd` service no longer fails to apply security updates Previously, when you used the `dnf-automatic-install` `systemd` service to only apply security fixes, the automatic upgrade of the `samba-client-libs` package failed. With this update, `dnf-automatic` applies security updates the same way as the DNF tool. As a result, the `dnf-automatic` service no longer fails to apply security updates.
    • Done
    • None

      - What were you trying to do that didn't work?

      Using dnf-automatic to only update the security package.

      - Please provide the package NVR for which bug is seen:

      dnf-automatic-4.14.0-8.el9.noarch

      - How reproducible:

      The version of the libldb and samba-clients-libs which based on RHEL 9.0 ga version:

      libldb-2.4.1-1.el9.x86_64 
      samba-client-libs-4.15.5-105.el9_0.x86_64
      

      Install the dnf-automatic package by:

      # yum install dnf-automatic

      Modify the /etc/dnf/automatic.conf file, change the upgrade_type to security:

      security                           = only the security upgrades
      upgrade_type = security  

      Start the dnf-automatic-install.service to trigger update:

      # systemctl enable --now dnf-automatic-install.service

      - Expected results

      Can do the update normally.

      - Actual results

      Failed with the dnf.log:

      2024-01-17T15:17:50+0800 ERROR Error:
       Problem: package samba-client-libs-4.18.6-101.el9_3.x86_64 from rhel-9-for-x86_64-baseos-rpms requires libldb.so.2(LDB_2.6.1)(64bit), but none of the providers can be installed
        - cannot install both libldb-2.6.1-1.el9.x86_64 from rhel-9-for-x86_64-baseos-rpms and libldb-2.5.2-1.el9.x86_64 from rhel-9-for-x86_64-baseos-rpms
        - cannot install both libldb-2.7.2-2.el9.x86_64 from rhel-9-for-x86_64-baseos-rpms and libldb-2.5.2-1.el9.x86_64 from rhel-9-for-x86_64-baseos-rpms
        - cannot install the best update candidate for package samba-client-libs-4.15.5-105.el9_0.x86_64
        - cannot install the best update candidate for package libldb-2.4.1-1.el9.x86_64

      Or in message:

      Jan 17 15:17:48 rh9net dnf-automatic[17506]: Updating Subscription Management repositories.
      Jan 17 15:17:50 rh9net dnf-automatic[17506]: Last metadata expiration check: 0:14:01 ago on Wed 17 Jan 2024 03:03:49 PM CST.
      Jan 17 15:17:50 rh9net dnf-automatic[17506]: Error:
      Jan 17 15:17:50 rh9net dnf-automatic[17506]: Problem: package samba-client-libs-4.18.6-101.el9_3.x86_64 from rhel-9-for-x86_64-baseos-rpms requires libldb.so.2(LDB_2.6.1)(64bit), but none of the providers can be installed
      Jan 17 15:17:50 rh9net dnf-automatic[17506]:  - cannot install both libldb-2.6.1-1.el9.x86_64 from rhel-9-for-x86_64-baseos-rpms and libldb-2.5.2-1.el9.x86_64 from rhel-9-for-x86_64-baseos-rpms
      Jan 17 15:17:50 rh9net dnf-automatic[17506]:  - cannot install both libldb-2.7.2-2.el9.x86_64 from rhel-9-for-x86_64-baseos-rpms and libldb-2.5.2-1.el9.x86_64 from rhel-9-for-x86_64-baseos-rpms
      Jan 17 15:17:50 rh9net dnf-automatic[17506]:  - cannot install the best update candidate for package samba-client-libs-4.15.5-105.el9_0.x86_64
      Jan 17 15:17:50 rh9net dnf-automatic[17506]:  - cannot install the best update candidate for package libldb-2.4.1-1.el9.x86_64
      Jan 17 15:17:50 rh9net systemd[1]: dnf-automatic-install.service: Main process exited, code=exited, status=1/FAILURE
      Jan 17 15:17:50 rh9net systemd[1]: dnf-automatic-install.service: Failed with result 'exit-code'.
      Jan 17 15:17:50 rh9net systemd[1]: Failed to start dnf automatic install updates.
      Jan 17 15:17:50 rh9net systemd[1]: dnf-automatic-install.service: Consumed 1.102s CPU time.

      It is fine if updated manually:

      #dnf update --security

      And If update the samba-client-libs or libldb first, the issue will be gone.

              rhn-support-ppisar Petr Pisar
              rhn-support-xiaoyali Xiaoyan Liu
              packaging-team-maint packaging-team-maint
              Tomas Bajer Tomas Bajer
              Mariya Pershina Mariya Pershina
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: