Problems when trying to upgrade v9.4 to 9.5

I tried to update my existing v9.4 to 9.5 using dnf update, but I get the following error and cannot update. Does anyone know how to resolve this?

$ sudo dnf update
Last metadata expiration check: 0:00:53 ago on Mon Dec 30 09:30:20 2024.
Error:
Problem 1: cannot install the best update candidate for package NetworkManager-cloud-setup-1:1.46.0-19.el9_4.aarch64

  • nothing provides NetworkManager = 1:1.48.10-3.el9_5 needed by NetworkManager-cloud-setup-1:1.48.10-3.el9_5.aarch64 from appstream
  • nothing provides NetworkManager-libnm(aarch-64) = 1:1.48.10-3.el9_5 needed by NetworkManager-cloud-setup-1:1.48.10-3.el9_5.aarch64 from appstream
    Problem 2: cannot install the best update candidate for package avahi-glib-0.8-20.el9.aarch64
  • nothing provides avahi-libs(aarch-64) = 0.8-21.el9 needed by avahi-glib-0.8-21.el9.aarch64 from appstream
    Problem 3: cannot install the best update candidate for package flatpak-1.12.9-3.el9_4.aarch64
  • nothing provides bubblewrap >= 0.4.1-8 needed by flatpak-1.12.9-3.el9_5.aarch64 from appstream
    Problem 4: cannot install the best update candidate for package flatpak-selinux-1.12.9-3.el9_4.noarch
  • nothing provides selinux-policy >= 38.1.45-3.el9_5 needed by flatpak-selinux-1.12.9-3.el9_5.noarch from appstream
  • nothing provides selinux-policy-base >= 38.1.45-3.el9_5 needed by flatpak-selinux-1.12.9-3.el9_5.noarch from appstream
    Problem 5: cannot install the best update candidate for package ipa-selinux-4.11.0-15.el9_4.alma.1.noarch
  • nothing provides selinux-policy >= 38.1.45-3.el9_5 needed by ipa-selinux-4.12.2-1.el9_5.2.alma.1.noarch from appstream
  • nothing provides selinux-policy-base >= 38.1.45-3.el9_5 needed by ipa-selinux-4.12.2-1.el9_5.2.alma.1.noarch from appstream
    Problem 6: cannot install the best update candidate for package p11-kit-server-0.25.3-2.el9.aarch64
  • nothing provides p11-kit(aarch-64) = 0.25.3-3.el9_5 needed by p11-kit-server-0.25.3-3.el9_5.aarch64 from appstream
    Problem 7: cannot install the best update candidate for package perl-Net-SSLeay-1.92-2.el9.aarch64
  • nothing provides libssl.so.3(OPENSSL_3.2.0)(64bit) needed by perl-Net-SSLeay-1.94-1.el9.aarch64 from appstream
    Problem 8: cannot install the best update candidate for package python-unversioned-command-3.9.18-3.el9_4.6.noarch
  • nothing provides python3 = 3.9.21-1.el9_5 needed by python-unversioned-command-3.9.21-1.el9_5.noarch from appstream
    Problem 9: cannot install the best update candidate for package python3-audit-3.1.2-2.el9.aarch64
  • nothing provides audit-libs(aarch-64) = 3.1.5-1.el9 needed by python3-audit-3.1.5-1.el9.aarch64 from appstream
    Problem 10: cannot install the best update candidate for package python3-libsemanage-3.6-1.el9.aarch64
  • nothing provides libsemanage(aarch-64) = 3.6-2.1.el9_5 needed by python3-libsemanage-3.6-2.1.el9_5.aarch64 from appstream
    Problem 11: cannot install the best update candidate for package rpm-build-4.16.1.3-29.el9.aarch64
  • nothing provides rpm = 4.16.1.3-34.el9 needed by rpm-build-4.16.1.3-34.el9.aarch64 from appstream
    Problem 12: cannot install the best update candidate for package rpm-plugin-systemd-inhibit-4.16.1.3-29.el9.aarch64
  • nothing provides rpm-libs(aarch-64) = 4.16.1.3-34.el9 needed by rpm-plugin-systemd-inhibit-4.16.1.3-34.el9.aarch64 from appstream
    Problem 13: cannot install the best update candidate for package sssd-idp-2.9.4-6.el9_4.1.alma.1.aarch64
  • nothing provides sssd-common = 2.9.5-4.el9_5.1 needed by sssd-idp-2.9.5-4.el9_5.1.aarch64 from appstream
    Problem 14: package flatpak-1.12.9-3.el9_4.aarch64 from @System requires flatpak-session-helper(aarch-64) = 1.12.9-3.el9_4, but none of the providers can be installed
  • cannot install both flatpak-session-helper-1.12.9-3.el9_5.aarch64 from appstream and flatpak-session-helper-1.12.9-3.el9_4.aarch64 from @System
  • problem with installed package flatpak-1.12.9-3.el9_4.aarch64
  • cannot install the best update candidate for package flatpak-session-helper-1.12.9-3.el9_4.aarch64
  • nothing provides bubblewrap >= 0.4.1-8 needed by flatpak-1.12.9-3.el9_5.aarch64 from appstream
    (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)

Lets look at just that.

  • Repository appstream has package NetworkManager-cloud-setup-1:1.48.10-3.el9_5.aarch64 that would replace currently installed NetworkManager-cloud-setup-1:1.46.0-19.el9_4.aarch64
  • The new version requires NetworkManager-1:1.48.10-3.el9_5.aarch64 but that package is not in any enabled repository
  • The NetworkManager is from repository baseos

I did just look at my closest local mirror and there is NetworkManager-1:1.48.10-3.el9_5.aarch64 in baseos as well as NetworkManager-cloud-setup-1:1.48.10-3.el9_5.aarch64 in appstream.

Possible explanations:

  • Your closest mirror did not have up to date baseos
  • You have somehow disabled baseos
  • The ‘dnf’ has stale cache

One can clear the cache (completely):

sudo dnf --enablerepo=* clean all

One can look at what dnf sees about NetworkManager:

sudo dnf list --showduplicates NetworkManager