when I enter the terminal sudo akmods --force I get a failed string:
directories are missing:
/usr/src/kernels/6.0.8-xm1.0.fc38.x86_64/
/lib/modules/6.0.8-xm1.0.fc38.x86_64/build/Is the correct kernel-devel package installed?
when i ender the terminal sudo dnf install nvidia-driver kernel-devel akmod-nvidia I get a failed string :
Error:
Problem: Problem with xorg-x11-drv-nvidia-power-3: 545.29.06-2.fc39.x86_64 installed
Package xorg-x11-drv-nvidia-power-3:545.29.06-2.fc39.x86_64 from @System requires xorg-x11-drv-nvidia(x86-64) = 3:545.29.06, but neither vendor can be installed
Package xorg-x11-drv-nvidia-power-3:545.29.06-2.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver requires xorg-x11-drv-nvidia(x86-64) = 3:545.29.06, but neither supplier can be installed
Package xorg-x11-drv-nvidia-power-3:545.29.06-2.fc39.x86_64 from rpmfusion-nonfree-updates requires xorg-x11-drv-nvidia(x86-64) = 3:545.29.06, but neither vendor can be installed
package nvidia-driver-3:550.54.14-1.fc39.x86_64 from cuda-fedora39-x86_64 conflicts with xorg-x11-drv-nvidia, provided by xorg-x11-drv-nvidia-3:545.29.06-2.
package nvidia-driver-3:550.54.14-1.fc39.x86_64 from cuda-fedora39-x86_64 obsoletes xorg-x11-drv-nvidia, provided by xorg-x11-drv-nvidia-3:545.29.06-2.fc39.x86_64 of @System
Package xorg-x11-drv-nvidia-power-3:535.129.03-2.fc39.x86_64 from rpmfusion-nonfree requires xorg-x11-drv-nvidia(x86-64) = 3:535.129.03, but none of the providers can be installed
Android
xorg-x11-drv-nvidia-3:535.129.03-2.fc39.x86_64 from rpmfusion-nonfree is filtered by modular filtering
Package xorg-x11-drv-nvidia-3:545.29.06-2.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver is filtered with modular filtering
xorg-x11-drv-nvidia-3:545.29.06-2.fc39.x86_64 from rpmfusion-nonfree-updates is filtered with modular filtering
(try adding «-allowerasing» to the command line to replace conflicting packages or «-skip-broken» to skip deleted packages)
This generally happens when drives have previously been installed from a different source, Notably from one of the cuda-fedora repos which installs the driver in modular format. Fedora 39 no longer supports modular structures in their repos…
I am not sure where you got the syntax for that command but it is incorrect and using the proper syntax may work well. sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
Try using the correct command before doing anything else.
If you still see the same error then we need to address the modular issue head on.
akmod-nvidia-3:545.29.06-3.fc39.x86_64 is already installed.
All matches are filtered for argument: xorg-x11-drv-nvidia-cuda
Error: No match found: xorg-x11-drv-nvidia-cuda
The conflict appears to be caused by this repo.
Disable that repo with dnf config-manager --disable cuda-fedora39-x86_64 then redo the installation of the xorg-x11-drv-nvidia-cuda package.
Thank you very much, I managed to perform sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda, but can you help with kernel problem? When I start, module shows me nvidia kernel missing falling back to nouveau, and when I do sudo akmods --force I get
directories are missing: /usr/src/kernels/6.0.8-xm1.0.fc38.x86_64/ /lib/modules/6.0.8-xm1.0.fc38.x86_64/build/Is the correct kernel-devel package installed?
That is not an error. That is information that says a necessary directory to build the module for that kernel does not exist. It also asks if the kernel-devel package for that kernel is installed. This usually is because dependencies to build the modules are not available.
I do not understand why you would be using a 6.0.8 kernel with a system that is designed for a 6.5.6 and newer kernels (Fedora 39). The 6.0.8 kernel was last used many releases of fedora in the past.
You now have installed the packages, but we need additional info about the reason for the fallback to nouveau.
Please provide the output of cat /etc/kernel/cmdline and mokutil --sb-state as well as dnf list installed kernel\*
Why do you have the kernel-xanmod-edge 6.0.8 kernel installed. Removing those kernel packages would eliminate the message you posted.
sudo dnf remove kernel-xanmod-edge\* would remove all those packages if you do not absolutely need that kernel. That kernel is also labeled as applicable to fc38.
At first, all the problems disappeared, but recently nvidia kernel missing falling back to nouveau reappeared and with sudo dnf upgrade --refresh --best --allowerasing -y && flatpak update -y(I have an alias for this) I started getting an error:
Error:
Problem: package xorg-x11-drv-nvidia-cuda-3:550.54.14-1.fc39.x86_64 from @System requires nvidia-persistent(x86-64) = 3:550.54.14, but none of the providers can be installed
- failed to install the best update option for the nvidia package-persistent-3:550.54.14-1.fc39.x86_64
- package nvidia-persistenced-3:550.54.14-3.fc39.x86_64 from fedora-nvidia requires nvidia-driver-cuda = 3:550.54.14, but none of the providers can be installed
- package nvidia-driver-cuda-3:550.54.14-1.fc39.x86_64 from fedora-nvidia conflicts with xorg-x11-drv-nvidia-cuda provided by xorg-x11-drv-nvidia-cuda-3:550.54.14-1.fc39.x86_64 from @System
- package nvidia-driver-cuda-3:550.54.14-2.fc39.x86_64 from fedora-nvidia conflicts with xorg-x11-drv-nvidia-cuda provided by xorg-x11-drv-nvidia-cuda-3:550.54.14-1.fc39.x86_64 from @System
- problem with the xorg-x11 package installed-drv-nvidia-cuda-3:550.54.14-1.fc39.x86_64
- failed to install the best update option for the xorg package-x11-drv-nvidia-cuda-3:550.54.14-1.fc39.x86_64
(try adding "--skip-broken" to skip deleted packages)
I deleted kernel-xanmod-edge*
I would also like to thank you very much for your help. And I apologize for my absence.
In that listing it shows mixing of packages from repos.
The fedora-nvidia repo packages and the packages from rpmfusion-nonfree-nvidia-driver are in many cases not compatible and cause the conflicts as you showed above. My suggestion is to do the following which should solve this issue.
sudo dnf config-manager --disable fedora-nvidia to disable that repo
sudo dnf remove \*nvidia\* --exclude nvidia-gpu-firmware to remove all the mismatched packages
sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda to reinstall all the appropriate packages from the rpmfusion repo
wait at least 5 minutes after step 3 completes before rebooting
After completing these 4 steps the only installed nvidia packages should be from the rpmfusion repo and there should be no conflicts during the installation since the competing repo has been disabled.