Kernel-devel-matched from updates kernel-devel but non of the providers can be installed

Hello Fedora Community,
I’m having an issue with dnf upgrade command. It’s giving me the exceptions below. I’ve tried searching discussions hoping to find a similar issue, but I was not able to. I want to preface that I did dnf upgrade --refresh at some point, although I’m not sure if this is the root cause of the problem. I would appreciate any help. Thank you.

Problem: package kernel-devel-matched-6.7.6-200.fc39.x86_64 from updates requires kernel-devel = 6.7.6-200.fc39, but none of the providers can be installed
  - cannot install the best update candidate for package kernel-devel-matched-6.6.10-667.rog.fc39.x86_64
  - package kernel-devel-6.7.6-200.fc39.x86_64 from updates is filtered out by exclude filtering

sounds like you defined excludepkgs=xxx in your /etc/dnf/dnf.conf

where do you have this package from?

kernel-devel-matched is a package which will pull in matched versions of kernel-core and kernel-devel. The package is a dependency of akmods and dkms.

I am aware on the existence and meaning of the package, however, look at the weird unusual name of the package. That suggests to be some third-party package to me, and not from Fedora repo.

kernel-devel-matched-6.6.10-667.rog.fc39.x86_64

That could explain why it can’t be updated (“no update candidate”)

PS: On my system it’s called kernel-devel-matched-6.7.5-200.fc39.x86_64

1 Like

This the some of the information about my kernel-devel-matched release:

❯ rpm -qi kernel-devel-matched
Name        : kernel-devel-matched
Version     : 6.6.10
Release     : 667.rog.fc39
Architecture: x86_64
Install Date: Thu 11 Jan 2024 08:18:23 PM
Group       : Unspecified
Size        : 0
License     : ((GPL-2.0-only WITH Linux-syscall-note) OR BSD-2-Clause) AND ((GPL-2.0-only WITH Linux-syscall-note) OR BSD-3-Clause) AND ((GPL-2.0-only WITH Linux-syscall-note) OR CDDL-1.0) AND ((GPL-2.0-only WITH Linux-syscall-note) OR Linux-OpenIB) AND ((GPL-2.0-only WITH Linux-syscall-note) OR MIT) AND ((GPL-2.0-or-later WITH Linux-syscall-note) OR BSD-3-Clause) AND ((GPL-2.0-or-later WITH Linux-syscall-note) OR MIT) AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-Clear AND GFDL-1.1-no-invariants-or-later AND GPL-1.0-or-later AND (GPL-1.0-or-later OR BSD-3-Clause) AND (GPL-1.0-or-later WITH Linux-syscall-note) AND GPL-2.0-only AND (GPL-2.0-only OR Apache-2.0) AND (GPL-2.0-only OR BSD-2-Clause) AND (GPL-2.0-only OR BSD-3-Clause) AND (GPL-2.0-only OR CDDL-1.0) AND (GPL-2.0-only OR GFDL-1.1-no-invariants-or-later) AND (GPL-2.0-only OR GFDL-1.2-no-invariants-only) AND (GPL-2.0-only WITH Linux-syscall-note) AND GPL-2.0-or-later AND (GPL-2.0-or-later OR BSD-2-Clause) AND (GPL-2.0-or-later OR BSD-3-Clause) AND (GPL-2.0-or-later OR CC-BY-4.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH Linux-syscall-note) AND ISC AND LGPL-2.0-or-later AND (LGPL-2.0-or-later OR BSD-2-Clause) AND (LGPL-2.0-or-later WITH Linux-syscall-note) AND LGPL-2.1-only AND (LGPL-2.1-only OR BSD-2-Clause) AND (LGPL-2.1-only WITH Linux-syscall-note) AND LGPL-2.1-or-later AND (LGPL-2.1-or-later WITH Linux-syscall-note) AND (Linux-OpenIB OR GPL-2.0-only) AND (Linux-OpenIB OR GPL-2.0-only OR BSD-2-Clause) AND Linux-man-pages-copyleft AND MIT AND (MIT OR Apache-2.0) AND (MIT OR GPL-2.0-only) AND (MIT OR GPL-2.0-or-later) AND (MIT OR LGPL-2.1-only) AND (MPL-1.1 OR GPL-2.0-only) AND (X11 OR GPL-2.0-only) AND (X11 OR GPL-2.0-or-later) AND Zlib AND (copyleft-next-0.3.1 OR GPL-2.0-or-later)
Signature   : RSA/SHA256, Tue 09 Jan 2024 01:12:14 AM, Key ID c1ce9c03c45b6d2e
Source RPM  : kernel-6.6.10-667.rog.fc39.src.rpm
Build Date  : Mon 08 Jan 2024 08:31:05 PM
Build Host  : copr-hv-x86-64-01-prod-00796781-20240109-023939
Vendor      : Fedora Copr - user lukenukem
URL         : https://www.kernel.org/
Summary     : Meta package to install matching core and devel packages for a given kernel
Description :
This meta package is used to install matching core and devel packages for a given kernel.

That does not tell us which repo it was installed from.

Try dnf list installed kernel-devel-matched which usually gives the corresponding repo at the right side of the screen.

You should only have one package named kernel-devel-matched and it should match the latest kernel installed. This from dnf list installed kernel\*

kernel-devel.x86_64                                                 6.7.3-200.fc39                                          @updates
kernel-devel.x86_64                                                 6.7.4-200.fc39                                          @updates
kernel-devel.x86_64                                                 6.7.5-200.fc39                                          @updates
kernel-devel-matched.x86_64                                         6.7.5-200.fc39                                          @updates

If you were to run sudo dnf remove kernel-devel-matched --noautoremove then run sudo dnf upgrade --refresh it probably would no longer complain and allow the upgrade to happen normally.

1 Like

I bet it is from here.

lukenukem/asus-kernel Copr

I ran the command, dnf list installed kernel-devel-matched, and it gave the output below. I should add, and this might give an idea to where I got these .rog kernels, I followed this Reddit post to install Fedora to an Asus laptop verbatim.

kernel-devel-matched.x86_64         6.6.10-667.rog.fc39          @copr:copr.fedorainfracloud.org:lukenukem:asus-kernel

It shows where it’s from…

There is still an outstanding question From @augenauf

sounds like you defined excludepkgs=xxx in your /etc/dnf/dnf.conf

The thing is: You have to install the version of kernel-devel which matches the version of the other installed kernel packages.

There are no variables excludepkgs defined in dnf.conf. I’ll see about installing the correct versions of kernel-devel.

Then it’s defined in the repo files. Look for something like exclude=kernel kernel-core kernel-modules kernel-devel kernel-modules-extra kernel-modules-core kernel-devel-matched in:

/etc/yum.repos.d/fedora.repo 
/etc/yum.repos.d/fedora-updates.repo
/etc/yum.repos.d/fedora-updates-testing.repo

Since that is installed and it is not from the fedora repos it seems you may need to explicitly remove that package as I suggested above. It may be necessary to remove all the kernel-devel packages for all the kernels as well (sudo dnf remove kernel-devel\* --noautoremove) then reinstall the kernel-devel package for the newest kernel with sudo install kernel-devel

As I said before, if you are not using the 6.6.10 kernel for a specific reason then removing it would solve this specific issue.