Akmod-Nvidia conflicting peer dependencies

Hi. I’ve been trying to install nvidia drivers on Fedora 37 from this common guide Howto/NVIDIA - RPM Fusion, but without any success.

The problem starts when I run the following command:

➜  ~ sudo dnf install akmod-nvidia 
Last metadata expiration check: 0:03:32 ago on Sat 27 May 2023 16:37:49 EEST.
Error: 
 Problem: conflicting requests
  - package akmod-nvidia-3:520.56.06-1.fc37.x86_64 requires nvidia-kmod-common >= 3:520.56.06, but none of the providers can be installed
  - package akmod-nvidia-3:530.41.03-1.fc37.x86_64 requires nvidia-kmod-common >= 3:530.41.03, but none of the providers can be installed
  - package xorg-x11-drv-nvidia-3:520.56.06-1.fc37.x86_64 is filtered out by modular filtering
  - package xorg-x11-drv-nvidia-3:530.41.03-1.fc37.x86_64 is filtered out by modular filtering
(try to add '--skip-broken' to skip uninstallable packages)

I’ve tried a few solutions from similar discussions, and still get the same error. How do I fix this?

Here’s some outputs for the context.

➜  ~ mokutil --sb-state
SecureBoot disabled
➜  ~ sudo dnf repolist
repo id                                                                  repo name
code                                                                     Visual Studio Code
docker-ce-stable                                                         Docker CE Stable - x86_64
fedora                                                                   Fedora 37 - x86_64
fedora-cisco-openh264                                                    Fedora 37 openh264 (From Cisco) - x86_64
fedora-modular                                                           Fedora Modular 37 - x86_64
google-chrome                                                            google-chrome
google-cloud-cli                                                         Google Cloud CLI
pgdg-common                                                              PostgreSQL common RPMs for Fedora 37 - x86_64
pgdg11                                                                   PostgreSQL 11 for Fedora 37 - x86_64
pgdg12                                                                   PostgreSQL 12 for Fedora 37 - x86_64
pgdg13                                                                   PostgreSQL 13 for Fedora 37 - x86_64
pgdg14                                                                   PostgreSQL 14 for Fedora 37 - x86_64
pgdg15                                                                   PostgreSQL 15 for Fedora 37 - x86_64
rpmfusion-free                                                           RPM Fusion for Fedora 37 - Free
rpmfusion-free-updates                                                   RPM Fusion for Fedora 37 - Free - Updates
rpmfusion-nonfree                                                        RPM Fusion for Fedora 37 - Nonfree
rpmfusion-nonfree-updates                                                RPM Fusion for Fedora 37 - Nonfree - Updates
updates                                                                  Fedora 37 - x86_64 - Updates
updates-modular                                                          Fedora Modular 37 - x86_64 - Updates
➜  ~ sudo dnf list installed | grep nvidia
# Nothing
➜  ~ /sbin/lspci | grep -e VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c4)
➜  ~ /sbin/lspci | grep -e 3D
# Nothing
1 Like

This sound suspiciously like the problems encountered when one has previously installed the nvidia drivers from a cuda-fedoraXX repo.

Have you previously installed any form of cuda from any source?

Please show us the output of dnf module list --all or dnf module list --enabled

Hm, I don’t recall installing drivers from cuda repo.
Here’s the outputs for both commands:

➜  ~ dnf module list --all
Last metadata expiration check: 0:00:20 ago on Sun 28 May 2023 08:43:06 EEST.
@modulefailsafe
Name                      Stream                  Profiles                                 Summary                                                                   
nvidia-driver             latest-dkms [e]         default, fm, ks                          Nvidia driver for latest-dkms branch                                      

