crazylyle
(James Peterson)
December 30, 2024, 8:35pm
1
I had been using Fedora 37, then upgraded to 40 and then 41 today.
But I notice that I am still running Fedora 37 kernel:
[@jkl] /boot > uname -a
Linux jkl 6.5.13-100.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 28 20:49:22 UTC 2023 x86_64 GNU/Linux
and if I look in /boot, I only have two kernels:
[@jkl] /boot > find /boot -name "vm*" -print
/boot/vmlinuz-0-rescue-b639810ced694cd6bada8a62d3510e72
/boot/vmlinuz-6.5.13-100.fc37.x86_64
I’ve got lots of space in /boot for more kernels:
[@jkl] /boot > df /boot
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda4 1992552 134864 1736448 8% /boot
If I try to update, nothing is needed:
[@jkl] /boot > dnf update
Updating and loading repositories:
Repositories loaded.
Nothing to do.
I see comments about much later kernels, 6.8 and such, …
ilikelinux
(ilikelinux)
December 30, 2024, 9:01pm
2
Welcome to Fedora @crazylyle
You should not upgrade more than two versions. This might have caused some issues.
Have a look in the terminal what the command sudo dnf repolist
shows? It should show you the repositories of the version you upgraded to. If not you have to try to fix.
Here a manual how you can do it while using dnf in terminal.
Yes, we are on 6.12 already.
This can really be that you still on F37?!
barryascott
(Barry A Scott)
December 30, 2024, 9:32pm
3
Check what is in /etc/fedora-release does to say you are on f37 or f41?
1 Like
ilikelinux
(ilikelinux)
December 30, 2024, 9:35pm
4
it is cat /etc/fedora-release
I changed it for you @barryascott just in case you are on your mobile device
crazylyle
(James Peterson)
December 30, 2024, 10:32pm
6
Yes, I was still on 37. I had a major 2-year project that I needed to get done and didn’t want to upgrade versions in the middle of it. I kept it up-to-date, and only lately has it stopped updating things.
dnf repolist
repo id repo name
adobe-linux-x86_64 Adobe Systems Incorporated
copr:copr.fedorainfracloud.org:phracek:PyCharm Copr repo for PyCharm owned by phracek
fedora Fedora 41 - x86_64
fedora-cisco-openh264 Fedora 41 openh264 (From Cisco) - x86_64
protonvpn-fedora-stable ProtonVPN Fedora Stable repository
rpmfusion-free RPM Fusion for Fedora 41 - Free
rpmfusion-free-updates RPM Fusion for Fedora 41 - Free - Updates
rpmfusion-nonfree RPM Fusion for Fedora 41 - Nonfree
rpmfusion-nonfree-nvidia-driver RPM Fusion for Fedora 41 - Nonfree - NVIDIA Driver
rpmfusion-nonfree-steam RPM Fusion for Fedora 41 - Nonfree - Steam
rpmfusion-nonfree-updates RPM Fusion for Fedora 41 - Nonfree - Updates
updates Fedora 41 - x86_64 - Updates
updates-testing Fedora 41 - x86_64 - Test Updates
1 Like
ilikelinux
(ilikelinux)
December 30, 2024, 11:16pm
7
Did you block a kernel upgrade once? In the dnf configuration or so?
By the way, I do have a similar issue on an older laptop. While upgrading from F40 to F41 I am also stuck on a F40 kernel. It is really strange.
grumpey
(Joe)
December 31, 2024, 12:04am
8
Can you post sudo ls -lhR /boot
1 Like
crazylyle
(James Peterson)
December 31, 2024, 12:08am
9
I wouldn’t know how to block an update if I could. Not to say that I haven’t, but never knowingly.
crazylyle
(James Peterson)
December 31, 2024, 12:12am
10
ls -lhR /boot
/boot:
total 129M
-rw-------. 1 root root 8.4M Nov 28 2023 System.map-6.5.13-100.fc37.x86_64
-rw-r--r--. 1 root root 259K Nov 28 2023 config-6.5.13-100.fc37.x86_64
drwx------. 6 root root 4.0K Dec 31 1969 efi
drwxr-xr-x. 2 root root 4.0K Dec 30 13:07 extlinux
drwxr-xr-x. 3 root root 4.0K Jul 5 2017 f3603cfae66044dda9d024b8fa5aec6e
drwx------. 4 root root 4.0K Dec 30 13:56 grub2
-rw-------. 1 root root 61M Jul 28 2017 initramfs-0-rescue-b639810ced694cd6bada8a62d3510e72.img
-rw-------. 1 root root 38M Feb 8 2024 initramfs-6.5.13-100.fc37.x86_64.img
drwxr-xr-x. 3 root root 4.0K Oct 17 2019 loader
drwx------. 2 root root 16K Jul 28 2017 lost+found
-rw-r--r--. 1 root root 142K Aug 3 2023 memtest86+x64.efi
lrwxrwxrwx. 1 root root 46 Feb 8 2024 symvers-6.5.13-100.fc37.x86_64.xz -> /lib/modules/6.5.13-100.fc37.x86_64/symvers.xz
-rwxr-xr-x. 1 root root 7.0M Jul 28 2017 vmlinuz-0-rescue-b639810ced694cd6bada8a62d3510e72
-rwxr-xr-x. 1 root root 14M Nov 28 2023 vmlinuz-6.5.13-100.fc37.x86_64
/boot/efi:
total 20K
drwx------. 4 root root 4.0K Jul 18 19:00 EFI
drwx------. 3 root root 4.0K Jul 17 19:00 System
drwx------. 28 root root 4.0K Dec 30 13:27 b639810ced694cd6bada8a62d3510e72
drwx------. 3 root root 4.0K Jul 28 2017 d58466b233d64644886683c23b7b0214
-rwx------. 1 root root 34 Jul 17 19:00 mach_kernel
/boot/efi/EFI:
total 8.0K
drwx------. 2 root root 4.0K Jul 18 19:00 BOOT
drwx------. 2 root root 4.0K Dec 30 13:50 fedora
/boot/efi/EFI/BOOT:
total 1016K
-rwx------. 1 root root 928K Mar 18 2024 BOOTX64.EFI
-rwx------. 1 root root 86K Mar 18 2024 fbx64.efi
/boot/efi/EFI/fedora:
total 6.6M
-rwx------. 1 root root 110 Mar 18 2024 BOOTX64.CSV
-rwx------. 1 root root 159 Jun 12 2024 grub.cfg
-rwx------. 1 root root 1.0K Nov 9 2021 grubenv.rpmsave
-rwx------. 1 root root 3.9M Nov 20 18:00 grubx64.efi
-rwx------. 1 root root 829K Mar 18 2024 mmx64.efi
-rwx------. 1 root root 928K Mar 18 2024 shim.efi
-rwx------. 1 root root 928K Mar 18 2024 shimx64.efi
/boot/efi/System:
total 4.0K
drwx------. 3 root root 4.0K Jul 17 19:00 Library
/boot/efi/System/Library:
total 4.0K
drwx------. 2 root root 4.0K Dec 30 13:21 CoreServices
/boot/efi/System/Library/CoreServices:
total 4.0K
-rwx------. 1 root root 384 Jul 17 19:00 SystemVersion.plist
/boot/efi/b639810ced694cd6bada8a62d3510e72:
total 104K
drwx------. 2 root root 4.0K Feb 22 2024 0-rescue
drwx------. 2 root root 4.0K Jul 28 2017 4.11.11-300.fc26.x86_64
drwx------. 2 root root 4.0K Sep 24 2017 4.12.13-300.fc26.x86_64
drwx------. 2 root root 4.0K Sep 28 2017 4.12.14-300.fc26.x86_64
drwx------. 2 root root 4.0K Aug 16 2017 4.12.5-300.fc26.x86_64
drwx------. 2 root root 4.0K Aug 27 2017 4.12.8-300.fc26.x86_64
drwx------. 2 root root 4.0K Sep 3 2017 4.12.9-300.fc26.x86_64
drwx------. 2 root root 4.0K Nov 9 2017 4.13.11-200.fc26.x86_64
drwx------. 2 root root 4.0K Nov 24 2017 4.13.13-200.fc26.x86_64
drwx------. 2 root root 4.0K Nov 28 2017 4.13.15-200.fc26.x86_64
drwx------. 2 root root 4.0K Dec 6 2017 4.13.16-202.fc26.x86_64
drwx------. 2 root root 4.0K Oct 28 2017 4.13.9-200.fc26.x86_64
drwx------. 2 root root 4.0K Jan 9 2018 4.14.11-200.fc26.x86_64
drwx------. 2 root root 4.0K Jan 15 2018 4.14.13-200.fc26.x86_64
drwx------. 2 root root 4.0K Jan 24 2018 4.14.14-200.fc26.x86_64
drwx------. 2 root root 4.0K Feb 4 2018 4.14.16-200.fc26.x86_64
drwx------. 2 root root 4.0K Feb 14 2018 4.14.18-200.fc26.x86_64
drwx------. 2 root root 4.0K Apr 30 2018 4.15.17-200.fc26.x86_64
drwx------. 2 root root 4.0K Feb 21 2018 4.15.3-200.fc26.x86_64
drwx------. 2 root root 4.0K Mar 12 2018 4.15.7-200.fc26.x86_64
drwx------. 2 root root 4.0K Jun 13 2018 4.16.11-100.fc26.x86_64
drwx------. 2 root root 4.0K May 19 2018 4.16.7-100.fc26.x86_64
drwx------. 2 root root 4.0K Dec 30 11:14 6.12.7-100.fc40.x86_64
drwx------. 2 root root 4.0K Dec 30 13:27 6.12.7-200.fc41.x86_64
drwx------. 2 root root 4.0K Feb 22 2024 7.00
drwx------. 2 root root 4.0K Dec 30 11:17 7.20
/boot/efi/b639810ced694cd6bada8a62d3510e72/0-rescue:
total 171M
-rwx------. 1 root root 155M Feb 22 2024 initrd
-rwx------. 1 root root 16M Dec 30 13:28 linux
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.11.11-300.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.12.13-300.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.12.14-300.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.12.5-300.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.12.8-300.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.12.9-300.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.13.11-200.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.13.13-200.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.13.15-200.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.13.16-202.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.13.9-200.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.14.11-200.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.14.13-200.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.14.14-200.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.14.16-200.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.14.18-200.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.15.17-200.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.15.3-200.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.15.7-200.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.16.11-100.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/4.16.7-100.fc26.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/6.12.7-100.fc40.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/6.12.7-200.fc41.x86_64:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/7.00:
total 0
/boot/efi/b639810ced694cd6bada8a62d3510e72/7.20:
total 0
/boot/efi/d58466b233d64644886683c23b7b0214:
total 4.0K
drwx------. 2 root root 4.0K Jul 28 2017 4.11.11-300.fc26.x86_64
/boot/efi/d58466b233d64644886683c23b7b0214/4.11.11-300.fc26.x86_64:
total 0
/boot/extlinux:
total 1.1M
-rw-r--r--. 1 root root 1.8K Jul 19 19:00 cat.c32
-rw-r--r--. 1 root root 25K Jul 19 19:00 chain.c32
-rw-r--r--. 1 root root 1.4K Jul 19 19:00 cmd.c32
-rw-r--r--. 1 root root 3.8K Jul 19 19:00 cmenu.c32
-rw-r--r--. 1 root root 1.7K Jul 19 19:00 config.c32
-rw-r--r--. 1 root root 4.4K Jul 19 19:00 cptime.c32
-rw-r--r--. 1 root root 4.6K Jul 19 19:00 cpu.c32
-rw-r--r--. 1 root root 1.9K Jul 19 19:00 cpuid.c32
-rw-r--r--. 1 root root 2.9K Jul 19 19:00 cpuidtest.c32
-rw-r--r--. 1 root root 1.8K Jul 19 19:00 debug.c32
-rw-r--r--. 1 root root 4.2K Jul 19 19:00 dhcp.c32
-rw-r--r--. 1 root root 3.1K Jul 19 19:00 dir.c32
-rw-r--r--. 1 root root 2.2K Jul 19 19:00 disk.c32
-rw-r--r--. 1 root root 8.8K Jul 19 19:00 dmi.c32
-rw-r--r--. 1 root root 13K Jul 19 19:00 dmitest.c32
-rw-r--r--. 1 root root 3.4K Jul 19 19:00 elf.c32
-rw-r--r--. 1 root root 2.9K Jul 19 19:00 ethersel.c32
-rw-r--r--. 1 root root 11K Jul 19 19:00 gfxboot.c32
-rw-r--r--. 1 root root 1.8K Jul 19 19:00 gpxecmd.c32
-rw-r--r--. 1 root root 161K Jul 19 19:00 hdt.c32
-rw-r--r--. 1 root root 3.8K Jul 19 19:00 hexdump.c32
-rw-r--r--. 1 root root 2.0K Jul 19 19:00 host.c32
-rw-r--r--. 1 root root 4.2K Jul 19 19:00 ifcpu.c32
-rw-r--r--. 1 root root 2.0K Jul 19 19:00 ifcpu64.c32
-rw-r--r--. 1 root root 4.4K Jul 19 19:00 ifmemdsk.c32
-rw-r--r--. 1 root root 2.1K Jul 19 19:00 ifplop.c32
-rw-r--r--. 1 root root 1.8K Jul 19 19:00 kbdmap.c32
-rw-r--r--. 1 root root 5.0K Jul 19 19:00 kontron_wdt.c32
-rw-r--r--. 1 root root 113K Jul 19 19:00 ldlinux.c32
-rw-r--r--. 1 root root 5.2K Jul 19 19:00 lfs.c32
-rw-r--r--. 1 root root 175K Jul 19 19:00 libcom32.c32
-rw-r--r--. 1 root root 67K Jul 19 19:00 libgpl.c32
-rw-r--r--. 1 root root 101K Jul 19 19:00 liblua.c32
-rw-r--r--. 1 root root 24K Jul 19 19:00 libmenu.c32
-rw-r--r--. 1 root root 25K Jul 19 19:00 libutil.c32
-rw-r--r--. 1 root root 4.8K Jul 19 19:00 linux.c32
-rw-r--r--. 1 root root 3.1K Jul 19 19:00 ls.c32
-rw-r--r--. 1 root root 7.0K Jul 19 19:00 lua.c32
-rw-r--r--. 1 root root 12K Jul 19 19:00 mboot.c32
-rw-r--r--. 1 root root 26K Jul 19 19:00 memdisk
-rw-r--r--. 1 root root 2.7K Jul 19 19:00 meminfo.c32
-rw-r--r--. 1 root root 26K Jul 19 19:00 menu.c32
-rw-r--r--. 1 root root 3.5K Jul 19 19:00 pci.c32
-rw-r--r--. 1 root root 3.6K Jul 19 19:00 pcitest.c32
-rw-r--r--. 1 root root 3.2K Jul 19 19:00 pmload.c32
-rw-r--r--. 1 root root 1.8K Jul 19 19:00 poweroff.c32
-rw-r--r--. 1 root root 3.3K Jul 19 19:00 prdhcp.c32
-rw-r--r--. 1 root root 1.7K Jul 19 19:00 pwd.c32
-rw-r--r--. 1 root root 13K Jul 19 19:00 pxechn.c32
-rw-r--r--. 1 root root 1.6K Jul 19 19:00 reboot.c32
-rw-r--r--. 1 root root 14K Jul 19 19:00 rosh.c32
-rw-r--r--. 1 root root 1.8K Jul 19 19:00 sanboot.c32
-rw-r--r--. 1 root root 3.2K Jul 19 19:00 sdi.c32
-rw-r--r--. 1 root root 15K Jul 19 19:00 sysdump.c32
-rw-r--r--. 1 root root 8.9K Jul 19 19:00 syslinux.c32
-rw-r--r--. 1 root root 3.1K Jul 19 19:00 vesa.c32
-rw-r--r--. 1 root root 2.4K Jul 19 19:00 vesainfo.c32
-rw-r--r--. 1 root root 27K Jul 19 19:00 vesamenu.c32
-rw-r--r--. 1 root root 2.0K Jul 19 19:00 vpdtest.c32
-rw-r--r--. 1 root root 2.7K Jul 19 19:00 whichsys.c32
-rw-r--r--. 1 root root 3.7K Jul 19 19:00 zzjson.c32
/boot/f3603cfae66044dda9d024b8fa5aec6e:
total 4.0K
drwxr-xr-x. 2 root root 4.0K Jul 5 2017 4.11.8-300.fc26.x86_64
/boot/f3603cfae66044dda9d024b8fa5aec6e/4.11.8-300.fc26.x86_64:
total 0
/boot/grub2:
total 24K
drwx------. 2 root root 4.0K Dec 30 13:21 fonts
-rw-------. 1 root root 8.8K Jan 28 2020 grub.cfg
-rw-------. 1 root root 1.0K Dec 30 13:56 grubenv
drwxr-xr-x. 3 root root 4.0K May 9 2012 themes
/boot/grub2/fonts:
total 2.3M
-rwx------. 1 root root 2.3M Nov 20 18:00 unicode.pf2
/boot/grub2/themes:
total 4.0K
drwxr-xr-x. 2 root root 4.0K Nov 9 2021 system
/boot/grub2/themes/system:
total 0
/boot/loader:
total 4.0K
drwx------. 2 root root 4.0K Nov 20 18:00 entries
/boot/loader/entries:
total 12K
-rw-r--r--. 1 root root 158 Dec 21 2023 b639810ced694cd6bada8a62d3510e72-0-memtest86+.conf
-rw-r--r--. 1 root root 392 Jan 28 2020 b639810ced694cd6bada8a62d3510e72-0-rescue.conf
-rw-r--r--. 1 root root 367 Feb 8 2024 b639810ced694cd6bada8a62d3510e72-6.5.13-100.fc37.x86_64.conf
/boot/lost+found:
total 0
Blockquote[quote=“Joe, post:8, topic:141131, full:true, username:grumpey”]
Can you post sudo ls -lhR /boot
[/quote]
crazylyle
(James Peterson)
December 31, 2024, 1:46am
12
I used a “dnf list kernel” and got the name of a package: kernel-6.12.7-200.fc41
Then I tried
dnf install kernel-6.12.7-200.fc41
Updating and loading repositories:
Repositories loaded.
Package “kernel-6.12.7-200.fc41.x86_64” is already installed.
Nothing to do.
So I did
dnf remove kernel-6.12.7-200.fc41
Package Arch Version Repository Size
Removing:
kernel x86_64 6.12.7-200.fc41 updates-testing 0.0 B
Transaction Summary:
Removing: 1 package
After this operation, 0 B extra will be used (install 0 B, remove 0 B).
Is this ok [y/N]: y
Running transaction
[1/2] Prepare transaction 100% | 3.0 B/s | 1.0 B | 00m00s
[2/2] Removing kernel-0:6.12.7-200.fc41.x86_64 100% | 225.0 B/s | 100.0 B | 00m00s
Complete!
and now I can
dnf install kernel-6.12.7-200.fc41
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
kernel x86_64 6.12.7-200.fc41 updates-testing 0.0 B
Transaction Summary:
Installing: 1 package
Total size of inbound packages is 191 KiB. Need to download 191 KiB.
After this operation, 0 B extra will be used (install 0 B, remove 0 B).
Is this ok [y/N]: y
[1/1] kernel-0:6.12.7-200.fc41.x86_64 100% | 409.5 KiB/s | 191.2 KiB | 00m00s
[1/1] Total 100% | 238.8 KiB/s | 191.2 KiB | 00m01s
Running transaction
[1/3] Verify package files 100% | 142.0 B/s | 1.0 B | 00m00s
[2/3] Prepare transaction 100% | 3.0 B/s | 1.0 B | 00m00s
[3/3] Installing kernel-0:6.12.7-200.fc41.x86_64 100% | 270.0 B/s | 124.0 B | 00m00s
Complete!
But that doesn’t seem to actually solve anything.
From the “common issues” that you posted, it would seem that I should just give up and do a complete install, instead of an upgrade?
grumpey
(Joe)
December 31, 2024, 1:49am
13
Did you do this step?
sudo mv "/boot/efi/$(cat /etc/machine-id)" "/boot/efi/$(cat /etc/machine-id)_disabled"
crazylyle
(James Peterson)
December 31, 2024, 4:03am
14
I just tried it. I found the web page that had the common issue for
F39 kernels fail to install when /boot/efi/$machineid is present
and read thru it and my /etc/machine-id is b639810ced694cd6bada8a62d3510e72
and there is (was) a /boot/efi/b639810ced694cd6bada8a62d3510e72, so I
did the mv to rename it, and then reinstalled and rebooted, but nothing changed.
crazylyle
(James Peterson)
December 31, 2024, 4:15am
15
But I appeared to have made one mistake. After moving the /boot/efi/machine-id
directory, I did a
dnf reinstall kernel-6.12.7-200.fc41
instead of the suggested:
dnf reinstall “kernel*-6.12.7-200.fc41”
(I was missing the star for all the kernel packages.)
Once I did the correct reinstall, it appears I can now boot into a 41 kernel:
uname -r
6.12.7-200.fc41.x86_64
So, Huzzah! Problem seems to be solved!
Thank you very much!
1 Like