Hi:
I just upgraded my Fedora 41 packages. At the end, it indicated a failure on Autoinstall of module nvidia-open/575.51.03 for kernel 6.15.5-100.fc41.x86_64 (x86_64):
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-100.fc41.x86_64
>>> Non-critical error in post-transaction scriptlet: kernel-core-0:6.15.5-100.fc41.x86_64
>>> Scriptlet output:
>>> Sign command: /lib/modules/6.15.5-100.fc41.x86_64/build/scripts/sign-file
>>> Signing key: /var/lib/dkms/mok.key
>>> Public certificate (MOK): /var/lib/dkms/mok.pub
>>>
>>> Autoinstall of module nvidia-open/575.51.03 for kernel 6.15.5-100.fc41.x86_64 (x86_64)
>>> Building module(s).................(bad exit status: 2)
>>> Failed command:
>>> 'make' -j16 KERNEL_UNAME=6.15.5-100.fc41.x86_64 modules
>>>
>>> Error! Bad return status for module build on kernel: 6.15.5-100.fc41.x86_64 (x86_64)
>>> Consult /var/lib/dkms/nvidia-open/575.51.03/build/make.log for more information.
>>>
>>> Autoinstall on 6.15.5-100.fc41.x86_64 failed for module(s) nvidia-open(10).
>>>
>>> Error! One or more modules failed to install during autoinstall.
>>> Refer to previous errors for more information.
>>> /usr/lib/kernel/install.d/40-dkms.install failed with exit status 11.
>>>
>>> [RPM] %posttrans(kernel-core-6.15.5-100.fc41.x86_64) scriptlet failed, exit status 11
Complete!
I haven’t yet rebooted. Hoping to fix the problem before rebooting but unsure how to proceed.
Thanks in advance to anyone who takes time to read this.
That is what may happen when you install packages from somewhere other than fedora or rpmfusion. The packages from rpmfusion use akmods for compiling and your text shows using dkms.
I suggest you remove all currently installed nvidia packages
sudo dnf remove \*nvidia\* --exclude nvidia-gpu-firmware
then reinstall the nvidia drivers from rpmfusion.
Installing from rpmfusion will get the 575.64 package version.
First check that the rpmfusion-nonfree-nvidia-drivers repo is enabled by running dnf repolist
Once you are certain that the rpmfusion repo shown is enabled then install the packages by using sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
and verify that all packages being installed come directly from fedora or rpmfusion. If it is attempting to install packages from some other repo then add the option --disablerepo <reponame>
to the dnf command so it prevents installation from the other source.
1 Like
Thank you VERY much @computersavvy for sharing this. Will post again after I’ve tried it.
FWIW, I do have two packages – kmod-nvidia-open-dkms
and nvidia-kmod-common
– installed from cuda-fedora41-x86_64
. That repo’s not in my current repolist, so it’s probably from when I was fumbling around with the various NVIDIA drivers last year (?):
$ dnf repolist
repo id repo name
code Visual Studio Code
copr:copr.fedorainfracloud.org:atim:lazygit Copr repo for lazygit owned by atim
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
google-chrome google-chrome
nvidia-container-toolkit nvidia-container-toolkit
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
I haven’t yet run this command, but this is what it plans to uninstall:
...sudo dnf remove \*nvidia\* --exclude nvidia-gpu-firmware
Package Arch Version Repository Size
Removing:
akmod-nvidia x86_64 3:575.64.03-2.fc41 rpmfusion-nonfree-nvidia-driv 95.5 KiB
kmod-nvidia-6.14.6-200.fc41.x86_64 x86_64 3:570.144-1.fc41 @commandline 131.8 MiB
kmod-nvidia-6.14.8-200.fc41.x86_64 x86_64 3:575.64.03-2.fc41 @commandline 32.3 MiB
kmod-nvidia-open-dkms noarch 3:575.51.03-1.fc41 cuda-fedora41-x86_64 102.4 MiB
nvidia-kmod-common noarch 3:575.51.03-1.fc41 cuda-fedora41-x86_64 98.5 MiB
nvidia-modprobe x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-driv 51.0 KiB
nvidia-persistenced x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-driv 58.5 KiB
nvidia-settings x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-driv 4.4 MiB
xorg-x11-drv-nvidia x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-driv 167.9 MiB
xorg-x11-drv-nvidia-cuda x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-driv 6.2 MiB
xorg-x11-drv-nvidia-cuda-libs x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-driv 337.6 MiB
xorg-x11-drv-nvidia-kmodsrc x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-driv 87.8 MiB
xorg-x11-drv-nvidia-libs x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-driv 427.6 MiB
xorg-x11-drv-nvidia-power x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-driv 4.3 MiB
xorg-x11-drv-nvidia-xorg-libs x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-driv 19.4 MiB
Just ran it. No errors.
$ sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
Package Arch Version Repository Size
Installing:
akmod-nvidia x86_64 3:575.64.03-2.fc41 rpmfusion-nonfree-nvidia-drive 95.5 KiB
xorg-x11-drv-nvidia-cuda x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-drive 6.2 MiB
Installing dependencies:
akmods noarch 0.6.0-8.fc41 updates 64.2 KiB
egl-gbm x86_64 2:1.1.2.1-1.fc41 updates 29.3 KiB
egl-wayland x86_64 1.1.19-3.fc41 updates 83.3 KiB
egl-x11 x86_64 1.0.2-1.fc41 updates 165.6 KiB
fakeroot x86_64 1.37.1-1.fc41 updates 155.1 KiB
fakeroot-libs x86_64 1.37.1-1.fc41 updates 132.8 KiB
kmodtool noarch 1.1-13.fc41 updates 27.6 KiB
nvidia-modprobe x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-drive 51.0 KiB
nvidia-persistenced x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-drive 58.5 KiB
nvidia-settings x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-drive 4.4 MiB
opencl-filesystem noarch 1.0-21.fc41 fedora 0.0 B
python3-progressbar2 noarch 3.53.2-13.fc41 fedora 258.5 KiB
python3-rpmautospec-core noarch 0.1.5-2.fc41 fedora 10.7 KiB
python3-utils noarch 3.7.0-6.fc41 fedora 172.3 KiB
rpmdevtools noarch 9.6-8.fc41 fedora 213.8 KiB
xorg-x11-drv-nvidia x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-drive 167.9 MiB
xorg-x11-drv-nvidia-cuda-libs x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-drive 337.6 MiB
xorg-x11-drv-nvidia-kmodsrc x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-drive 87.8 MiB
xorg-x11-drv-nvidia-libs x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-drive 427.6 MiB
xorg-x11-drv-nvidia-xorg-libs x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-drive 19.4 MiB
Installing weak dependencies:
python3-rpmautospec noarch 0.8.1-11.fc41 updates 418.9 KiB
xorg-x11-drv-nvidia-power x86_64 3:575.64.03-1.fc41 rpmfusion-nonfree-nvidia-drive 4.3 MiB
...
[26/26] Installing python3-rpmautospec-0:0.8.1-11.fc41.noarch 100% | 281.4 KiB/s | 452.6 KiB | 00m02s
Complete!
Actually, those 2 packages may be all that need removed.
After that I would verify the active nvidia module with modinfo nvidia | grep -i -e version -e license
If it shows 575.64.03 and Dual MIT/GPL then you should not need to do anything else except run sudo dnf reinstall akmod-nvidia xorg-x11-drv-nvidia-cuda kernel*
to get the system to build the modules for the newly installed kernel.
This is what my system shows
$ dnf list --installed *nvidia*
\Installed packages
akmod-nvidia.x86_64 3:575.64.03-2.fc42 rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.14.9-300.fc42.x86_64.x86_64 3:575.64-2.fc42 @commandline
kmod-nvidia-6.15.4-200.fc42.x86_64.x86_64 3:575.64.03-2.fc42 @commandline
kmod-nvidia-6.15.5-200.fc42.x86_64.x86_64 3:575.64.03-2.fc42 @commandline
nvidia-gpu-firmware.noarch 20250627-1.fc42 updates
nvidia-modprobe.x86_64 3:575.64.03-1.fc42 rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64 3:575.64.03-1.fc42 rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64 3:575.64.03-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64 3:575.64.03-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64 3:575.64.03-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686 3:575.64.03-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64 3:575.64.03-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64 3:575.64.03-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686 3:575.64.03-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64 3:575.64.03-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64 3:575.64.03-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-xorg-libs.x86_64 3:575.64.03-1.fc42 rpmfusion-nonfree-nvidia-driver
1 Like
Thanks, again, @computersavvy ! Looking good:
$ modinfo nvidia | grep -i -e version -e license
version: 575.64.03
license: Dual MIT/GPL
Then:
$ sudo dnf reinstall akmod-nvidia xorg-x11-drv-nvidia-cuda kernel*
...
[28/28] Removing kernel-tools-libs-0:6.15.5-100.fc41.x86_64 100% | 0.0 B/s | 2.0 B | 00m31s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-100.fc41.x86_64
>>> Finished post-transaction scriptlet: kernel-core-0:6.15.5-100.fc41.x86_64
>>> Scriptlet output:
>>> dracut[W]: If you need to use bluetooth, please include it explicitly.
>>> dracut[W]: If you need to use bluetooth, please include it explicitly.
>>>
Complete!
Will cross my fingers and reboot
Thank you SO very much, @computersavvy ! My laptop rebooted just fine and seems to be working. I hope you have a wonderful weekend!!!
–James
2 Likes