DNF install and conflicting requests – nothing provides module(platform:el8) needed by module

Here there are broken modules in the DNF package manager. It was a result of an upgrade, but it may occur if some unofficial repositories mess up with them:
On every DNF command, there are multiple problem-reporting lines about conflicts in different DNF modules.

[root@srv ~]# dnf info epel-release
Last metadata expiration check: 0:13:42 ago on Tue Oct 11 13:11:51 2022.
Modular dependency problems:

 Problem 1: conflicting requests
  - nothing provides module(platform:el8) needed by module httpd:2.4:8050020211112043353:b4937e53.x86_64
 Problem 2: conflicting requests
  - nothing provides module(platform:el8) needed by module nginx:1.14:8000020191007205758:55190bc5.x86_64
 Problem 3: conflicting requests
  - nothing provides module(platform:el8) needed by module nodejs:10:8030020210304194401:30b713e6.x86_64
 Problem 4: conflicting requests
  - nothing provides module(platform:el8) needed by module perl:5.26:8000020190628020724:55190bc5.x86_64
 Problem 5: conflicting requests
  - nothing provides module(platform:el8) needed by module perl-IO-Socket-SSL:2.066:8030020201222215140:1e4bbb35.x86_64
 Problem 6: conflicting requests
  - nothing provides module(platform:el8) needed by module perl-libwww-perl:6.34:8030020201223164340:b967a9a2.x86_64
 Problem 7: conflicting requests
  - nothing provides module(platform:el8) needed by module php:7.2:8020020200507003613:2c7ca891.x86_64
 Problem 8: conflicting requests
  - nothing provides module(platform:el8) needed by module satellite-5-client:1.0:8010020191114035551:cdc1202b.x86_64
 Problem 9: conflicting requests
  - nothing provides module(platform:el8) needed by module virt:rhel:8050020211221192853:b4937e53.x86_64
Installed Packages
Name         : epel-release
Version      : 9
Release      : 4.el9
Architecture : noarch
Size         : 25 k
Source       : epel-release-9-4.el9.src.rpm
Repository   : @System
From repo    : epel
Summary      : Extra Packages for Enterprise Linux repository configuration
URL          : http://download.fedoraproject.org/pub/epel
License      : GPLv2
Description  : This package contains the Extra Packages for Enterprise Linux (EPEL) repository
             : GPG key as well as configuration for yum.

The DNF package manager offers modules to group software. Each module may have one or multiple streams, representing the major version of the software it groups in a single entity. As can be seen above from the DNF output, the module name is httpd and the stream is 2.4. It is clear the module httpd is responsible for the installation of Apache Web server. More on the subject here – https://docs.fedoraproject.org/en-US/modularity/using-modules/

To fix the problems above and clear the errors just reset the modules to their initial default state with:

dnf module reset httpd


This command will reset the httpd module to its default state. Do the reset command to all of the conflicts reported by the DNF manager.

[root@srv ~]# dnf module reset nginx
Last metadata expiration check: 3:37:49 ago on Wed Oct 12 09:36:22 2022.
Modular dependency problems:

 Problem 1: conflicting requests
  - nothing provides module(platform:el8) needed by module nginx:1.14:8000020191007205758:55190bc5.x86_64
 Problem 2: conflicting requests
  - nothing provides module(platform:el8) needed by module nodejs:10:8030020210304194401:30b713e6.x86_64
 Problem 3: conflicting requests
  - nothing provides module(platform:el8) needed by module perl:5.26:8000020190628020724:55190bc5.x86_64
 Problem 4: conflicting requests
  - nothing provides module(platform:el8) needed by module perl-IO-Socket-SSL:2.066:8030020201222215140:1e4bbb35.x86_64
 Problem 5: conflicting requests
  - nothing provides module(platform:el8) needed by module perl-libwww-perl:6.34:8030020201223164340:b967a9a2.x86_64
 Problem 6: conflicting requests
  - nothing provides module(platform:el8) needed by module php:7.2:8020020200507003613:2c7ca891.x86_64
  - nothing provides module(httpd:2.4) needed by module php:7.2:8020020200507003613:2c7ca891.x86_64
 Problem 7: conflicting requests
  - nothing provides module(platform:el8) needed by module satellite-5-client:1.0:8010020191114035551:cdc1202b.x86_64
 Problem 8: conflicting requests
  - nothing provides module(platform:el8) needed by module virt:rhel:8050020211221192853:b4937e53.x86_64
Dependencies resolved.
==============================================================================================================
 Package                   Architecture             Version                   Repository                 Size
==============================================================================================================
Resetting modules:
 nginx                                                                                                       

Transaction Summary
==============================================================================================================

Is this ok [y/N]: y
Complete!

Resetting the rest modules at once is also possible:

[root@srv ~]# dnf module reset -y nodejs perl perl-IO-Socket-SSL perl-libwww-perl php satellite-5-client virt
Last metadata expiration check: 3:41:15 ago on Wed Oct 12 09:36:22 2022.
Modular dependency problems:

 Problem 1: conflicting requests
  - nothing provides module(platform:el8) needed by module nodejs:10:8030020210304194401:30b713e6.x86_64
 Problem 2: conflicting requests
  - nothing provides module(platform:el8) needed by module perl:5.26:8000020190628020724:55190bc5.x86_64
 Problem 3: conflicting requests
  - nothing provides module(platform:el8) needed by module perl-IO-Socket-SSL:2.066:8030020201222215140:1e4bbb35.x86_64
 Problem 4: conflicting requests
  - nothing provides module(platform:el8) needed by module perl-libwww-perl:6.34:8030020201223164340:b967a9a2.x86_64
 Problem 5: conflicting requests
  - nothing provides module(platform:el8) needed by module php:7.2:8020020200507003613:2c7ca891.x86_64
  - nothing provides module(httpd:2.4) needed by module php:7.2:8020020200507003613:2c7ca891.x86_64
  - nothing provides module(nginx) needed by module php:7.2:8020020200507003613:2c7ca891.x86_64
 Problem 6: conflicting requests
  - nothing provides module(platform:el8) needed by module satellite-5-client:1.0:8010020191114035551:cdc1202b.x86_64
 Problem 7: conflicting requests
  - nothing provides module(platform:el8) needed by module virt:rhel:8050020211221192853:b4937e53.x86_64
Dependencies resolved.
==============================================================================================================
 Package                   Architecture             Version                   Repository                 Size
==============================================================================================================
Resetting modules:
 nodejs                                                                                                      
 perl                                                                                                        
 perl-IO-Socket-SSL                                                                                          
 perl-libwww-perl                                                                                            
 php                                                                                                         
 satellite-5-client                                                                                          
 virt                                                                                                        

Transaction Summary
==============================================================================================================

Complete!

Bonus) List all DNF modules

[root@srv ~]# dnf module list
Last metadata expiration check: 0:20:32 ago on Tue Oct 11 13:11:51 2022.
@modulefailsafe
Name               Stream    Profiles                        Summary                                          
httpd              2.4 [e]   common, devel, minimal          Apache HTTP Server                               
nginx              1.14 [e]  common                          nginx webserver                                  
nodejs             10 [e]    common, development, minimal, s Javascript runtime                               
                             2i                                                                               
perl               5.26 [e]  common, minimal                 Practical Extraction and Report Language         
perl-IO-Socket-SSL 2.066 [e] common                          Perl library for transparent TLS                 
perl-libwww-perl   6.34 [e]  common                          A Perl interface to the World-Wide Web           
php                7.2 [e]   common, devel, minimal          PHP scripting language                           
satellite-5-client 1.0 [e]   common, gui                     Red Hat Satellite 5 client packages              
virt               rhel [e]  common                          Virtualization module                            

CentOS Stream 9 - AppStream
Name               Stream    Profiles                        Summary                                          
maven              3.8       common [d]                      Java project management and project comprehension
                                                              tool                                            
nodejs             18        common [d], development, minima Javascript runtime                               
                             l, s2i                                                                           
php                8.1       common [d], devel, minimal      PHP scripting language                           
ruby               3.1       common [d]                      An interpreter of object-oriented scripting langu
                                                             age                                              

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

One thought on “DNF install and conflicting requests – nothing provides module(platform:el8) needed by module”

  1. After reseting mariadb module as you pointed out above I can no longer install gnome-tweaks, gkrellm, etc. How do I restore my dnf database?
    Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *