Kernel-headers-5.17.7 missing?

I recently installed the latest kernel package, 5.17.7-300.fc36.x86_64. But the kernel-headers package wasn’t installed alongside it, which I need in order to use wifi (I have a Broadcom wireless NIC which requires the wl kernel module to work).

dnf seems to think that the kernel-headers package doesn’t exist for the latest kernel:

> sudo dnf install kernel-headers-5.17.7-300.fc36.x86_64
Last metadata expiration check: 2:07:34 ago on Thu 19 May 2022 05:24:37 AM EDT.
No match for argument: kernel-headers-5.17.7-300.fc36.x86_64
Error: Unable to find a match: kernel-headers-5.17.7-300.fc36.x86_64

What happened to the kernel-headers package and why can’t I install it?

1 Like

I hope this gives you some answers:


What does sudo dnf list kernel\* show you? Does it show you the kernel-5.17.7 header package?

In general, there are only two versions of packages available in the repositores—the version in the “fedora” repo (the one when the Fedora Linux OS was released), and then the one in the “updates” repository (if you have updates-testing enabled, you also have access to a third version there if one exists). Intermediate versions are not archived in the repositories, so dnf cannot fetch them.

So, if 5.17.7 is no longer the latest version in the updates repo, dnf won’t be able to fetch it from there. You can still go to the build system and fetch it yourself, though:


I just checked the 5.17.7 build and I don’t see a kernel-headers package there at all. So at the moment, I’m not entirely sure of what’s happened. It’ll need some digging into.

Edit 2:

The thread linked to has the solution—the kernel headers are not regenerated for each new kernel build. So you should be fine with whatever latest kernel-header package dnf can find from the repos.

dnf list kernel* gives

Installed Packages
kernel.x86_64                                                         5.17.6-200.fc35                                   @updates
kernel.x86_64                                                         5.17.7-300.fc36                                   @updates
kernel-core.x86_64                                                    5.17.6-200.fc35                                   @updates
kernel-core.x86_64                                                    5.17.6-300.fc36                                   @updates
kernel-core.x86_64                                                    5.17.7-300.fc36                                   @updates
kernel-devel.x86_64                                                   5.17.6-200.fc35                                   @updates
kernel-devel.x86_64                                                   5.17.6-300.fc36                                   @updates
kernel-devel.x86_64                                                   5.17.7-300.fc36                                   @updates
kernel-devel-matched.x86_64                                           5.17.7-300.fc36                                   @updates
kernel-headers.x86_64                                                 5.17.6-300.fc36                                   @updates
kernel-modules.x86_64                                                 5.17.6-200.fc35                                   @updates
kernel-modules.x86_64                                                 5.17.6-300.fc36                                   @updates
kernel-modules.x86_64                                                 5.17.7-300.fc36                                   @updates
kernel-modules-extra.x86_64                                           5.17.6-200.fc35                                   @updates
kernel-modules-extra.x86_64                                           5.17.6-300.fc36                                   @updates
kernel-modules-extra.x86_64                                           5.17.7-300.fc36                                   @updates
kernel-srpm-macros.noarch                                             1.0-14.fc36                                       @fedora 
Available Packages
kernel-cross-headers.x86_64                                           5.17.6-300.fc36                                   updates 
kernel-debug.x86_64                                                   5.17.7-300.fc36                                   updates 
kernel-debug-core.x86_64                                              5.17.7-300.fc36                                   updates 
kernel-debug-devel.x86_64                                             5.17.7-300.fc36                                   updates 
kernel-debug-devel-matched.x86_64                                     5.17.7-300.fc36                                   updates 
kernel-debug-modules.x86_64                                           5.17.7-300.fc36                                   updates 
kernel-debug-modules-extra.x86_64                                     5.17.7-300.fc36                                   updates 
kernel-debug-modules-internal.x86_64                                  5.17.7-300.fc36                                   updates 
kernel-doc.noarch                                                     5.17.7-300.fc36                                   updates 
kernel-headers.i686                                                   5.17.0-300.fc36                                   fedora  
kernel-modules-internal.x86_64                                        5.17.7-300.fc36                                   updates 
kernel-rpm-macros.noarch                                              205-14.fc36                                       fedora  
kernel-tools.x86_64                                                   5.17.6-300.fc36                                   updates 
kernel-tools-libs.i686                                                5.17.0-300.fc36                                   fedora  
kernel-tools-libs.x86_64                                              5.17.6-300.fc36                                   updates 
kernel-tools-libs-devel.i686                                          5.17.0-300.fc36                                   fedora  
kernel-tools-libs-devel.x86_64                                        5.17.6-300.fc36                                   updates 
kernelshark.x86_64                                                    1:2.1.0-1.fc36                                    updates 

So kernel-headers-5.17.6 is installed, but and kernel-headers-5.17.0-300.fc36.i686 is available (if for some reason I wanted the 32-bit header package for an older kernel). kernel-headers-5.17.7 is neither installed nor available, even though 5.17.7 is the newest kernel in the repositories.

1 Like

Reposting to keep the thread flow:

The thread linked to has the solution—the kernel headers are not regenerated for each new kernel build. So you should be fine with whatever latest kernel-header package dnf can find from the repos.

1 Like

It looks like the actual reason my new wl module didn’t build was that the akmod-wl package got removed in the process of upgrading to F36. Thanks @ankursinha and @ilikelinux for your help!


Ah, yikes. Yeh—not sure why that happened either.

Happy your issue was fixed, though :clap:

1 Like