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