# Have error on dnf update

**URL:** <https://forums.rockylinux.org/t/have-error-on-dnf-update/20676>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-10\
**Created:** [July 16, 2026, 7:58pm UTC](https://forums.rockylinux.org/t/have-error-on-dnf-update/20676 "2026-07-16T19:58:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlamintegrator](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rlamintegrator](https://forums.rockylinux.org/u/rlamintegrator)\
**Post date:** [July 16, 2026, 7:58pm UTC](https://forums.rockylinux.org/t/have-error-on-dnf-update/20676/1 "2026-07-16T19:58:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jdieter](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jdieter/32/5063_2.png) [@jdieter](https://forums.rockylinux.org/u/jdieter)\
**Post date:** [July 16, 2026, 8:16pm UTC](https://forums.rockylinux.org/t/have-error-on-dnf-update/20676/2 "2026-07-16T20:16:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![rlamintegrator](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rlamintegrator](https://forums.rockylinux.org/u/rlamintegrator)\
**Post date:** [July 17, 2026, 3:00am UTC](https://forums.rockylinux.org/t/have-error-on-dnf-update/20676/3 "2026-07-17T03:00:35Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [July 17, 2026, 10:09am UTC](https://forums.rockylinux.org/t/have-error-on-dnf-update/20676/4 "2026-07-17T10:09:39Z")

</div>

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

> [@jdieter](#):
>
> you’re getting different mirrors for baseos and appstream

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

```auto
dnf repoinfo baseos
dnf repoinfo appstream

```

list different host in ‘Repo-baseurl’?

* * *

I do usually:

```plaintext
dnf clean all

```

It might make dnf select different mirrors.

* * *

To show the package versions that dnf sees now:

```bash
dnf list --showduplicates python3 python-unversioned-command

```

---

<div class="post-metadata">

**Author:** ![rlamintegrator](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rlamintegrator](https://forums.rockylinux.org/u/rlamintegrator)\
**Post date:** [July 17, 2026, 10:19am UTC](https://forums.rockylinux.org/t/have-error-on-dnf-update/20676/5 "2026-07-17T10:19:04Z")

</div>

> [@jlehtone](#):
>
> Do the
> 
> ```auto
> dnf repoinfo baseos
> dnf repoinfo appstream
> "Do the
> 
> dnf repoinfo baseos
> dnf repoinfo appstream
> 
> list different host in ‘Repo-baseurl’?" - Yes.
> 
> ```
> 
> Look  
> dnf repoinfo baseos  
> Last metadata expiration check: 0:03:09 ago on Fri 17 Jul 2026 01:12:27 PM EEST.  
> Repo-id : baseos  
> Repo-name : Rocky Linux 10 - BaseOS  
> Repo-status : enabled  
> Repo-revision : 10  
> Repo-distro-tags : [cpe:/o:rocky:rocky:10]: , , 0, 1, L, R, c, i, k, n,  
> : o, u, x, y  
> Repo-updated : Fri 05 Jun 2026 03:26:23 PM EEST  
> Repo-pkgs : 1,207  
> Repo-available-pkgs: 1,207  
> Repo-size : 2.0 G  
> Repo-mirrors : [https://mirrors.rockylinux.org/mirrorlist?arch=x86\_64&repo=BaseOS-10](https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=BaseOS-10)  
> Repo-baseurl : [Index of /rocky/10.2/BaseOS/x86\_64/os](http://rockylinux.netforce.hosting/rocky/10.2/BaseOS/x86_64/os/)  
> : (56 more)  
> Repo-expire : 21,600 second(s) (last: Fri 17 Jul 2026 01:12:26 PM EEST)  
> Repo-filename : /etc/yum.repos.d/rocky.repo  
> Total packages: 1,207
> 
> dnf repoinfo appstream  
> Last metadata expiration check: 0:03:41 ago on Fri 17 Jul 2026 01:12:27 PM EEST.  
> Repo-id : appstream  
> Repo-name : Rocky Linux 10 - AppStream  
> Repo-status : enabled  
> Repo-revision : 10  
> Repo-distro-tags : [cpe:/o:rocky:rocky:10]: , , 0, 1, L, R, c, i, k, n, o, u, x, y  
> Repo-updated : Thu 16 Jul 2026 11:20:12 AM EEST  
> Repo-pkgs : 5,502  
> Repo-available-pkgs: 5,502  
> Repo-size : 11 G  
> Repo-mirrors : [https://mirrors.rockylinux.org/mirrorlist?arch=x86\_64&repo=AppStream-10](https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=AppStream-10)  
> Repo-baseurl : [Index of /rockylinux/10.2/AppStream/x86\_64/os/](https://distrohub.kyiv.ua/rockylinux/10.2/AppStream/x86_64/os/) (56 more)  
> Repo-expire : 21,600 second(s) (last: Fri 17 Jul 2026 01:12:26 PM EEST)  
> Repo-filename : /etc/yum.repos.d/rocky.repo  
> Total packages: 5,502
> 
> list different host in ‘Repo-baseurl’?

and this

```auto
 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    

```

---

<div class="post-metadata">

**Author:** ![rlamintegrator](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rlamintegrator](https://forums.rockylinux.org/u/rlamintegrator)\
**Post date:** [July 17, 2026, 10:38am UTC](https://forums.rockylinux.org/t/have-error-on-dnf-update/20676/6 "2026-07-17T10:38:27Z")

</div>

After this steps:

```auto
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!

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [July 17, 2026, 11:16am UTC](https://forums.rockylinux.org/t/have-error-on-dnf-update/20676/7 "2026-07-17T11:16:46Z")

</div>

> [@rlamintegrator](#):
>
> ```auto
> dnf repoinfo baseos
> ...
> Repo-baseurl : http://rockylinux.netforce.hosting/rocky/10.2/BaseOS/x86_64/os/
> : (56 more)
> 
> dnf repoinfo appstream
> ...
> Repo-baseurl : https://distrohub.kyiv.ua/rockylinux/10.2/AppStream/x86_64/os/ (56 more)
> 
> ```

These were indeed two different mirrors:

```auto
rockylinux.netforce.hosting
distrohub.kyiv.ua

```

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

* * *

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

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

```

---

<div class="post-metadata">

**Author:** ![rlamintegrator](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rlamintegrator](https://forums.rockylinux.org/u/rlamintegrator)\
**Post date:** [July 17, 2026, 11:36am UTC](https://forums.rockylinux.org/t/have-error-on-dnf-update/20676/8 "2026-07-17T11:36:50Z")

</div>

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)  
$

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [July 17, 2026, 1:51pm UTC](https://forums.rockylinux.org/t/have-error-on-dnf-update/20676/9 "2026-07-17T13:51:52Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![rlamintegrator](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rlamintegrator](https://forums.rockylinux.org/u/rlamintegrator)\
**Post date:** [July 17, 2026, 2:48pm UTC](https://forums.rockylinux.org/t/have-error-on-dnf-update/20676/10 "2026-07-17T14:48:55Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [July 20, 2026, 7:42am UTC](https://forums.rockylinux.org/t/have-error-on-dnf-update/20676/11 "2026-07-20T07:42:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [September 18, 2026, 7:42am UTC](https://forums.rockylinux.org/t/have-error-on-dnf-update/20676/12 "2026-09-18T07:42:07Z")

</div>

Closed on September 18, 2026, 7:42am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
