Cannot update with dnf

When I enter sudo dnf update I get the following error:

[me@fedora ~]$ sudo dnf update
Last metadata expiration check: 2:47:29 ago on Fri 17 Feb 2023 08:08:01 AM EET.
Error: 
 Problem: package kernel-modules-extra-6.0.15-300.fc37.x86_64 requires kernel-uname-r = 6.0.15-300.fc37.x86_64, but none of the providers can be installed
  - conflicting requests
(try to add '--skip-broken' to skip uninstallable packages)
[me@fedora ~]$ sudo dnf update --skip-broken
Last metadata expiration check: 2:48:16 ago on Fri 17 Feb 2023 08:08:01 AM EET.
Error: 
 Problem: package kernel-modules-extra-6.0.15-300.fc37.x86_64 requires kernel-uname-r = 6.0.15-300.fc37.x86_64, but none of the providers can be installed
  - conflicting requests
[me@fedora ~]$

Even after adding --skip-broken it still doesn’t work.

Also, on startup I received an error:

Is there a way to fix this?
Thanks

1 Like
sudo dnf remove kernel-modules-extra-6.0.15-300.fc37.x86_64
sudo dnf --refresh upgrade
2 Likes

Thank you for your fast reply. Please tell me what kernel-modules-extra-6.0.15-300.fc37.x86_64 is. Might I need it in the future? Online documentation is complex. Also, when I run --refresh upgrade will that cause a restart as I have important docs open now.

Also, I remember usingupgrade --refresh but you have said --refresh upgrade

Does the order of commands matter here? I don’t want to make any mistakes and screw up my system.

According to the documentation:

That’s unlikely since the package requires a specific kernel version which is no longer installed.
You can install the latest version of this package at any time:

sudo dnf install kernel-modules-extra

I recommend to save all important documents before upgrading.

It shouldn’t matter in this specific case.

1 Like