Hi everyone,
I’m having troubles to install nvidia drivers (what a unusual issue ^^').
I fully reinstalled my Nvidia drivers;
dnf list installed nvidia outputs :
akmod-nvidia.x86_64 3:550.90.07-1.fc40 @rpmfusion-nonfree-nvidia-driver
nvidia-modprobe.x86_64 3:550.90.07-1.fc40 @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64 3:550.90.07-1.fc40 @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64 3:550.90.07-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64 3:550.90.07-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64 3:550.90.07-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686 3:550.90.07-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64 3:550.90.07-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64 3:550.90.07-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686 3:550.90.07-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64 3:550.90.07-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64 3:550.90.07-1.fc40 @rpmfusion-nonfree-nvidia-driver
But sudo akmods outputs this very weird error :
Checking kmods exist for 6.9.7-200.fc40.x86_64 [ OK ]
Building and installing nvidia-kmod [MISLUKT]
Building rpms failed; see /var/cache/akmods/nvidia/550.90.07-1-for-6.9.7-200.fc40.x86_64.failed.log for details
Building and installing v4l2loopback-kmod [MISLUKT]
Building rpms failed; see /var/cache/akmods/v4l2loopback/0.13.1-1-for-6.9.7-200.fc40.x86_64.failed.log for details
Hint: Some kmods were ignored or failed to build or install.
You can try to rebuild and install them by by calling
'/usr/sbin/akmods --force' as root.
The log file reports this :
2024/07/03 16:29:42 akmods: Building RPM using the command '/usr/sbin/akmodsbuild --kernels 6.9.7-200.fc40.x86_64 /usr/src/akmods/nvidia-kmod.latest'
ERROR: Files needed for building modules against kernel
6.9.7-200.fc40.x86_64 could not be found as the following
directories are missing:
/usr/src/kernels/6.9.7-200.fc40.x86_64/
/usr/lib/modules/6.9.7-200.fc40.x86_64/build/
2024/07/03 16:29:42 akmods: Building rpms failed; see /var/cache/akmods/nvidia/550.90.07-1-for-6.9.7-200.fc40.x86_64.failed.log for details
Checking if the kernels are there then… (sudo ls -l /usr/src/kernels/) :
drwxr-xr-x. 1 root root 404 3 jui 15:58 6.8.11-300.fc40.x86_64
drwxr-xr-x. 1 root root 432 3 jui 15:58 6.9.4-200.fc40.x86_64
drwxr-xr-x. 1 root root 432 3 jui 15:58 6.9.5-200.fc40.x86_64
drwxr-xr-x. 1 root root 432 3 jui 15:58 6.9.6-200.fc40.x86_64
drwxr-xr-x. 1 root root 432 3 jui 15:56 6.9.7-200.fc40.x86_64 (so it exists ??)
Same here for the module (sudo ls -l /usr/lib/modules/6.9.7-200.fc40.x86_64/) :
lrwxrwxrwx. 1 root root 38 27 jun 02:00 build -> /usr/src/kernels/6.9.7-200.fc40.x86_64
...
Dnf list reports this (there is a devel for 6.9.7, is the problem is because kernel headers is 6.9.4 ??) :
kernel.x86_64 6.9.7-200.fc40 @updates
kernel-core.x86_64 6.9.7-200.fc40 @updates
kernel-devel.x86_64 6.9.7-200.fc40 @updates
kernel-devel-matched.x86_64 6.9.7-200.fc40 @updates
kernel-headers.x86_64 6.9.4-200.fc40 @updates
kernel-modules.x86_64 6.9.7-200.fc40 @updates
kernel-modules-core.x86_64 6.9.7-200.fc40 @updates
kernel-modules-extra.x86_64 6.9.7-200.fc40 @updates
kernel-srpm-macros.noarch 1.0-23.fc40 @fedora
kernel-tools.x86_64 6.9.7-200.fc40 @updates
kernel-tools-libs.x86_64 6.9.7-200.fc40 @updates
libreport-plugin-kerneloops.x86_64 2.17.15-1.fc40 @fedora
...
Soooo… I’m completely lost, why would akmods-nvidia says that directories are missing while they exists… Any help is appreciated ty !
(NB: Secure boot is enabled, and i followed HowTo/SecureBoot to sign with mokutils)