As I noted, dnf will not remove the kernel that is presently running.
Got it. What kernel should I select from grub to get me back to normal?
hold on a moment while I look back a bit
You should be able to use the 6.10.3-200 fedora kernel but I don’t yet know whether the nvidia driver is functional for that kernel. I don’t want to have you boot with no functional drivers.
What is the result of dnf list kmod-nvidia-*
Installed Packages
kmod-nvidia-6.6.45-clts1.0.lto.fc40.x86_64.x86_64
3:555.58.02-1.fc40 @@commandline
Available Packages
kmod-nvidia-470xx.x86_64 3:470.256.02-1.fc40 rpmfusion-nonfree-nvidia-driver
Ok we need to build the driver for the 6.10.3 kernel before rebooting.
use sudo dnf install kernel-devel-6.10.3*
to verify that the development package is installed so the driver can be compiled for that kernel. If already installed or it does install it, then the next command can be performed.
sudo akmods --force --kernels 6.10.3-200.fc40.x86_64
This should properly build the nvidia driver for that kernel. If it fails let me know. If it succeeds then using the grub menu to boot from the 6.10.3 kernel should also work
ERROR:
could not find files needed to compile modules for 6.10.3-200.fc40.x86_64
Are the development files for kernel 6.10.3-200.fc40.x86_64 or the appropriate kernel-devel package installed?
OOPs.
I forgot that the 6.10.3 kernel is no longer available and 6.10.4 is the current kernel. Please instead run
sudo dnf upgrade kernel*
and show me what it wants to upgrade before accepting that list.
Were did you learn all these cool commands?
OK:
sudo dnf upgrade kernel*
Last metadata expiration check: 4:17:38 ago on Sat 17 Aug 2024 02:26:55 PM EDT.
Dependencies resolved.
================================================================================
Package Arch Version Repo Size
================================================================================
Installing:
kernel x86_64 6.10.4-200.fc40 updates 175 k
kernel-cachyos-devel x86_64 6.10.5-cb1.0.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos
16 M
kernel-cachyos-lto-devel x86_64 6.10.5-cb1.0.lto.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos-lto
16 M
Upgrading:
kernel-cachyos-lts x86_64 6.6.46-clts1.0.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos
7.1 k
kernel-cachyos-lts-devel-matched
x86_64 6.6.46-clts1.0.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos
7.2 k
kernel-cachyos-lts-lto x86_64 6.6.46-clts1.0.lto.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos-lto
7.1 k
kernel-cachyos-lts-lto-devel-matched
x86_64 6.6.46-clts1.0.lto.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos-lto
7.3 k
Installing dependencies:
kernel-cachyos-core x86_64 6.10.5-cb1.0.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos
15 M
kernel-cachyos-lto-core x86_64 6.10.5-cb1.0.lto.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos-lto
14 M
kernel-cachyos-lto-headers x86_64 6.10.5-cb1.0.lto.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos-lto
1.4 M
replacing kernel-headers.x86_64 6.10.3-200.fc40
kernel-cachyos-lto-modules x86_64 6.10.5-cb1.0.lto.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos-lto
127 M
kernel-cachyos-lts-core x86_64 6.6.46-clts1.0.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos
13 M
kernel-cachyos-lts-devel x86_64 6.6.46-clts1.0.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos
15 M
kernel-cachyos-lts-lto-core x86_64 6.6.46-clts1.0.lto.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos-lto
12 M
kernel-cachyos-lts-lto-devel x86_64 6.6.46-clts1.0.lto.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos-lto
15 M
kernel-cachyos-lts-lto-modules x86_64 6.6.46-clts1.0.lto.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos-lto
98 M
kernel-cachyos-lts-modules x86_64 6.6.46-clts1.0.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos
97 M
kernel-cachyos-modules x86_64 6.10.5-cb1.0.fc40 copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos
128 M
kernel-core x86_64 6.10.4-200.fc40 updates 17 M
kernel-modules x86_64 6.10.4-200.fc40 updates 63 M
kernel-modules-core x86_64 6.10.4-200.fc40 updates 38 M
kernel-modules-extra x86_64 6.10.4-200.fc40 updates 2.9 M
Removing:
kernel x86_64 6.8.5-301.fc40 @anaconda 0
kernel-core x86_64 6.8.5-301.fc40 @anaconda 66 M
kernel-modules x86_64 6.8.5-301.fc40 @anaconda 58 M
kernel-modules-core x86_64 6.8.5-301.fc40 @anaconda 32 M
kernel-modules-extra x86_64 6.8.5-301.fc40 @anaconda 2.4 M
Ok, that is not going to work.
sudo dnf remove kernel*6.8.5* kernel*6.9.12*
which should clear enough space to install the 6.10.4 kernel
Then install the 6.10.4 kernel with
sudo dnf install kernel-6.10.4-200.fc40.x86_64 kernel-{core,devel,devel-matched,modules,modules-core,modules-extra,tools,tools-libs}-6.10.4-200.fc40.x86_64
Installing the 6.10.4 kernel should also build the driver for it but lets do the install then wait 5 minutes to check before doing anything else.
years of use and experience. as well as references.
I suggest you use the linux command resource to learn as much as you can.
I am learning so much from you in this one thread. OK, error:
sudo dnf install kernel-6.10.4-200.fc40.x86_64 kernel-{core,devel,devel-matched,modules,modules-core,modules-core-extra,tools,tools-libs}-6.10.4.200.fc40.x86_64
Last metadata expiration check: 4:31:55 ago on Sat 17 Aug 2024 02:26:55 PM EDT.
No match for argument: kernel-core-6.10.4.200.fc40.x86_64
No match for argument: kernel-devel-6.10.4.200.fc40.x86_64
No match for argument: kernel-devel-matched-6.10.4.200.fc40.x86_64
No match for argument: kernel-modules-6.10.4.200.fc40.x86_64
No match for argument: kernel-modules-core-6.10.4.200.fc40.x86_64
No match for argument: kernel-modules-core-extra-6.10.4.200.fc40.x86_64
No match for argument: kernel-tools-6.10.4.200.fc40.x86_64
No match for argument: kernel-tools-libs-6.10.4.200.fc40.x86_64
Error: Unable to find a match: kernel-core-6.10.4.200.fc40.x86_64 kernel-devel-6.10.4.200.fc40.x86_64 kernel-devel-matched-6.10.4.200.fc40.x86_64 kernel-modules-6.10.4.200.fc40.x86_64 kernel-modules-core-6.10.4.200.fc40.x86_64 kernel-modules-core-extra-6.10.4.200.fc40.x86_64 kernel-tools-6.10.4.200.fc40.x86_64 kernel-tools-libs-6.10.4.200.fc40.x86_64
Typo
Should be 6.10.4-200 instead
Sorry about that typo. There is a smaller error now:
No match for argument: kernel-modules-core-extra-6.10.4-200.fc40.x86_64
Error: Unable to find a match: kernel-modules-core-extra-6.10.4-200.fc40.x86_64
My typo. modules-extra not modules-core-extra
I will fix that above
edit
Fixed
Complete! Adding boot menu entry for UEFI Firmware Settings …
Is there a way to look up and change the default using grubby or is this now the default?
sudo grubby --default-kernel
should display the default
If it shows this then the new kernel is the default
$ sudo grubby --default-kernel
/boot/vmlinuz-6.10.4-200.fc40.x86_64
OK! I rebooted and everything looks great. What do we need to do for the graphics card?
We also need to verify the nvidia drivers and the new kernel is actually booted.
uname -r
for the kernel
dnf list installed kmod-nvidia*
to see the drivers are properly built and installed for the 6.10.4 kernel
uname -r
6.10.4-200.fc40.x86_64
dnf list installed kmod-nvidia*
Installed Packages
kmod-nvidia-6.6.45-clts1.0.lto.fc40.x86_64.x86_64 3:555.58.02-1.fc40 @@commandline