Dnf update failed with Rocky Linux 9.8 (Blue Onyx)

Problem 1: package gd3php-2.3.3-9.el9.remi.x86_64 from @System requires libavif.so.15()(64bit), but none of the providers can be installed

  • cannot install both libavif-1.1.1-2.el9.next.x86_64 from epel-next and libavif-0.11.1-5.el9.x86_64 from @System
  • cannot install both libavif-1.1.1-2.el9.next.x86_64 from epel-next and libavif-0.11.1-5.el9.x86_64 from epel
  • cannot install the best update candidate for package libavif-0.11.1-5.el9.x86_64
  • cannot install the best update candidate for package gd3php-2.3.3-9.el9.remi.x86_64
  • nothing provides libdav1d.so.6()(64bit) needed by libavif-0.11.1-0.x86_64 from remi-safe
  • Problem 2: package php-gd-8.3.33-1.module_php.8.3.el9.remi.x86_64 from @System requires libgd.so.103()(64bit), but none of the providers can be installed
  • package gd3php-2.3.3-9.el9.remi.x86_64 from @System requires libavif.so.15()(64bit), but none of the providers can be installed
  • package gd3php-2.3.3-9.el9.remi.x86_64 from remi-safe requires libavif.so.15()(64bit), but none of the providers can be installed
  • package gd3php-2.3.3-8.el9.remi.x86_64 from remi-safe requires libavif.so.14()(64bit), but none of the providers can be installed
  • package libavif-0.11.1-5.el9.x86_64 from @System requires libSvtAv1Enc.so.0()(64bit), but none of the providers can be installed
  • package libavif-0.11.1-5.el9.x86_64 from epel requires libSvtAv1Enc.so.0()(64bit), but none of the providers can be installed
  • package libavif0.10-0.10.1-2.el9.x86_64 from epel requires libSvtAv1Enc.so.0()(64bit), but none of the providers can be installed
  • cannot install both svt-av1-libs-2.3.0-2.el9.next.x86_64 from epel-next and svt-av1-libs-0.9.0-1.el9.x86_64 from @System
  • cannot install both svt-av1-libs-2.3.0-2.el9.next.x86_64 from epel-next and svt-av1-libs-0.9.0-1.el9.x86_64 from epel
  • cannot install the best update candidate for package svt-av1-libs-0.9.0-1.el9.x86_64
  • cannot install the best update candidate for package php-gd-8.3.33-1.module_php.8.3.el9.remi.x86_64
  • nothing provides libdav1d.so.6()(64bit) needed by libavif-0.11.1-0.x86_64 from remi-safe
    (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)

followed some online AI suggestion. None help to resolve the problem

I’ve found a fix online:

sudo dnf --disablerepo=“epel-next*” install gd3php

sudo dnf config-manager --set-disabled epel-next

sudo /usr/bin/crb enable

sudo dnf update

sucessful

According to the AI…

Why This Is Happening

  • Version Mismatch: gd3php from Remi requires libavif.so.15, which is provided by the stable EPEL 9 package (libavif-0.11.1-5.el9)
  1. .
  2. Conflicting Repositories: Your system is trying to pull in the newer libavif-1.1.1 and svt-av1-libs-2.3.0 from the EPEL Next repository

. These newer packages provide different library versions (like libSvtAv1Enc.so.2 instead of .so.0), causing the dependency chain to break

The EPEL Next is described:

EPEL Next is an additional repository that allows package maintainers to alternatively build against CentOS Stream. This is sometimes necessary when CentOS Stream contains an upcoming RHEL library rebase, or if an EPEL package has a minimum version build requirement that is already in CentOS Stream but not yet in RHEL.

That is, The EPEL Next [9] is a repository for CentOS Stream 9. It is not for Rocky Linux 9.
You should use only repositories, whose packages are built for Rocky Linux 9.

I’m not awared I’m using CentOS Stream. How do I mitigate this issue?

Well, it was explained. You cannot use epel-next repository on Rocky Linux. Once it’s disabled you don’t have a problem - which you found already as you posted about it.