Kernel stuck at 6.2.7, how to force update?

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.

  1. Please post the output of df so we can verify adequate space remains for installation.

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

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

1 Like
  1. there’s enough disk space, no issue there
[root@E5-573G-ACER ~]# df / -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda6        49G   27G   21G  57% /
  1. 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.
  1. 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.

So, now I’ve cleaned up everything. Also, changed installonly_limit back to 3.
Still no latest kernel installed.

[root@E5-573G-ACER ~]# df / -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda6        49G   26G   22G  55% /
[root@E5-573G-ACER ~]# cat /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
[root@E5-573G-ACER ~]# dnf update --refresh
cuda-fedora37-x86_64                                                               19 kB/s | 3.5 kB     00:00    
Fedora 37 - x86_64                                                                 79 kB/s |  18 kB     00:00    
Fedora 37 openh264 (From Cisco) - x86_64                                          7.7 kB/s | 989  B     00:00    
Fedora Modular 37 - x86_64                                                        109 kB/s |  18 kB     00:00    
Fedora 37 - x86_64 - Updates                                                       94 kB/s |  14 kB     00:00    
Fedora Modular 37 - x86_64 - Updates                                              113 kB/s |  17 kB     00:00    
google-chrome                                                                      12 kB/s | 1.3 kB     00:00    
google-earth-pro                                                                   81 kB/s | 1.3 kB     00:00    
microsoft-edge                                                                    6.8 kB/s | 1.5 kB     00:00    
created by dnf config-manager from https://packages.microsoft.com/yumrepos/edge   7.8 kB/s | 1.5 kB     00:00    
RPM Fusion for Fedora 37 - Free                                                    53 kB/s | 7.0 kB     00:00    
RPM Fusion for Fedora 37 - Free - Updates                                          46 kB/s | 6.0 kB     00:00    
RPM Fusion for Fedora 37 - Nonfree                                                 50 kB/s | 7.1 kB     00:00    
RPM Fusion for Fedora 37 - Nonfree - NVIDIA Driver                                 45 kB/s | 6.3 kB     00:00    
RPM Fusion for Fedora 37 - Nonfree - Steam                                         43 kB/s | 6.0 kB     00:00    
RPM Fusion for Fedora 37 - Nonfree - Updates                                       46 kB/s | 6.1 kB     00:00    
TeamViewer - x86_64                                                               3.6 kB/s | 867  B     00:00    
Dependencies resolved.
Nothing to do.
Complete!
[root@E5-573G-ACER ~]# dnf install kernel --best
Last metadata expiration check: 0:00:17 ago on Sun 04 Jun 2023 01:38:58 PM CEST.
Package kernel-6.2.7-100.fc36.x86_64 is already installed.
Package kernel-6.2.7-200.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@E5-573G-ACER ~]# dnf config-manager --disable cuda\*
[root@E5-573G-ACER ~]# dnf distro-sync --refresh
Fedora 37 - x86_64                                                                       87 kB/s |  18 kB     00:00    
Fedora 37 openh264 (From Cisco) - x86_64                                                9.0 kB/s | 989  B     00:00    
Fedora Modular 37 - x86_64                                                              116 kB/s |  18 kB     00:00    
Fedora 37 - x86_64 - Updates                                                             89 kB/s |  14 kB     00:00    
Fedora Modular 37 - x86_64 - Updates                                                    109 kB/s |  17 kB     00:00    
google-chrome                                                                            13 kB/s | 1.3 kB     00:00    
google-earth-pro                                                                         80 kB/s | 1.3 kB     00:00    
microsoft-edge                                                                          8.2 kB/s | 1.5 kB     00:00    
created by dnf config-manager from https://packages.microsoft.com/yumrepos/edge         9.2 kB/s | 1.5 kB     00:00    
RPM Fusion for Fedora 37 - Free                                                          36 kB/s | 7.0 kB     00:00    
RPM Fusion for Fedora 37 - Free - Updates                                                48 kB/s | 6.0 kB     00:00    
RPM Fusion for Fedora 37 - Nonfree                                                       56 kB/s | 7.1 kB     00:00    
RPM Fusion for Fedora 37 - Nonfree - NVIDIA Driver                                       44 kB/s | 6.3 kB     00:00    
RPM Fusion for Fedora 37 - Nonfree - Steam                                               53 kB/s | 6.0 kB     00:00    
RPM Fusion for Fedora 37 - Nonfree - Updates                                             52 kB/s | 6.1 kB     00:00    
TeamViewer - x86_64                                                                     3.7 kB/s | 867  B     00:00    
Dependencies resolved.
Nothing to do.
Complete!
[root@E5-573G-ACER ~]# dnf list kernel --showduplicates
Last metadata expiration check: 0:00:12 ago on Sun 04 Jun 2023 02:41:35 PM CEST.
Installed Packages
kernel.x86_64                                          6.2.7-100.fc36                                           @updates
kernel.x86_64                                          6.2.7-200.fc37                                           @updates
1 Like

I’m sure there is exclude=kernel* in fedora and updates repo, because of that guide (archive link because their current site appears to be broken).

2 Likes

Indeed, I was trying to find exclude option, but there’s none

[root@E5-573G-ACER ~]# cat /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True

You added it to the repo files.

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

or grep to be sure:

grep -R exclude /etc/yum.repos.d
2 Likes

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
1 Like

fyi, kernels reside in /boot, not /