Have error on dnf update

Rocky Linux 10.
dnf update and have this :

dnf update
Last metadata expiration check: 1:13:16 ago on Thu 16 Jul 2026 09:40:35 PM EEST.
Error:
Problem: cannot install the best update candidate for package python-unversioned-command-3.12.13-2.el10_2.noarch

  • nothing provides python3 = 3.12.13-2.el10_2.1 needed by python-unversioned-command-3.12.13-2.el10_2.1.noarch from appstream
    (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

How to repair this ?
Serg

This is most likely because you’re getting different mirrors for baseos and appstream. Your appstream metadata is up-to-date, while your baseos metadata is out of date.

You can try running dnf --refresh update and see if that works.

Thank you .
This is result:
dnf update --refresh
Extra Packages for Enterprise Linux 10 - x86_64 66 kB/s | 16 kB 00:00
Extra Packages for Enterprise Linux 10 - x86_64 5.3 MB/s | 6.6 MB 00:01
Rocky Linux 10 - BaseOS 15 kB/s | 4.3 kB 00:00
Rocky Linux 10 - BaseOS 5.7 MB/s | 3.1 MB 00:00
Rocky Linux 10 - AppStream 16 kB/s | 4.3 kB 00:00
Rocky Linux 10 - CRB 16 kB/s | 4.3 kB 00:00
Rocky Linux 10 - Extras 11 kB/s | 3.1 kB 00:00
Error:
Problem: cannot install the best update candidate for package python-unversioned-command-3.12.13-2.el10_2.noarch

  • nothing provides python3 = 3.12.13-2.el10_2.1 needed by python-unversioned-command-3.12.13-2.el10_2.1.noarch from appstream
    (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

My nearest mirror does (now) have version 3.12.13-2.el10_2.1 of both packages.

If the mirror servers are different and metadata does come from servers, then
the mirror that did not yet have the el10_2.1 would still supply the metadata
that does not know about the el10_2.1 packages?

Do the

dnf repoinfo baseos
dnf repoinfo appstream

list different host in ‘Repo-baseurl’?


I do usually:

dnf clean all

It might make dnf select different mirrors.


To show the package versions that dnf sees now:

dnf list --showduplicates python3 python-unversioned-command

and this

 dnf list --showduplicates python3 python-unversioned-command
Last metadata expiration check: 0:05:59 ago on Fri 17 Jul 2026 01:12:27 PM EEST.
Installed Packages
python-unversioned-command.noarch                              3.12.13-2.el10_2                                 @appstream
python3.x86_64                                                 3.12.13-2.el10_2                                 @baseos   
Available Packages
python-unversioned-command.noarch                              3.12.13-2.el10_2                                 appstream 
python-unversioned-command.noarch                              3.12.13-2.el10_2.1                               appstream 
python3.x86_64                                                 3.12.13-2.el10_2                                 baseos    

After this steps:

dnf clean all
sleep 300
dnf update --refsresh

Problem resolved. Thank you for help !
Now:

dnf update
Last metadata expiration check: 0:01:51 ago on Fri 17 Jul 2026 01:35:33 PM EEST.
Dependencies resolved.
Nothing to do.
Complete!

These were indeed two different mirrors:

rockylinux.netforce.hosting
distrohub.kyiv.ua

The rockylinux.netforce.hosting has/had stale mirror?


Have those urls now changed? This lists both baseurl compactly:

dnf repoinfo appstream baseos | sed -n "/Repo-baseurl/ sT.*//TTp"

This is commands and results:
$ date
Fri Jul 17 02:35:15 PM EEST 2026
$ dnf repoinfo appstream baseos | sed -n “/Repo-baseurl/ sT.*//TTp”
Extra Packages for Enterprise Linux 10 - x86_64 4.5 MB/s | 6.6 MB 00:01
Rocky Linux 10 - BaseOS 5.5 MB/s | 3.1 MB 00:00
Rocky Linux 10 - AppStream 4.6 MB/s | 2.2 MB 00:00
Rocky Linux 10 - CRB 1.5 MB/s | 495 kB 00:00
Rocky Linux 10 - Extras 19 kB/s | 5.8 kB 00:00
rockylinux.netforce.hosting/rocky/10.2/AppStream/x86_64/os/ (56 more)
rockylinux.netforce.hosting/rocky/10.2/BaseOS/x86_64/os/ (56 more)
$

If we browse https://rockylinux.netforce.hosting/rocky/ (that you do now use), then we see that latest timestamps there seem to be 2026-06-05 (more than a month old).

The other mirror, https://distrohub.kyiv.ua/rockylinux/ has timestamps up to 2026-07-16 (yesterday).

The rockylinux.netforce.hosting is not a good mirror, because it is not in sync with Rocky.


You do not see issues in “dnf update”, because it now consistently sees only old packages.

You do have the issue that you cannot update your Rocky (because dnf chose a stale mirror).

  1. Which one mirror should I replace it with?
  2. Why did the installer choose mirrors that don’t update?
  3. Which mirrors are preferable to use ?

For 2: The installer does not know better. The assumption is that all mirrors are up to date.

If a mirror is not syncing, then its maintainer and/or Rocky’s mirror service maintainers should be contacted in order to fix the sync or to remove the server from the list of mirrors.