'dnf install satellite' or 'dnf install satellite-capsule' fails

Solution Verified - Updated

Environment

Red Hat Satellite 6 on RHEL 8 and upper

Issue

Satellite or Satellite Capsule installation fails during dnf install satellite/dnf install satellite-capsule step due to unsatisfied dependencies. It could show different errors depending on missing Module:

Example Error 1

[root@sat.example.com ~]# dnf install satellite-capsule
...
Problem 8: module satellite-capsule:el8:61120220728160018:42de19cd.x86_64 requires module(postgresql:12), but none of the providers can be installed
  - conflicting requests
  - module postgresql:12:8050020210715095825:b4937e53.x86_64 is disabled
  - module postgresql:12:8060020220525083707:ad008a3a.x86_64 is disabled
  - module postgresql:12:8060020211130125541:d63f516d.x86_64 is disabled

Example Error 2

[root@sat.example.com ~]# dnf install satellite
  Installing       : rubygem-qpid_proton-0.33.0-5.el8sat.x86_64                                                                                              341/473
  Installing       : katello-client-bootstrap-1.7.9-1.el8sat.noarch                                                                                          342/473
warning: user apache does not exist - using root
warning: group apache does not exist - using root
warning: user apache does not exist - using root
warning: group apache does not exist - using root
  Installing       : grub2-efi-x64-modules-1:2.02-148.el8_8.1.noarch                                                                                         343/473
  Installing       : grub2-pc-modules-1:2.02-148.el8_8.1.noarch

Resolution

  1. Confirm all required dnf Module streams are enabled
   # dnf module list --enabled
  1. Reset required Module streams to their defaults: e.g. for module postgresql:12:.. is disabled error, reset postres module:
   # dnf module reset postgres

Find below all required modules on each Satellite version - the (unversioned) modules should not be altered since OS installation (or should be reset back):

Red Hat Satellite 6.11

ant:1.10
httpd:2.4
javapackages-runtime:201801
maven:3.5
perl-DBI:1.641
perl-IO-Socket-SSL:2.066
perl-libwww-perl:6.34
pki-core:10.6
pki-deps:10.6
postgresql:12
python38:3.8
python39:3.9
redis:5
ruby:2.7
virt:rhel

Red Hat Satellite 6.12

ant:1.10
httpd:2.4
javapackages-runtime:201801
maven:3.5
perl-DBI:1.641
perl-IO-Socket-SSL:2.066
perl-libwww-perl:6.34
pki-core:10.6
pki-deps:10.6
postgresql:12
python36:3.6
python39:3.9
redis:5
ruby:2.7
virt:rhel

Red Hat Satellite 6.13

ant:1.10
httpd:2.4
javapackages-runtime:201801
maven:3.5
perl-DBI:1.641
perl-IO-Socket-SSL:2.066
perl-libwww-perl:6.34
pki-core:10.6
pki-deps:10.6
postgresql:12
python39:3.9
redis:6
ruby:2.7
virt:rhel

For more KB articles/solutions related to Red Hat Satellite 6.x Installation/Upgrade/Update Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Installation/Upgrade/Update Issues.

Root Cause

One or more required dnf Module streams has been disabled, hence dnf install satellite can't meet package dependencies. The error message will be different depending on the missing Module.

SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.