Nvidia install errors

Hello,
I’m trying to follow the instructions in this almalinux blog post It was just posted about 1 month ago so I would expect it to be correct. but the second dnf command errors out with the following:

# dnf install nvidia-open-kmod nvidia-driver
AlmaLinux 9 - CRB                                                                                                                                              41 kB/s | 4.2 kB     00:00    
Error: 
 Problem: package nvidia-driver-3:580.82.07-1.el9.x86_64 from cuda-rhel9-x86_64 requires nvidia-kmod-common = 3:580.82.07, but none of the providers can be installed
  - package nvidia-kmod-common-3:580.82.07-1.el9.noarch from cuda-rhel9-x86_64 requires nvidia-kmod = 3:580.82.07, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package kmod-nvidia-latest-dkms-3:580.82.07-1.el9.x86_64 from cuda-rhel9-x86_64 is filtered out by exclude filtering
  - package kmod-nvidia-open-dkms-3:580.82.07-1.el9.noarch from cuda-rhel9-x86_64 is filtered out by exclude filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

The machine I’m installing on is a headless server with a new install of Almalinux 9.6. I hope to also install the container toolkit to allow docker containers to share the GPU.

Any suggestions would be appreciated. I have not seen any other posts about this.

Thanks,
-Bill

Hello

I believe the “exclude” entry in “nvidia-cuda.repo” is causing the issue.
Try removing it or commenting it out. The installation should succeed.

[root@alma9 yum.repos.d]# dnf install nvidia-open-kmod nvidia-driver
Last metadata expiration check: 0:02:35 ago on Thu Sep  4 17:49:09 2025.
Error:
 Problem: package nvidia-driver-3:580.82.07-1.el9.x86_64 from cuda-rhel9-x86_64 requires nvidia-kmod-common = 3:580.82.07, but none of the providers can be installed
  - package nvidia-kmod-common-3:580.82.07-1.el9.noarch from cuda-rhel9-x86_64 requires nvidia-kmod = 3:580.82.07, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package kmod-nvidia-latest-dkms-3:580.82.07-1.el9.x86_64 from cuda-rhel9-x86_64 is filtered out by exclude filtering
  - package kmod-nvidia-open-dkms-3:580.82.07-1.el9.noarch from cuda-rhel9-x86_64 is filtered out by exclude filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)


[root@alma9 yum.repos.d]# cat nvidia-cuda.repo
# This repository is for NVIDIA user space and CUDA components which cannot be redistributed due to licensing restrictions.
# This content is served directly by NVIDIA.

# Do not modify this file, it will be overwritten/replaced on updates.

[cuda-rhel$releasever-$basearch]
name=cuda-rhel$releasever-$basearch
baseurl=https://developer.download.nvidia.com/compute/cuda/repos/rhel$releasever/$basearch
enabled=1
gpgcheck=1
countme=1
gpgkey=https://developer.download.nvidia.com/compute/cuda/repos/rhel$releasever/$basearch/D42D0685.pub

exclude=akmod-nvidia dkms-nvidia kmod-nvidia-*-dkms nvidia-fs* nvidia-gds* cuda-drivers
[root@alma9 yum.repos.d]# pwd
/etc/yum.repos.d
[root@alma9 yum.repos.d]# cat nvidia-cuda.repo
# This repository is for NVIDIA user space and CUDA components which cannot be redistributed due to licensing restrictions.
# This content is served directly by NVIDIA.

# Do not modify this file, it will be overwritten/replaced on updates.

[cuda-rhel$releasever-$basearch]
name=cuda-rhel$releasever-$basearch
baseurl=https://developer.download.nvidia.com/compute/cuda/repos/rhel$releasever/$basearch
enabled=1
gpgcheck=1
countme=1
gpgkey=https://developer.download.nvidia.com/compute/cuda/repos/rhel$releasever/$basearch/D42D0685.pub

exclude=akmod-nvidia dkms-nvidia kmod-nvidia-*-dkms nvidia-fs* nvidia-gds* cuda-drivers

I should have mentioned that I tried that already. It errors also:

# vim /etc/yum.repos.d/nvidia-cuda.repo 
[root@homehost1 ~]# dnf install nvidia-open-kmod nvidia-driver
cuda-rhel9-x86_64                                                                                                                                              34 kB/s | 3.5 kB     00:00    
Error: 
 Problem: cannot install both nvidia-kmod-common-3:580.82.07-1.el9.noarch from cuda-rhel9-x86_64 and nvidia-kmod-common-3:580.65.06-1.el9.noarch from cuda-rhel9-x86_64
  - package nvidia-driver-3:580.82.07-1.el9.x86_64 from cuda-rhel9-x86_64 requires nvidia-kmod-common = 3:580.82.07, but none of the providers can be installed
  - package nvidia-open-kmod-580.65.06-2.el9.x86_64 from almalinux-nvidia requires nvidia-kmod-common = 3:580.65.06, but none of the providers can be installed
  - cannot install the best candidate for the job
  - conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Thanks,
-Bill

A thing is that the NVidia’s repo ( cuda-rhel9-x86_64) has all packages for one driver version. That is, including the kernel modules. The additional AlmaLinux repo has only package with kernel modules.

Why kernel module from Alma, when NVidia offers it too? Because Alma’s module is signed by Alma and thus requires no extra steps when Secure Boot is enabled.

Since we need kernel module only once, we don’t want to install the other copy. The excludes are there to help in that.

Do you have Secure Boot enabled?

mokutil --sb

should tell.


The DNF does cache metadata about repos and occasionally that gets stale. One can clear/flush things:

dnf clean all

What do you have and see now?

dnf list \*nvidia\*

Will this be just for computation (with CUDA applications), no GUI desktop sessions?
If yes, then you don’t need all the drivers, just the ones that CUDA needs.

Which GPU (model/generation) do you have?

Thanks for the help Jukka!

  • Secure Boot is disabled.
  • NVIDIA Corporation GA106 [RTX A2000] (rev a1) - yes only compute, no GUI installed and the BIOS has the onboard GPU set as primary.
  • Here is the dnf output:
# dnf clean all
85 files removed
# dnf list \*nvidia\*
AlmaLinux 9 - AppStream                                                                                                                                        42 MB/s |  17 MB     00:00    
AlmaLinux 9 - BaseOS                                                                                                                                           66 MB/s |  21 MB     00:00    
AlmaLinux 9 - CRB                                                                                                                                              28 MB/s | 3.5 MB     00:00    
AlmaLinux 9 - Extras                                                                                                                                          218 kB/s |  20 kB     00:00    
AlmaLinux 9 - NVIDIA Driver                                                                                                                                   132 kB/s |  13 kB     00:00    
Docker CE Stable - x86_64                                                                                                                                     212 kB/s |  30 kB     00:00    
Extra Packages for Enterprise Linux 9 - x86_64                                                                                                                9.4 MB/s |  20 MB     00:02    
Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64                                                                                          3.2 kB/s | 2.5 kB     00:00    
cuda-rhel9-x86_64                                                                                                                                              18 MB/s | 3.3 MB     00:00    
Tailscale stable                                                                                                                                               96 kB/s |  17 kB     00:00    
ZFS on Linux for EL9 - dkms                                                                                                                                    85 kB/s |  62 kB     00:00    
Installed Packages
almalinux-release-nvidia-driver.x86_64                                                    9-3.el9                                                                            @extras          
Available Packages
dnf-plugin-nvidia.noarch                                                                  2.3-1.el9                                                                          cuda-rhel9-x86_64
kmod-nvidia-open.x86_64                                                                   580.65.06-2.el9                                                                    almalinux-nvidia 
kmod-nvidia-open-dkms.noarch                                                              3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
libnvidia-cfg.x86_64                                                                      3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
libnvidia-container-devel.x86_64                                                          1.17.8-1                                                                           cuda-rhel9-x86_64
libnvidia-container-libseccomp2.x86_64                                                    1.17.8-1                                                                           cuda-rhel9-x86_64
libnvidia-container-static.x86_64                                                         1.17.8-1                                                                           cuda-rhel9-x86_64
libnvidia-container-tools.x86_64                                                          1.17.8-1                                                                           cuda-rhel9-x86_64
libnvidia-container1.x86_64                                                               1.17.8-1                                                                           cuda-rhel9-x86_64
libnvidia-container1-debuginfo.x86_64                                                     1.17.8-1                                                                           cuda-rhel9-x86_64
libnvidia-fbc.i686                                                                        3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
libnvidia-fbc.x86_64                                                                      3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
libnvidia-gpucomp.i686                                                                    3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
libnvidia-gpucomp.x86_64                                                                  3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
libnvidia-ml.i686                                                                         3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
libnvidia-ml.x86_64                                                                       3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
libnvidia-nscq.x86_64                                                                     580.82.07-1                                                                        cuda-rhel9-x86_64
libva-nvidia-driver.x86_64                                                                0.0.13^20250419gitc2860cc-1.el9                                                    epel             
nvidia-container-runtime.noarch                                                           3.13.0-1                                                                           cuda-rhel9-x86_64
nvidia-container-toolkit.x86_64                                                           1.17.8-1                                                                           cuda-rhel9-x86_64
nvidia-container-toolkit-base.x86_64                                                      1.17.8-1                                                                           cuda-rhel9-x86_64
nvidia-docker2.noarch                                                                     2.13.0-1                                                                           cuda-rhel9-x86_64
nvidia-driver.x86_64                                                                      3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
nvidia-driver-assistant.noarch                                                            0.22.82.07-1                                                                       cuda-rhel9-x86_64
nvidia-driver-cuda.x86_64                                                                 3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
nvidia-driver-cuda-libs.i686                                                              3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
nvidia-driver-cuda-libs.x86_64                                                            3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
nvidia-driver-libs.i686                                                                   3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
nvidia-driver-libs.x86_64                                                                 3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
nvidia-fabric-manager-devel.x86_64                                                        580.82.07-1                                                                        cuda-rhel9-x86_64
nvidia-fabricmanager.x86_64                                                               580.82.07-1                                                                        cuda-rhel9-x86_64
nvidia-fabricmanager-devel.x86_64                                                         580.65.06-1                                                                        cuda-rhel9-x86_64
nvidia-fs.x86_64                                                                          2.26.6-1                                                                           cuda-rhel9-x86_64
nvidia-fs-dkms.x86_64                                                                     2.26.6-1                                                                           cuda-rhel9-x86_64
nvidia-gds.x86_64                                                                         13.0.0-1                                                                           cuda-rhel9-x86_64
nvidia-gds-11-7.x86_64                                                                    11.7.1-1                                                                           cuda-rhel9-x86_64
nvidia-gds-11-8.x86_64                                                                    11.8.0-1                                                                           cuda-rhel9-x86_64
nvidia-gds-12-0.x86_64                                                                    12.0.1-1                                                                           cuda-rhel9-x86_64
nvidia-gds-12-1.x86_64                                                                    12.1.1-1                                                                           cuda-rhel9-x86_64
nvidia-gds-12-2.x86_64                                                                    12.2.2-1                                                                           cuda-rhel9-x86_64
nvidia-gds-12-3.x86_64                                                                    12.3.2-1                                                                           cuda-rhel9-x86_64
nvidia-gds-12-4.x86_64                                                                    12.4.1-1                                                                           cuda-rhel9-x86_64
nvidia-gds-12-5.x86_64                                                                    12.5.1-1                                                                           cuda-rhel9-x86_64
nvidia-gds-12-6.x86_64                                                                    12.6.3-1                                                                           cuda-rhel9-x86_64
nvidia-gds-12-8.x86_64                                                                    12.8.1-1                                                                           cuda-rhel9-x86_64
nvidia-gds-12-9.x86_64                                                                    12.9.1-1                                                                           cuda-rhel9-x86_64
nvidia-gds-13-0.x86_64                                                                    13.0.0-1                                                                           cuda-rhel9-x86_64
nvidia-imex.x86_64                                                                        580.82.07-1                                                                        cuda-rhel9-x86_64
nvidia-kmod-common.noarch                                                                 3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
nvidia-libXNVCtrl.x86_64                                                                  3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
nvidia-libXNVCtrl-devel.x86_64                                                            3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
nvidia-modprobe.x86_64                                                                    3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
nvidia-open.noarch                                                                        3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
nvidia-open-560.noarch                                                                    3:560.35.05-1.el9                                                                  cuda-rhel9-x86_64
nvidia-open-565.noarch                                                                    3:565.57.01-1.el9                                                                  cuda-rhel9-x86_64
nvidia-open-kmod.x86_64                                                                   580.65.06-2.el9                                                                    almalinux-nvidia 
nvidia-persistenced.x86_64                                                                3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
nvidia-settings.x86_64                                                                    3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
nvidia-xconfig.x86_64                                                                     3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64
pcp-pmda-nvidia-gpu.x86_64                                                                6.3.7-1.el9_6                                                                      appstream        
xorg-x11-nvidia.x86_64                                                                    3:580.82.07-1.el9                                                                  cuda-rhel9-x86_64