Fedora Modular 37 - x86_64
Name                      Stream                  Profiles                                 Summary                                                                   
avocado                   latest                  default [d], minimal                     Framework with tools and libraries for Automated Testing                  
avocado                   82lts                   default, minimal                         Framework with tools and libraries for Automated Testing                  
avocado-vt                latest                  default                                  Avocado Virt Test Plugin                                                  
avocado-vt                82lts                   default                                  Avocado Virt Test Plugin                                                  
cri-o                     1.20                    default [d]                              Kubernetes Container Runtime Interface for OCI-based containers           
cri-o                     1.21                    default [d]                              Kubernetes Container Runtime Interface for OCI-based containers           
cri-o                     1.22                    default [d]                              Kubernetes Container Runtime Interface for OCI-based containers           
cri-o                     1.24                    default                                  Kubernetes Container Runtime Interface for OCI-based containers           
ghc                       8.10                    all, default [d], minimal, small         Haskell GHC 8.10                                                          
ghc                       9.2                     all, default, minimal, small             Haskell GHC 9.2                                                           
mariadb                   10.5                    client, devel, galera, server [d]        MariaDB: a very fast and robust SQL database server                       
mariadb                   10.6                    client, devel, galera, server            MariaDB: a very fast and robust SQL database server                       
mariadb                   10.7                    client, devel, galera, server            MariaDB: a very fast and robust SQL database server                       
mariadb                   10.8                    client, devel, galera, server            MariaDB: a very fast and robust SQL database server                       
mariadb                   10.9                    client, devel, galera, server            MariaDB: a very fast and robust SQL database server                       
mysql                     8.0                     client, devel, server [d]                MySQL Module                                                              
nextcloud                 nextcloud-stable        default, testing                         A private file sync and share server - Stable branch                      
nextcloud                 nextcloud-18            default, testing                         A private file sync and share server - version 18.0.x                     
nextcloud                 nextcloud-19            default, testing                         A private file sync and share server - version 19.0.x                     
nextcloud                 nextcloud-21            default, testing                         A private file sync and share server - version 21.0.x                     
nextcloud                 nextcloud-22            default, testing                         A private file sync and share server - version 22.0.x                     
nextcloud                 23                      default, testing                         A private file sync and share server - version 23.x.x                     
nextcloud                 24                      default, testing                         A private file sync and share server - version 24.x.x                     
nginx                     mainline                common [d], minimal                      nginx webserver                                                           
nginx                     1.20                    common, minimal                          nginx webserver                                                           
nodejs                    14                      common [d], development, minimal         Javascript runtime                                                        
nodejs                    16                      common [d], development, minimal         Javascript runtime                                                        
nodejs                    18                      common, development, minimal             Javascript runtime                                                        
perl                      5.32                    common [d], minimal                      Practical Extraction and Report Language                                  
perl                      5.34                    common [d], minimal                      Practical Extraction and Report Language                                  
perl                      5.36                    common, minimal                          Practical Extraction and Report Language                                  
perl-App-cpanminus        1.7044                  common [d]                               Get, unpack, build and install CPAN modules                               
perl-App-cpanminus        1.7045                  common [d]                               Get, unpack, build and install CPAN modules                               
perl-CGI                  4.51                    common [d]                               Handle Common Gateway Interface requests and responses                    
perl-CGI                  4.54                    common [d]                               Handle Common Gateway Interface requests and responses                    
perl-DBD-MySQL            4.050                   common [d]                               A MySQL interface for Perl                                                
perl-DBD-Pg               3.14                    common [d]                               A PostgreSQL interface for Perl                                           
perl-DBD-Pg               3.15                    common [d]                               A PostgreSQL interface for Perl                                           
perl-DBD-SQLite           1.66                    common [d]                               SQLite DBI driver                                                         
perl-DBD-SQLite           1.70                    common [d]                               SQLite DBI driver                                                         
perl-DBI                  1.643                   common [d]                               A database access API for Perl                                            
perl-Date-Manip           6.83                    common [d]                               Date manipulation routines                                                
perl-Date-Manip           6.86                    common [d]                               Date manipulation routines                                                
perl-FCGI                 0.79                    common [d]                               FastCGI Perl bindings                                                     
perl-IO-Socket-SSL        2.074                   common [d]                               Perl library for transparent TLS                                          
perl-IO-stringy           2.113                   common                                   I/O on in-core objects like strings and arrays for Perl                   
perl-XML-Parser           2.46                    common [d]                               Perl module for parsing XML documents                                     
perl-YAML                 1.30                    common [d]                               Perl parser for YAML                                                      
perl-libwww-perl          6.48                    common [d]                               A Perl interface to the World-Wide Web                                    
perl-libwww-perl          6.62                    common [d]                               A Perl interface to the World-Wide Web                                    
perl-libwww-perl          6.67                    common                                   A Perl interface to the World-Wide Web                                    
postgresql                12                      client, server                           PostgreSQL module                                                         
postgresql                13                      client, server                           PostgreSQL module                                                         
postgresql                14                      client, server                           PostgreSQL module                                                         
postgresql                15                      client, server                           PostgreSQL module                                                         
ruby                      3.1                     default [d]                              An interpreter of object-oriented scripting language                      
subversion                1.14                    common, server                           Apache Subversion                                                         
sway                      rolling                 default [d], full                        i3-compatible window manager for Wayland                                  
swig                      4.0                     complete, default [d]                    Connects C/C++/Objective C to some high-level programming languages       
varnish                   6.0                     default                                  Varnish HTTP cache                                                        

