Nvidia driver (rpm), non-resolvable dependencies

hey there
i have the problem that, when i try to install akmod-nvidia and the cuda stuff on fedora 41 (plasma, xorg/x11) over rpm fusion repos, the installation is skipped (dnf) due to non-resolveable dependencies. any hints here? is this a problem about the repo or is there perhaps a problem with my packages and applications?

message from dnf:: Packages with unresolvable dependencies are skipped: akmod-nvidia

thanks a lot

kind regards

Did you add the rpmfusion repos? They are not setup by default.

See the Howto/NVIDIA - RPM Fusion section " About this Howto" that talks about config.

yes, i’ve added rpm fusion for that. an they seem to be updated to fedora41 when upgrading the system.

ive kind of exactly done whats descirbed by rpm fusion (your link), last time it was ok.

Please show the following.
dnf repolist
dnf list --installed \*nvidia\*
uname -r

and the (full) actual results of sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda

here the resultst

sorry, some of the text since i use the german version actually

dnf repolist
repo id                                       repo name                                                
cuda-fedora39-12-6-local                      cuda-fedora39-12-6-local                                 
fedora                                        Fedora 41 - x86_64                                       
fedora-cisco-openh264                         Fedora 41 openh264 (From Cisco) - x86_64                 
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-updates                     RPM Fusion for Fedora 41 - Nonfree - Updates             
updates                                       Fedora 41 - x86_64 - Updates                             
(base) mercus@fedora:~$ 

and: dnf list --installed \*nvidia\*

Installierte Pakete
libnvidia-cfg.x86_64           3:560.35.03-1.fc39 <unknown>
libnvidia-ml.x86_64            3:560.35.03-1.fc39 <unknown>
nvidia-driver-cuda-libs.x86_64 3:560.35.03-1.fc39 <unknown>
nvidia-persistenced.x86_64     3:560.35.03-1.fc39 <unknown>

here the uname

6.12.6-200.fc41.x86_64

and the install command

first with cuda, this is also an error:

Aktualisiere und lade Paketquellen:
 Fedora 41 - x86_64 - Updates                                  100% |  39.8 KiB/s |   9.1 KiB |  00m00s
 Fedora 41 - x86_64 - Updates                                  100% |   4.2 MiB/s |   1.7 MiB |  00m00s
Paketquellen geladen.
Auflösen der Transaktion fehlgeschlagen:
Argument 'xorg-x11-drv-nvidia-cuda' stimmt nur mit ausgeschlossenen Paketen ĂŒberein.
Problem: Paket akmod-nvidia-3:565.77-1.fc41.x86_64 aus rpmfusion-nonfree-updates benötigt nvidia-kmod-common >= 3:565.77, aber keiner der Anbieter kann installiert werden
  - Installation des besten Kandidaten nicht möglich fĂŒr den Auftrag
  - Paket xorg-x11-drv-nvidia-3:565.77-3.fc41.x86_64 von rpmfusion-nonfree-updates wird durch Ausschlussfilterung herausgefiltert

it calls that transaction failed because cuda stuff is "excluded.
Argument ‘xorg-x11-drv-nvidia-cuda’ only matches excluded packages.

and only the akmod

Installiere:
 akmod-nvidia                 x86_64      3:560.35.03-1.fc41            rpmfusion-nonfree      92.2 KiB
AbhÀngigkeiten werden installiert:
 akmods                       noarch      0.6.0-8.fc41                  updates                64.2 KiB
 bison                        x86_64      3.8.2-9.fc41                  fedora                  3.5 MiB
 elfutils-libelf-devel        x86_64      0.192-7.fc41                  updates                49.5 KiB
 fakeroot                     x86_64      1.36.2-1.fc41                 updates               152.0 KiB
 fakeroot-libs                x86_64      1.36.2-1.fc41                 updates               128.0 KiB
 flex                         x86_64      2.6.4-18.fc41                 fedora                805.4 KiB
 kernel-devel                 x86_64      6.12.6-200.fc41               updates                76.7 MiB
 kernel-devel-matched         x86_64      6.12.6-200.fc41               updates                 0.0   B
 kmodtool                     noarch      1.1-11.fc41                   fedora                 27.5 KiB
 libgit2                      x86_64      1.8.4-1.fc41                  updates                 1.3 MiB
 libssh2                      x86_64      1.11.0-8.fc41                 fedora                293.6 KiB
 libzstd-devel                x86_64      1.5.6-2.fc41                  fedora                202.4 KiB
 m4                           x86_64      1.4.19-10.fc41                fedora                592.9 KiB
 nvidia-kmod-common           noarch      3:560.35.03-1.fc39            cuda-fedora39-12-6-lo  65.6 MiB
 nvidia-modprobe              x86_64      3:560.35.03-1.fc39            cuda-fedora39-12-6-lo  54.7 KiB
 openssl-devel                x86_64      1:3.2.2-9.fc41                fedora                  4.3 MiB
 python3-click-plugins        noarch      1.1.1-22.fc41                 fedora                 24.0 KiB
 python3-progressbar2         noarch      3.53.2-13.fc41                fedora                258.5 KiB
 python3-pygit2               x86_64      1.16.0-1.fc41                 updates                 1.2 MiB
 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-kmodsrc  x86_64      3:560.35.03-5.fc41            rpmfusion-nonfree      53.6 MiB
Schwache AbhÀngigkeiten werden installiert:
 python3-rpmautospec          noarch      0.7.3-1.fc41                  updates               151.1 KiB
Pakete mit nicht auflösbaren AbhĂ€ngigkeiten werden ĂŒbersprungen:
 akmod-nvidia                 x86_64      3:565.77-1.fc41               rpmfusion-nonfree-upd  90.9 KiB

Transaktionszusammenfasung:
 Installiere:        25 Pakete
 Überspringe:           1 Paket

Die vollstĂ€ndige GrĂ¶ĂŸe eingehender Pakete ist 125 MiB. Heruntergeladen werden mĂŒssen 125 MiB.
Nach dieser Operation werden 209 MiB mehr benötigt (installiere 209 MiB, entferne 0 B).

and here the akmod is under unresolveable dependencies.

Packages with unresolvable dependencies are skipped: akmod

hope this helps

kind regards

at the moment, i have uninstalled both packages, resp. the parts which where installed.

None of those are from a current fedora repo and all are for f39. Some are not even from the rpmfusion repo.
All appear to have been installed with dnf4, probably before upgrading to f41

I think you will find that you need to remove all currently installed nvidia packages, ensure that you have disabled the modular nvidia-driver, then start clean with a current f41 repo and install ONLY from one or the other repos.

To cleanly remove nvidia packages that are installed by rpm the command
sudo dnf remove \*nvidia\* --exclude nvidia-gpu-firmware should work.
Then to find out if the modular nvidia-driver is enabled the command
dnf module list --enabled should show that

Your choice for using either the cuda-fedora41 repo or the rpmfusion repos but having packages installed from both seem to cause the conflicts.

Disabling the currently enabled cuda-fedora39-12-6-local repo the command (with dnf5) should be sudo dnf config-manager setopt <repo-id>.enabled=0

In general, unless you are doing cuda development there is no reason to install packages from the cuda-fedoraXX repos. Most of us suggest only installing from rpmfusion and that is done with one command to also include cuda.
sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda

Cleaning up what is already installed then running that one command (and waiting for about 5 minutes after it completes before rebooting) should solve the issues.

thanks a lot.
after removing the old packages and disabling the other repo, it was fine.

kind regards

1 Like