AlmaLinux kernel module package has version 580.65.06-2.el9
NVidia’s packages are already version 580.82.07-1.el9
Hence the mismatch.

NVidia’s repo does have version 580.65.06-1.el9 of packages too:

# dnf -q --enablerepo=cuda* list --showduplicates nvidia-driver-cuda
Installed Packages
nvidia-driver-cuda.x86_64      3:580.65.06-1.el9      @cuda-rhel9-x86_64
Available Packages
nvidia-driver-cuda.x86_64      3:580.65.06-1.el9      cuda-rhel9-x86_64 
nvidia-driver-cuda.x86_64      3:580.82.07-1.el9      cuda-rhel9-x86_64

Therefore, one could install the older version of packages and then avoid update until AlmaLinux package does catch up. Not fun.


You don’t have Secure Boot, so you don’t need the convenience of Alma-signed modules.
Therefore, you can disable the unnecessary repo:

dnf config-manager --disable almalinux-nvidia

You have already removed the exclude from nvidia-cuda.repo (completely)? You should.

An Ampere card. Use of NVidia’s “open” driver is possible and recommended.

DNF has “modules”, so lets make sure they are in correct state:

dnf module reset nvidia-driver
dnf module enable nvidia-driver:open-dkms

and then install the driver for compute:

dnf install nvidia-driver-cuda kmod-nvidia-open-dkms

and most of CUDA:

dnf install cuda-toolkit

(It is possible to install multiple versions of CUDA simultaneously, if applications are prebuilt to depend on specific version. One does not need whole toolkit for those, cuda-runtime-X-Y ought to suffice.)

The above is a distilled version of 1. Introduction — NVIDIA Driver Installation Guide r580 documentation

@jlehtone Thank you very much! With your help I got everything installed. Now it’s up to me to get my containers working with it.

-Bill

1 Like

does anyone know how to use an old card requiring 470xx drivers (k5200) with 9.7? i had it working with 9.6, upgrade broke it… i guess the alternative is nouveau?

   ##O#O##          OS: AlmaLinux 9.7 (Moss Jungle Cat) x86_64 
   #######          Host: HP Z620 Workstation 
 ###########        Kernel: 5.14.0-611.5.1.el9_7.x86_64 
#############       Uptime: 3 hours, 40 mins 

############### Packages: 1450 (rpm), 36 (flatpak)
################ Shell: bash 5.1.8
################# Resolution: 2560x1080
##################### DE: GNOME 40.10
##################### WM: Mutter
################# WM Theme: Adwaita
Theme: Oxygen-Breeze-gitlab [GTK2/3]
Icons: breeze [GTK2/3]
Terminal: tilix
CPU: Intel Xeon E5-2690 v2 (20) @ 3.600GHz
GPU: NVIDIA Quadro K5200
Memory: 5097MiB / 31760MiB

Which driver were you using? (As in “CUDA repo”, “ELRepo”, “RPM Fusion” …)

ELRepo has kmod-nvidia-470xx in their testing repo (aka elrepo-testing) and
there is already version 470.256.02-7.1.el9_7.elrepo
Even the versions for el9_6 are only in the testing.

In ELRepo. the -470 driver stays in the elrepo-testing repository: