Unable to patch server with security advisory (RHSA) using dnf/yum update command.
Issue
-
When attempting to apply specific Red Hat Security Advisory (RHSA) e.g.
RHSA-2025:xxxxupdate on RHEL, the yum/dnf command fails with dnf exceptionDepsolveError:# 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.