Unable to patch server with security advisory (RHSA) by yum update command.

Solution Verified - Updated -

Issue

  • Running yum update --advisory RHSA-XXXX-XXXX failed due to dnf exception DepsolveError.

      Traceback (most recent call last):
    File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 130, in cli_run
    ret = resolving(cli, base)
    File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 166, in resolving
    base.resolve(cli.demands.allow_erasing)
    File "/usr/lib/python3.6/site-packages/dnf/base.py", line 906, in resolve
    raise exc
    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
    2025-04-14T14:08:14+0800 CRITICAL Error: 
    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
    2025-04-14T14:08:14+0800 INFO (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)
    

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