The kernel on this machine is stuck at 6.2.7 and doesn’t update anymore. Is there a way to fix this? Or maybe force the installation of new kernel version?
[root@E5-573G-ACER ~]# dnf update
Last metadata expiration check: 0:45:38 ago on Sat 03 Jun 2023 10:11:49 PM CEST.
Dependencies resolved.
Nothing to do.
Complete!
[root@E5-573G-ACER ~]# dnf install kernel --best
Last metadata expiration check: 0:44:35 ago on Sat 03 Jun 2023 10:11:49 PM CEST.
Package kernel-5.19.13-200.fc36.x86_64 is already installed.
Package kernel-5.19.14-200.fc36.x86_64 is already installed.
Package kernel-5.19.16-200.fc36.x86_64 is already installed.
Package kernel-6.0.5-200.fc36.x86_64 is already installed.
Package kernel-6.1.7-100.fc36.x86_64 is already installed.
Package kernel-6.1.8-100.fc36.x86_64 is already installed.
Package kernel-6.2.7-100.fc36.x86_64 is already installed.
Package kernel-6.2.7-200.fc37.x86_64 is already installed.
Package kernel-6.1.18-603.inttf.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@E5-573G-ACER ~]# uname -r
6.2.7-200.fc37.x86_64
[root@E5-573G-ACER ~]# hostnamectl
Static hostname: E5-573G-ACER
Icon name: computer-laptop
Chassis: laptop 💻
Machine ID: c367e20e63434c7fa98b21349fd4c5d1
Boot ID: fec431e095a844acb60a7c5e220f9f80
Operating System: Fedora Linux 37 (Workstation Edition)
CPE OS Name: cpe:/o:fedoraproject:fedora:37
Kernel: Linux 6.2.7-200.fc37.x86_64
Architecture: x86-64
Hardware Vendor: Acer
Hardware Model: Aspire E5-573G
Firmware Version: V1.25
You have this kernel which is clearly NOT a fedora kernel.
You have 9 different kernels and fedora by default only retains the latest 3 kernels.
With that many kernels, it seems possible that /boot is full so newer kernels cannot be installed.
Please post the output of df so we can verify adequate space remains for installation.
Please remove all the very old F36 kernels. sudo dnf remove kernel*5.19* kernel*6.[01]*fc36* which should remove all but the two 6.2.7 kernels and free up considerable space in /boot.
Please post the output of cat /etc/dnf/dnf.conf so we may see how many kernels the system is supposed to retain.
If you have the repo for inttf enabled then it may interfere with updating kernels from fedora.
I’ve intentionally increased the number of kernels to be retained to 9, this is not a mistake. installonly_limit=9
I’m doing it on my other machines too, it has never been an issue.
this is a real suspect
While trying to install NVIDIA drivers, I’ve been following some web instructions which made me install this kernel. https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/
I trued to retrace and undo all changes, but the procedure was too complex, I doubt it was successfully completed.
After searching the whole /etc directory for exclude=kernel*, I found two places with it.
[root@E5-573G-ACER ~]# grep -r exclude /etc/ | grep kernel
/etc/libreport/plugins/bugzilla_format_kernel.conf:# which excludes given element from all wildcards
/etc/yum.repos.d/fedora-updates.repo:exclude=kernel*
/etc/yum.repos.d/fedora.repo:exclude=kernel*
Removing these exclude definitions in both files has fixed the problem.
[root@E5-573G-ACER ~]# dnf update
Last metadata expiration check: 0:00:30 ago on Sun 04 Jun 2023 08:51:55 PM CEST.
Dependencies resolved.
========================================================================================================================
Package Architecture Version Repository Size
========================================================================================================================
Installing:
kernel x86_64 6.3.5-100.fc37 updates 132 k
kernel-core x86_64 6.3.5-100.fc37 updates 16 M
kernel-devel x86_64 6.3.5-100.fc37 updates 19 M
kernel-modules x86_64 6.3.5-100.fc37 updates 55 M
kernel-modules-extra x86_64 6.3.5-100.fc37 updates 2.6 M
Upgrading:
kernel-devel-matched x86_64 6.3.5-100.fc37 updates 132 k
kernel-headers x86_64 6.3.3-100.fc37 updates 1.5 M
Installing dependencies:
kernel-modules-core x86_64 6.3.5-100.fc37 updates 30 M
Removing:
kernel-core x86_64 6.1.18-603.inttf.fc37 @inttf 90 M
kernel-devel x86_64 6.1.18-603.inttf.fc37 @inttf 65 M
kernel-modules x86_64 6.1.18-603.inttf.fc37 @inttf 57 M
kernel-modules-extra x86_64 6.1.18-603.inttf.fc37 @inttf 3.2 M
Transaction Summary
========================================================================================================================
Install 6 Packages
Upgrade 2 Packages
Remove 4 Packages
Total download size: 125 M