# Dnf update error

**URL:** <https://forums.rockylinux.org/t/dnf-update-error/6956>\
**Category:** Rocky Linux Help & Support\
**Created:** [August 17, 2022, 11:43am UTC](https://forums.rockylinux.org/t/dnf-update-error/6956 "2022-08-17T11:43:24Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jil/32/1089_2.png) [@Jil](https://forums.rockylinux.org/u/Jil)\
**Post date:** [August 17, 2022, 11:43am UTC](https://forums.rockylinux.org/t/dnf-update-error/6956/1 "2022-08-17T11:43:24Z")

</div>

Hello team.  
I have an issue that arose after updating to the new kernel release 5.14.0-70.22.1.el9\_0.x86\_64 in my Rocky Linux 9 system.  
whenever I run the dnf update command, I get these two errors:

sudo dnf update  
[sudo] password for jil:  
Rocky Linux 9 - BaseOS 2.2 kB/s | 3.6 kB 00:01  
Rocky Linux 9 - AppStream 499 B/s | 3.6 kB 00:07  
Rocky Linux 9 - CRB 2.9 kB/s | 3.6 kB 00:01  
Rocky Linux 9 - Extras 1.7 kB/s | 2.9 kB 00:01  
Error:  
Problem 1: cannot install the best update candidate for package kf5-ki18n-5.90.0-1.el9.x86\_64

- nothing provides libQt5Core.so.5(Qt\_5.15.3\_PRIVATE\_API)(64bit) needed by kf5-ki18n-5.96.0-1.el9.next.x86\_64  
Problem 2: cannot install the best update candidate for package kf5-kxmlgui-5.90.0-1.el9.x86\_64
- nothing provides qt5-qtbase(x86-64) = 5.15.3 needed by kf5-kxmlgui-5.96.0-1.el9.next.x86\_64
- nothing provides libQt5Core.so.5(Qt\_5.15.3\_PRIVATE\_API)(64bit) needed by kf5-kxmlgui-5.96.0-1.el9.next.x86\_64  
(try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

I am still very new to Rocky Linux 9. Please help out.

Thank you.

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [August 17, 2022, 12:16pm UTC](https://forums.rockylinux.org/t/dnf-update-error/6956/2 "2022-08-17T12:16:25Z")

</div>

Hi, you could try this, I have done it few times and sometimes it does help:

```auto
dnf clean all
dnf update

```

---

<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:** [August 17, 2022, 1:28pm UTC](https://forums.rockylinux.org/t/dnf-update-error/6956/3 "2022-08-17T13:28:51Z")

</div>

> [@Jil](#):
>
> nothing provides libQt5Core.so.5(Qt\_5.15.3\_PRIVATE\_API)(64bit) needed by kf5-ki18n-5.96.0-1.el9.next.x86\_64

**el9.next**

Isn’t that a package that EPEL has build for CentOS Stream 9? Surely those (packages and repos) should not be in EL9 distro, like Rocky 9?

---

<div class="post-metadata">

**Author:** ![Jil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jil/32/1089_2.png) [@Jil](https://forums.rockylinux.org/u/Jil)\
**Post date:** [August 17, 2022, 2:54pm UTC](https://forums.rockylinux.org/t/dnf-update-error/6956/4 "2022-08-17T14:54:15Z")

</div>

Hello, @iwalker I have run the commands but still can’t get to update my dnf repository.  
Though 95 files have been removed.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Jil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jil/32/1089_2.png) [@Jil](https://forums.rockylinux.org/u/Jil)\
**Post date:** [August 17, 2022, 2:56pm UTC](https://forums.rockylinux.org/t/dnf-update-error/6956/5 "2022-08-17T14:56:59Z")

</div>

Hello @jlehtone

How do I uninstall this? I truly can’t recall installing any CentOS Stream 9 EPEL packages and repos.

Thank you.

---

<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:** [August 17, 2022, 3:11pm UTC](https://forums.rockylinux.org/t/dnf-update-error/6956/6 "2022-08-17T15:11:07Z")

</div>

First, information about your setup:

```nohighlight
dnf repolist
dnf list knf\*

```

---

<div class="post-metadata">

**Author:** ![Jil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jil/32/1089_2.png) [@Jil](https://forums.rockylinux.org/u/Jil)\
**Post date:** [August 17, 2022, 3:21pm UTC](https://forums.rockylinux.org/t/dnf-update-error/6956/7 "2022-08-17T15:21:36Z")

</div>

OKey .

dnf repolist  
repo id repo name  
appstream Rocky Linux 9 - AppStream  
baseos Rocky Linux 9 - BaseOS  
crb Rocky Linux 9 - CRB  
epel Extra Packages for Enterprise Linux 9 - x86\_64  
epel-next Extra Packages for Enterprise Linux 9 - Next - x86\_64  
extras Rocky Linux 9 - Extras  
google-chrome google-chrome  
mongodb-org-5.0 MongoDB Repository  
pritunl Pritunl Stable Repository  
rpmfusion-free-updates RPM Fusion for EL 9 - Free - Updates

dnf list knf\*  
Last metadata expiration check: 0:12:25 ago on Wed 17 Aug 2022 06:08:37 PM EAT.  
Error: No matching Packages to list

See the information.

---

<div class="post-metadata">

**Author:** ![Jil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jil/32/1089_2.png) [@Jil](https://forums.rockylinux.org/u/Jil)\
**Post date:** [August 17, 2022, 3:35pm UTC](https://forums.rockylinux.org/t/dnf-update-error/6956/8 "2022-08-17T15:35:08Z")

</div>

@jlehtone

Sir, i have run the command  
sudo yum remove epel-release -y

then

dnf repolist  
repo id repo name  
appstream Rocky Linux 9 - AppStream  
baseos Rocky Linux 9 - BaseOS  
crb Rocky Linux 9 - CRB  
extras Rocky Linux 9 - Extras  
google-chrome google-chrome  
mongodb-org-5.0 MongoDB Repository  
pritunl Pritunl Stable Repository

I think it now looks good.

Thank you sir for shedding light.

---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [August 17, 2022, 9:04pm UTC](https://forums.rockylinux.org/t/dnf-update-error/6956/9 "2022-08-17T21:04:19Z")

</div>

If you use epel, it should be set to disabled, then to use it:  
dnf --enablerepo “epel” search somepackage

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [August 17, 2022, 9:14pm UTC](https://forums.rockylinux.org/t/dnf-update-error/6956/10 "2022-08-17T21:14:46Z")

</div>

> [@gerry666uk](#):
>
> If you use epel, it should be set to disabled,

I think it is more of a personal preference, rather than a case of should/shouldn’t. I have the epel repo enabled all the time and have no issues with it. Some prefer to only enable it for installing packages as and when they need it - in the way you suggested with the `--enablerepo` command. Both are valid methods.

---

<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:** [August 17, 2022, 9:29pm UTC](https://forums.rockylinux.org/t/dnf-update-error/6956/11 "2022-08-17T21:29:38Z")

</div>

Besides, ‘epel’ was not the problem. This was:

> [@Jil](#):
>
> epel-next Extra Packages for Enterprise Linux 9 - Next - x86\_64

I did just install package ‘epel-release’ from EPEL and it does not contain definition for repo `epel-next`.

If the repo did “go away” by removal of package ‘epel-release’, then that version of ‘epel-release’ was not for EL9.

One could run `sudo dnf history list epel-release` to get list of transactions that included package epel-release.  
`sudo dnf history info epel-release` would show details from all those transactions, but one could give number of transaction, rather than `<package-spec>`.  
One might be able to tell from those details, where did that package come from.

If dnf does not remember, then perhaps shell does: `history | grep epel-release`  
(Default Bash HISTORYSIZE is quite short though.)

Ps. I apparently had a typo earlier: wrote `dnf list knf*` when I should have written `dnf list kf5*`. Not that it matters now.

---

<div class="post-metadata">

**Author:** ![Jil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jil/32/1089_2.png) [@Jil](https://forums.rockylinux.org/u/Jil)\
**Post date:** [August 18, 2022, 8:48am UTC](https://forums.rockylinux.org/t/dnf-update-error/6956/12 "2022-08-18T08:48:35Z")

</div>

Thank you so much.

I had earlier tried to install **KDE Plasma Desktop Environment** on Rocky Linux 9.

I found out in some guide (can’t exactly trace it) that the epel-next repo was to be installed for a successful installation.

This must have been the instance I installed epel-next repo in my machine

Thank you for your feedback its a learning curve.

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:42am UTC](https://forums.rockylinux.org/t/dnf-update-error/6956/13 "2023-08-25T03:42:34Z")

</div>

Closed on August 25, 2023, 3:42am UTC


