Update issue on Fedora 34

Hi,
I’ve been able to install cuda-11, compile stuff against it. Everything works. It’s been a few weeks that I have some dependencies issue, when I run sudo dnf update I run into this :

sudo dnf update
[sudo] password for ludovic: 
Last metadata expiration check: 3:39:03 ago on Thu 22 Jul 2021 04:34:13 AM CEST.
Dependencies resolved.

 Problem: package cuda-11-4-11.4.0-1.x86_64 requires cuda-runtime-11-4 >= 11.4.0, but none of the providers can be installed
  - package cuda-11.4.0-1.x86_64 requires cuda-11-4 >= 11.4.0, but none of the providers can be installed
  - package cuda-runtime-11-4-11.4.0-1.x86_64 requires cuda-drivers >= 470.42.01, but none of the providers can be installed
  - cannot install the best update candidate for package cuda-11.3.1-1.x86_64
  - package cuda-drivers-470.42.01-1.x86_64 is filtered out by modular filtering
  - package cuda-drivers-470.57.02-1.x86_64 is filtered out by modular filtering
==============================================================================================================================================================================================================================================
 Package                                                       Architecture                                       Version                                              Repository                                                        Size
==============================================================================================================================================================================================================================================
Skipping packages with broken dependencies:
 cuda-11-4                                                     x86_64                                             11.4.0-1                                             cuda-fedora33-x86_64                                             2.8 k
 cuda                                                          x86_64                                             11.4.0-1                                             cuda-fedora33-x86_64                                             2.7 k
 cuda-runtime-11-4                                             x86_64                                             11.4.0-1                                             cuda-fedora33-x86_64                                             2.7 k

Transaction Summary
==============================================================================================================================================================================================================================================
Skip  3 Packages

Nothing to do.
Complete!

Any idea how to solve this ?