Fedora Modular 37 - x86_64 - Updates
Name                      Stream                  Profiles                                 Summary                                                                   
avocado                   latest                  default [d], minimal                     Framework with tools and libraries for Automated Testing                  
avocado                   82lts                   default, minimal                         Framework with tools and libraries for Automated Testing                  
avocado-vt                latest                  default                                  Avocado Virt Test Plugin                                                  
avocado-vt                82lts                   default                                  Avocado Virt Test Plugin                                                  
cri-o                     1.20                    default [d]                              Kubernetes Container Runtime Interface for OCI-based containers           
cri-o                     1.21                    default [d]                              Kubernetes Container Runtime Interface for OCI-based containers           
cri-o                     1.22                    default [d]                              Kubernetes Container Runtime Interface for OCI-based containers           
cri-o                     1.24                    default                                  Kubernetes Container Runtime Interface for OCI-based containers           
cri-o                     1.25                    default                                  Kubernetes Container Runtime Interface for OCI-based containers           
ghc                       8.10                    all, default [d], minimal, small         Haskell GHC 8.10                                                          
ghc                       9.2                     all, default, minimal, small             Haskell GHC 9.2                                                           
mariadb                   10.5                    client, devel, galera, server [d]        MariaDB: a very fast and robust SQL database server                       
mariadb                   10.6                    client, devel, galera, server            MariaDB: a very fast and robust SQL database server                       
mariadb                   10.7                    client, devel, galera, server            MariaDB: a very fast and robust SQL database server                       
mariadb                   10.8                    client, devel, galera, server            MariaDB: a very fast and robust SQL database server                       
mariadb                   10.9                    client, devel, galera, server            MariaDB: a very fast and robust SQL database server                       
mysql                     8.0                     client, devel, server [d]                MySQL Module                                                              
nextcloud                 nextcloud-stable        default, testing                         A private file sync and share server - Stable branch                      
nextcloud                 nextcloud-18            default, testing                         A private file sync and share server - version 18.0.x                     
nextcloud                 nextcloud-19            default, testing                         A private file sync and share server - version 19.0.x                     
nextcloud                 nextcloud-21            default, testing                         A private file sync and share server - version 21.0.x                     
nextcloud                 nextcloud-22            default, testing                         A private file sync and share server - version 22.0.x                     
nextcloud                 23                      default, testing                         A private file sync and share server - version 23.x.x                     
nextcloud                 24                      default, testing                         A private file sync and share server - version 24.x.x                     
nginx                     mainline                common [d], minimal                      nginx webserver                                                           
nginx                     1.20                    common, minimal                          nginx webserver                                                           
nodejs                    14                      common [d], development, minimal         Javascript runtime                                                        
nodejs                    16                      common [d], development, minimal         Javascript runtime                                                        
nodejs                    18                      common, development, minimal             Javascript runtime                                                        
perl                      5.32                    common [d], minimal                      Practical Extraction and Report Language                                  
perl                      5.34                    common [d], minimal                      Practical Extraction and Report Language                                  
perl                      5.36                    common, minimal                          Practical Extraction and Report Language                                  
perl-App-cpanminus        1.7044                  common [d]                               Get, unpack, build and install CPAN modules                               
perl-App-cpanminus        1.7045                  common [d]                               Get, unpack, build and install CPAN modules                               
perl-CGI                  4.51                    common [d]                               Handle Common Gateway Interface requests and responses                    
perl-CGI                  4.54                    common [d]                               Handle Common Gateway Interface requests and responses                    
perl-DBD-MySQL            4.050                   common [d]                               A MySQL interface for Perl                                                
perl-DBD-Pg               3.14                    common [d]                               A PostgreSQL interface for Perl                                           
perl-DBD-Pg               3.15                    common [d]                               A PostgreSQL interface for Perl                                           
perl-DBD-SQLite           1.66                    common [d]                               SQLite DBI driver                                                         
perl-DBD-SQLite           1.70                    common [d]                               SQLite DBI driver                                                         
perl-DBI                  1.643                   common [d]                               A database access API for Perl                                            
perl-Date-Manip           6.83                    common [d]                               Date manipulation routines                                                
perl-Date-Manip           6.86                    common [d]                               Date manipulation routines                                                
perl-FCGI                 0.79                    common [d]                               FastCGI Perl bindings                                                     
perl-IO-Socket-SSL        2.074                   common [d]                               Perl library for transparent TLS                                          
perl-IO-stringy           2.113                   common                                   I/O on in-core objects like strings and arrays for Perl                   
perl-XML-Parser           2.46                    common [d]                               Perl module for parsing XML documents                                     
perl-YAML                 1.30                    common [d]                               Perl parser for YAML                                                      
perl-libwww-perl          6.48                    common [d]                               A Perl interface to the World-Wide Web                                    
perl-libwww-perl          6.62                    common [d]                               A Perl interface to the World-Wide Web                                    
perl-libwww-perl          6.67                    common                                   A Perl interface to the World-Wide Web                                    
postgresql                12                      client, server                           PostgreSQL module                                                         
postgresql                13                      client, server                           PostgreSQL module                                                         
postgresql                14                      client, server                           PostgreSQL module                                                         
postgresql                15                      client, server                           PostgreSQL module                                                         
ruby                      3.1                     default [d]                              An interpreter of object-oriented scripting language                      
subversion                1.14                    common, server                           Apache Subversion                                                         
sway                      rolling                 default [d], full                        i3-compatible window manager for Wayland                                  
swig                      4.0                     complete, default [d]                    Connects C/C++/Objective C to some high-level programming languages       
swig                      4.1                     complete, default                        Connects C/C++/Objective C to some high-level programming languages       
varnish                   6.0                     default                                  Varnish HTTP cache                                                        

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
➜  ~ 
➜  ~ 
➜  ~ 
➜  ~ dnf module list --enabled
Last metadata expiration check: 0:01:06 ago on Sun 28 May 2023 08:43:06 EEST.
@modulefailsafe
Name                               Stream                               Profiles                             Summary                                                 
nvidia-driver                      latest-dkms [e]                      default, fm, ks                      Nvidia driver for latest-dkms branch                    

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

1 Like

That is what commonly causes the modular interference.
If one runs sudo dnf module disable nvidia-driver then it should be possible to install the nvidia drivers from rpmfusion without the version conflicts.

After disabling that module then
sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda should install everything needed and configure it for you .

That worked, thank you @computersavvy

1 Like

Huge thanks to @computersavvy for his answer and skills.

After a system update & restart Nvidia support was missing, and after wasted hours trying to understand & fix this I finally found this post that solved it. Very much appreciated!