Fedora version 39 and 40 uses the same kernel version. So on upgrade to version 40 you will not always get a new kernel. Run cat /etc/os-release
to see the real version.
On my f39 system which had been updated to the 6.8.7-200.fc39.x96_64 kernel it still installed the f40 kernel.
I would suspect that there may have been some interruption in the upgrade or that the f39 kernel is somehow set as default for booting.
Simple to see
- cat /etc/redora-release
- dnf list installed kernel
- ls /boot
All of those should show that the f40 version is correct for a properly completed upgrade. Then the only issue would be why the f39 kernel was used for booting.
only that. the rest are still fc39
Try this way:
sudo dnf -y remove --oldinstallonly
sudo dnf -y reinstall kernel\* --skip-broken