Unable to patch server with security advisory (RHSA) using dnf/yum update command.

Solution Verified - Updated -

Issue

  • When attempting to apply specific Red Hat Security Advisory (RHSA) e.g. RHSA-2025:xxxx update on RHEL, the yum/dnf command fails with dnf exception DepsolveError:

    # dnf update --advisory RHSA-2025:xxxx
    
    dnf.exceptions.DepsolveError: 
    Problem 1: libgcc-8.5.0-24.el8_10.i686 from @System  does not belong to a distupgrade repository
    - cannot install both libgcc-8.5.0-26.el8_10.x86_64 from rhel-8-for-x86_64-baseos-rpms and libgcc-8.5.0-24.el8_10.x86_64 from @System
    - cannot install both libgcc-8.5.0-26.el8_10.x86_64 from rhel-8-for-x86_64-baseos-rpms and libgcc-8.5.0-24.el8_10.x86_64 from rhel-8-for-x86_64-baseos-rpms
    - cannot install the best update candidate for package libgcc-8.5.0-24.el8_10.i686
    - cannot install the best update candidate for package libgcc-8.5.0-24.el8_10.x86_64
    Problem 2: libstdc++-8.5.0-24.el8_10.i686 from @System  does not belong to a distupgrade repository
    - cannot install both libstdc++-8.5.0-26.el8_10.x86_64 from rhel-8-for-x86_64-baseos-rpms and libstdc++-8.5.0-24.el8_10.x86_64 from @System
    - cannot install both libstdc++-8.5.0-26.el8_10.x86_64 from rhel-8-for-x86_64-baseos-rpms and libstdc++-8.5.0-24.el8_10.x86_64 from rhel-8-for-x86_64-baseos-rpms
    - cannot install the best update candidate for package libstdc++-8.5.0-24.el8_10.i686
    - cannot install the best update candidate for package libstdc++-8.5.0-24.el8_10.x86_64
    

Environment

  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content