It seems that you’ve updated from Fedora 33 to Fedora 34.
As the error message suggests you’re using a specific nvidia-driver module older than 470 ([...] modular filtering).
Please provide the output of dnf module list and/or install nvidia-driver:latest or nvidia-driver:latest-dkms (https://docs.fedoraproject.org/en-US/modularity/using-modules-switching-streams/).

This is a fresh fedora 34 install.

  ~ sudo dnf module list
[sudo] password for ludovic: 
Last metadata expiration check: 2:04:53 ago on Thu 22 Jul 2021 09:12:18 AM CEST.
cuda-fedora33-x86_64
Name                                         Stream                                   Profiles                                               Summary                                                                                          
nvidia-driver                                latest [x]                               default [d], fm, ks, src                               Nvidia driver for latest branch                                                                  
nvidia-driver                                latest-dkms [d][x]                       default [d], fm, ks                                    Nvidia driver for latest-dkms branch                                                             
nvidia-driver                                460 [x]                                  default [d], fm, ks, src                               Nvidia driver for 460 branch                                                                     
nvidia-driver                                460-dkms [x]                             default [d], fm, ks                                    Nvidia driver for 460-dkms branch                                                                
nvidia-driver                                465 [x]                                  default [d], fm, ks, src                               Nvidia driver for 465 branch                                                                     
nvidia-driver                                465-dkms [x]                             default [d], fm, ks                                    Nvidia driver for 465-dkms branch                                                                
nvidia-driver                                470 [x]                                  default [d], fm, ks, src                               Nvidia driver for 470 branch                                                                     
nvidia-driver                                470-dkms [x]                             default [d], fm, ks                                    Nvidia driver for 470-dkms branch                                                                

Fedora Modular 34 - x86_64
Name                                         Stream                                   Profiles                                               Summary                                                                                          
ant                                          1.10                                     default [d]                                            Java build tool                                                                                  
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                                        nightly                                  default                                                Kubernetes Container Runtime Interface for OCI-based containers                                  
cri-o                                        1.17                                     default                                                Kubernetes Container Runtime Interface for OCI-based containers                                  
cri-o                                        1.18                                     default                                                Kubernetes Container Runtime Interface for OCI-based containers                                  
cri-o                                        1.19                                     default                                                Kubernetes Container Runtime Interface for OCI-based containers                                  
cri-o                                        1.20                                     default                                                Kubernetes Container Runtime Interface for OCI-based containers                                  
django                                       1.6                                      default [d], python2_development                       A high-level Python Web framework                                                                
dwm                                          latest                                   default [d], user                                      Dynamic window manager for X                                                                     
dwm                                          6.0                                      default [d], user                                      Dynamic window manager for X                                                                     
dwm                                          6.1                                      default [d], user                                      Dynamic window manager for X                                                                     
dwm                                          6.2                                      default [d], user                                      Dynamic window manager for X                                                                     
ghc                                          8.8                                      default [d], minimal, small                            Haskell GHC 8.8                                                                                  
ghc                                          8.10                                     default [d], minimal, small                            Haskell GHC 8.10                                                                                 
ghc                                          9.0                                      all, default [d], minimal, small                       Haskell GHC 9.0                                                                                  
httpd                                        2.4                                      common [d], devel, minimal                             Apache HTTP Server                                                                               
javapackages-bootstrap                       202001                                   default                                                A means of bootstrapping Java Packages Tools                                                     
javapackages-tools                           202001                                   default                                                Tools and macros for Java packaging support                                                      
jmc                                          latest                                   core, default [d]                                      Java Mission Control is a profiling and diagnostics tool for the Hotspot JVM                     
jmc                                          7                                        core, default [d]                                      Java Mission Control is a profiling and diagnostics tool for the Hotspot JVM                     
librealsense                                 rolling                                  default, dev                                           Cross-platform camera capture for Intel RealSense                                                
mariadb                                      10.3                                     client, devel, galera, server [d]                      MariaDB: a very fast and robust SQL database server                                              
mariadb                                      10.4                                     client, devel, galera, server [d]                      MariaDB: a very fast and robust SQL database server                                              
mariadb                                      10.5                                     client, devel, galera, server [d]                      MariaDB: a very fast and robust SQL database server                                              
maven                                        3.6                                      default [d]                                            Java project management and project comprehension tool                                           
mysql                                        8.0                                      client, devel, server [d]                              MySQL Module                                                                                     
nest                                         2.16.0                                   default [d], mpich, openmpi                            The neural simulation tool                                                                       
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-20                             default, testing                                       A private file sync and share server - version 20.0.x                                            
nginx                                        mainline                                 common [d]                                             nginx webserver                                                                                  
nginx                                        1.18                                     common                                                 nginx webserver                                                                                  
nodejs                                       10                                       default [d], development, minimal                      Javascript runtime                                                                               
nodejs                                       12                                       default [d], development, minimal                      Javascript runtime                                                                               
nodejs                                       14                                       default, development, minimal                          Javascript runtime                                                                               
nodejs                                       15                                       default, development, minimal                          Javascript runtime                                                                               
octave                                       6.1                                      buildroot, default                                     A high-level language for numerical computations                                                 
openmpi                                      3.1                                      buildroot, default [d]                                 Open Message Passing Interface                                                                   
openmpi                                      4.0                                      buildroot, default [d]                                 Open Message Passing Interface                                                                   
perl                                         5.30                                     common, default [d], minimal                           Practical Extraction and Report Language                                                         
perl                                         5.32                                     common [d], minimal                                    Practical Extraction and Report Language                                                         
perl-App-cpanminus                           1.7044                                   common [d]                                             Get, unpack, build and install CPAN modules                                                      
perl-CGI                                     4.51                                     common                                                 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-SQLite                              1.66                                     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-FCGI                                    0.79                                     common [d]                                             FastCGI Perl bindings                                                                            
perl-IO-Socket-SSL                           2.068                                    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-YAML-bootstrap                          1.30                                                                                            Helper module for boostrapping YAML                                                              
perl-libwww-perl                             6.48                                     common [d]                                             A Perl interface to the World-Wide Web                                                           
postgresql                                   9.6                                      client, server [d]                                     PostgreSQL module                                                                                
postgresql                                   10                                       client, server [d]                                     PostgreSQL module                                                                                
postgresql                                   11                                       client, server [d]                                     PostgreSQL module                                                                                
postgresql                                   12                                       client, server                                         PostgreSQL module                                                                                
postgresql                                   13                                       client, server                                         PostgreSQL module                                                                                
ruby                                         master                                   default                                                An interpreter of object-oriented scripting language                                             
ruby                                         2.5                                      default [d]                                            An interpreter of object-oriented scripting language                                             
ruby                                         2.6                                      default [d]                                            An interpreter of object-oriented scripting language                                             
ruby                                         2.7                                      default [d]                                            An interpreter of object-oriented scripting language                                             
standard-test-roles                          3.0                                      default, provisioner-qemu                              Standard Test Interface Ansible roles                                                            
subversion                                   1.14                                     common, server                                         Apache Subversion                                                                                
sway                                         rolling                                  default                                                i3-compatible window manager for Wayland                                                         
swig                                         4.0                                      complete, default [d]                                  Connects C/C++/Objective C to some high-level programming languages                              
tomcat                                       master                                   default                                                Apache Servlet/JSP Engine, RI for Servlet 4.0/JSP 2.3 API                                        
varnish                                      6.0                                      default                                                Varnish HTTP cache                                                                               

Fedora Modular 34 - x86_64 - Updates
Name                                         Stream                                   Profiles                                               Summary                                                                                          
ant                                          1.10                                     default [d]                                            Java build tool                                                                                  
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                                        nightly                                  default                                                Kubernetes Container Runtime Interface for OCI-based containers                                  
cri-o                                        1.17                                     default                                                Kubernetes Container Runtime Interface for OCI-based containers                                  
cri-o                                        1.18                                     default                                                Kubernetes Container Runtime Interface for OCI-based containers                                  
cri-o                                        1.19                                     default                                                Kubernetes Container Runtime Interface for OCI-based containers                                  
cri-o                                        1.20                                     default                                                Kubernetes Container Runtime Interface for OCI-based containers                                  
django                                       1.6                                      default [d], python2_development                       A high-level Python Web framework                                                                
dwm                                          latest                                   default [d], user                                      Dynamic window manager for X                                                                     
dwm                                          6.0                                      default [d], user                                      Dynamic window manager for X                                                                     
dwm                                          6.1                                      default [d], user                                      Dynamic window manager for X                                                                     
dwm                                          6.2                                      default [d], user                                      Dynamic window manager for X                                                                     
ghc                                          8.8                                      default [d], minimal, small                            Haskell GHC 8.8                                                                                  
ghc                                          8.10                                     all, default [d], minimal, small                       Haskell GHC 8.10                                                                                 
ghc                                          9.0                                      all, default [d], minimal, small                       Haskell GHC 9.0                                                                                  
ghc                                          9.2                                      all, default, minimal, small                           Haskell GHC 9.2                                                                                  
httpd                                        2.4                                      common [d], devel, minimal                             Apache HTTP Server                                                                               
javapackages-bootstrap                       202001                                   default                                                A means of bootstrapping Java Packages Tools                                                     
javapackages-tools                           202001                                   default                                                Tools and macros for Java packaging support                                                      
jmc                                          latest                                   core, default [d]                                      Java Mission Control is a profiling and diagnostics tool for the Hotspot JVM                     
jmc                                          7                                        core, default [d]                                      Java Mission Control is a profiling and diagnostics tool for the Hotspot JVM                     
librealsense                                 rolling                                  default, dev                                           Cross-platform camera capture for Intel RealSense                                                
mariadb                                      10.3                                     client, devel, galera, server [d]                      MariaDB: a very fast and robust SQL database server                                              
mariadb                                      10.4                                     client, devel, galera, server [d]                      MariaDB: a very fast and robust SQL database server                                              
mariadb                                      10.5                                     client, devel, galera, server [d]                      MariaDB: a very fast and robust SQL database server                                              
maven                                        3.6                                      default [d]                                            Java project management and project comprehension tool                                           
mysql                                        8.0                                      client, devel, server [d]                              MySQL Module                                                                                     
nest                                         2.16.0                                   default [d], mpich, openmpi                            The neural simulation tool                                                                       
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-20                             default, testing                                       A private file sync and share server - version 20.0.x                                            
nextcloud                                    nextcloud-21                             default, testing                                       A private file sync and share server - version 21.0.x                                            
nginx                                        mainline                                 common [d]                                             nginx webserver                                                                                  
nginx                                        1.18                                     common                                                 nginx webserver                                                                                  
nginx                                        1.20                                     common                                                 nginx webserver                                                                                  
nodejs                                       10                                       default [d], development, minimal                      Javascript runtime                                                                               
nodejs                                       12                                       default [d], development, minimal                      Javascript runtime                                                                               
nodejs                                       14                                       default, development, minimal                          Javascript runtime                                                                               
nodejs                                       15                                       default, development, minimal                          Javascript runtime                                                                               
nodejs                                       16                                       default, development, minimal                          Javascript runtime                                                                               
octave                                       6.1                                      buildroot, default                                     A high-level language for numerical computations                                                 
openmpi                                      3.1                                      buildroot, default [d]                                 Open Message Passing Interface                                                                   
openmpi                                      4.0                                      buildroot, default [d]                                 Open Message Passing Interface                                                                   
perl                                         5.30                                     common, default [d], minimal                           Practical Extraction and Report Language                                                         
perl                                         5.32                                     common [d], minimal                                    Practical Extraction and Report Language                                                         
perl-App-cpanminus                           1.7044                                   common [d]                                             Get, unpack, build and install CPAN modules                                                      
perl-CGI                                     4.51                                     common                                                 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-SQLite                              1.66                                     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-FCGI                                    0.79                                     common [d]                                             FastCGI Perl bindings                                                                            
perl-IO-Socket-SSL                           2.068                                    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-YAML-bootstrap                          1.30                                                                                            Helper module for boostrapping YAML                                                              
perl-bootstrap                               5.30                                                                                            Perl bootstrap module for bootstrapping Perl module                                              
perl-bootstrap                               5.32                                                                                            Perl bootstrap module for bootstrapping Perl module                                              
perl-libwww-perl                             6.48                                     common [d]                                             A Perl interface to the World-Wide Web                                                           
postgresql                                   9.6                                      client, server [d]                                     PostgreSQL module                                                                                
postgresql                                   10                                       client, server [d]                                     PostgreSQL module                                                                                
postgresql                                   11                                       client, server [d]                                     PostgreSQL module                                                                                
postgresql                                   12                                       client, server                                         PostgreSQL module                                                                                
postgresql                                   13                                       client, server                                         PostgreSQL module                                                                                
ruby                                         master                                   default                                                An interpreter of object-oriented scripting language                                             
ruby                                         2.5                                      default [d]                                            An interpreter of object-oriented scripting language                                             
ruby                                         2.6                                      default [d]                                            An interpreter of object-oriented scripting language                                             
ruby                                         2.7                                      default [d]                                            An interpreter of object-oriented scripting language                                             
standard-test-roles                          3.0                                      default, provisioner-qemu                              Standard Test Interface Ansible roles                                                            
subversion                                   1.14                                     common, server                                         Apache Subversion                                                                                
sway                                         rolling                                  default, full                                          i3-compatible window manager for Wayland                                                         
swig                                         4.0                                      complete, default [d]                                  Connects C/C++/Objective C to some high-level programming languages                              
tomcat                                       master                                   default                                                Apache Servlet/JSP Engine, RI for Servlet 4.0/JSP 2.3 API                                        
varnish                                      6.0                                      default                                                Varnish HTTP cache                                                                               

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

As per Installation Guide Linux :: CUDA Toolkit Documentation have you tried to install nvidia-driver:latest-dkms as every module is disabled at the moment [x]?
Just run the following as per documentation:

sudo dnf clean all
sudo dnf module install nvidia-driver:latest-dkms
sudo dnf install cuda
# and/or
sudo dnf update

and drop a message if this doesn’t work.

➜  ~ sudo dnf clean all
[sudo] password for ludovic: 
131 files removed
➜  ~ sudo dnf module install nvidia-driver:latest-dkms
Copr repo for cuda-gcc-10.1 owned by kwizart                                                                                                                                                                   38 kB/s |  24 kB     00:00    
cuda-fedora33-x86_64                                                                                                                                                                                          1.3 MB/s | 341 kB     00:00    
Docker CE Stable - x86_64                                                                                                                                                                                      26 kB/s | 6.2 kB     00:00    
Fedora 34 - x86_64                                                                                                                                                                                            5.2 MB/s |  74 MB     00:14    
Fedora 34 openh264 (From Cisco) - x86_64                                                                                                                                                                      6.4 kB/s | 2.5 kB     00:00    
Fedora Modular 34 - x86_64                                                                                                                                                                                    2.1 MB/s | 4.9 MB     00:02    
Fedora 34 - x86_64 - Updates                                                                                                                                                                                  4.4 MB/s |  20 MB     00:04    
Fedora Modular 34 - x86_64 - Updates                                                                                                                                                                          2.7 MB/s | 4.4 MB     00:01    
google-chrome                                                                                                                                                                                                  22 kB/s | 3.5 kB     00:00    
RPM Fusion for Fedora 34 - Free                                                                                                                                                                               1.1 MB/s | 941 kB     00:00    
RPM Fusion for Fedora 34 - Free - Updates                                                                                                                                                                     773 kB/s | 301 kB     00:00    
RPM Fusion for Fedora 34 - Nonfree                                                                                                                                                                            669 kB/s | 246 kB     00:00    
RPM Fusion for Fedora 34 - Nonfree - NVIDIA Driver                                                                                                                                                             33 kB/s | 8.8 kB     00:00    
RPM Fusion for Fedora 34 - Nonfree tainted                                                                                                                                                                     16 kB/s | 4.1 kB     00:00    
RPM Fusion for Fedora 34 - Nonfree - Updates                                                                                                                                                                  188 kB/s |  61 kB     00:00    
TeamViewer - x86_64                                                                                                                                                                                           170 kB/s |  74 kB     00:00    
Error: 
 Problem: conflicting requests
  - package nvidia-driver-cuda-3:470.42.01-2.fc33.x86_64 conflicts with xorg-x11-drv-nvidia-cuda provided by xorg-x11-drv-nvidia-cuda-3:465.31-1.fc34.x86_64
  - package nvidia-driver-cuda-3:470.57.02-2.fc33.x86_64 conflicts with xorg-x11-drv-nvidia-cuda provided by xorg-x11-drv-nvidia-cuda-3:465.31-1.fc34.x86_64
  - problem with installed package xorg-x11-drv-nvidia-cuda-3:465.31-1.fc34.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
➜  ~ sudo dnf install cuda
Last metadata expiration check: 0:00:44 ago on Thu 22 Jul 2021 12:58:07 PM CEST.
Package cuda-11.3.1-1.x86_64 is already installed.
Dependencies resolved.

 Problem: package cuda-11-4-11.4.0-1.x86_64 requires cuda-runtime-11-4 >= 11.4.0, but none of the providers can be installed
  - package cuda-11.4.0-1.x86_64 requires cuda-11-4 >= 11.4.0, but none of the providers can be installed
  - package cuda-runtime-11-4-11.4.0-1.x86_64 requires cuda-drivers >= 470.42.01, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package cuda-drivers-470.42.01-1.x86_64 is filtered out by modular filtering
  - package cuda-drivers-470.57.02-1.x86_64 is filtered out by modular filtering
==============================================================================================================================================================================================================================================
 Package                                                       Architecture                                       Version                                              Repository                                                        Size
==============================================================================================================================================================================================================================================
Skipping packages with broken dependencies:
 cuda-11-4                                                     x86_64                                             11.4.0-1                                             cuda-fedora33-x86_64                                             2.8 k
 cuda                                                          x86_64                                             11.4.0-1                                             cuda-fedora33-x86_64                                             2.7 k
 cuda-runtime-11-4                                             x86_64                                             11.4.0-1                                             cuda-fedora33-x86_64                                             2.7 k

Transaction Summary
==============================================================================================================================================================================================================================================
Skip  3 Packages

Nothing to do.
Complete!

seems to be the problem.
Either try to disable this repository permanently or try to use --allow-erasing with caution please.
Another temporary way is also in the documentation: sudo dnf --disablerepo="rpmfusion-nonfree*" [...]

Cuda requires the beta driver or the latest 470.x.x release

- package cuda-runtime-11-4-11.4.0-1.x86_64 requires cuda-drivers >= 470.42.01, but none of the providers can be installed

Try

sudo dnf --enablerepo=updates-testing --enablerepo=rpmfusion-nonfree-updates-testing update

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.