Executing the satellite-installer fails with the error: 'Change from 'purged' to 'present' failed: Execution of '/bin/dnf -d 0 -e 1 -y install postgresql-evr' returned 1: Error: Unable to find a match: postgresql-evr.

Solution Verified - Updated

Environment

  • Red Hat Satellite 6

Issue

  • Running the satellite-installer command fails with the following error:

    Error 1: Puppet Package resource 'postgresql-evr' failed. Logs:
    /Package[postgresql-evr]
      Starting to evaluate the resource (202 of 1613)
      Evaluated in 5.30 seconds
    Packagepostgresql-evr
      Ensuring => present
    /Stage[main]/Katello::Application/Package[postgresql-evr]/ensure
      change from 'purged' to 'present' failed: Execution of '/bin/dnf -d 0 -e 1 -y install postgresql-evr' returned 1: Error: Unable to find a match: postgresql-evr
    

Resolution

  • Enable satellite-6.X-for-rhel-8-x86_64-rpms on the Satellite Server, as the postgresql-evr package comes from this repository

     # subscription-manager repos --enable satellite-6.X-for-rhel-8-x86_64-rpms 
    

    Replace X with the exact version of the satellite, i.e., for satellite 6.15, the repository should be satellite-6.15-for-rhel-8-x86_64-rpms

  • Execute the satellite-installer command manually and ensure that it is getting completed successfully.

     # satellite-installer
    

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

  • Manually executing the yum/dnf update command on the Red Hat Satellite Server has removed the 'postgresql-server,' 'postgresql-contrib,' and 'postgresql-evr' packages.

Diagnostic Steps

  • Check the /var/log/foreman-installer/satellite.log file on the Red Hat Satellite Server for errors.

  • Check the dnf/yum history details on the Red Hat Satellite Server:

     # dnf history 
     Updating Subscription Management repositories.
     ID     | Command line                                                             | Date and time    | Action(s)      | Altered
     -------------------------------------------------------------------------------------------------------------------------------
     44 | update -y --allowerasing                                                 | 2025-03-21 14:18 | E, U           |   10  <
    
  • The following logs show that manually executing the yum update command on the Satellite server removed the packages:

       2025-03-21T14:18:24-0600 DDEBUG Command: yum update -y --allowerasing 
       2025-03-21T14:18:24-0600 DDEBUG Installroot: /
    
      2025-03-21T14:18:28-0600 DEBUG --> Starting dependency resolution
      2025-03-21T14:18:29-0600 DEBUG ---> Package libpq.x86_64 13.11-1.el8 will be upgraded
      2025-03-21T14:18:29-0600 DEBUG ---> Package libpq.x86_64 13.20-1.el8_10 will be an upgrade
      2025-03-21T14:18:29-0600 DEBUG ---> Package postgresql.x86_64 12.18-1.module+el8.9.0+21289+7c796f9d will be upgraded
      2025-03-21T14:18:29-0600 DEBUG ---> Package postgresql.x86_64 12.22-3.module+el8.10.0+22943+b3f02cd1 will be an upgrade
      2025-03-21T14:18:29-0600 DEBUG ---> Package nftables.x86_64 1:1.0.4-4.el8_9 will be upgraded
      2025-03-21T14:18:29-0600 DEBUG ---> Package nftables.x86_64 1:1.0.4-7.el8_10 will be an upgrade
      2025-03-21T14:18:29-0600 DEBUG ---> Package python3-nftables.x86_64 1:1.0.4-4.el8_9 will be upgraded
      2025-03-21T14:18:29-0600 DEBUG ---> Package python3-nftables.x86_64 1:1.0.4-7.el8_10 will be an upgrade
      2025-03-21T14:18:29-0600 DEBUG ---> Package firewalld.noarch 0.9.11-4.el8 will be upgraded
      2025-03-21T14:18:29-0600 DEBUG ---> Package firewalld.noarch 0.9.11-10.el8_10 will be an upgrade
      2025-03-21T14:18:29-0600 DEBUG ---> Package firewalld-filesystem.noarch 0.9.11-4.el8 will be upgraded
      2025-03-21T14:18:29-0600 DEBUG ---> Package firewalld-filesystem.noarch 0.9.11-10.el8_10 will be an upgrade
      2025-03-21T14:18:29-0600 DEBUG ---> Package python3-firewall.noarch 0.9.11-4.el8 will be upgraded
      2025-03-21T14:18:29-0600 DEBUG ---> Package python3-firewall.noarch 0.9.11-10.el8_10 will be an upgrade
      2025-03-21T14:18:29-0600 DEBUG ---> Package postgresql-contrib.x86_64 12.18-1.module+el8.9.0+21289+7c796f9d will be erased     <<<<<<<<<<<<<<           
      2025-03-21T14:18:29-0600 DEBUG ---> Package postgresql-evr.x86_64 0.0.2-1.el8sat will be erased                                <<<<<<<<<<<<<<
      2025-03-21T14:18:29-0600 DEBUG ---> Package postgresql-server.x86_64 12.18-1.module+el8.9.0+21289+7c796f9d will be erased      <<<<<<<<<<<<<<
      2025-03-21T14:18:29-0600 DEBUG --> Finished dependency resolution
    
  • The following error was observed in the /var/log/foreman-installer/satellite.log file:

    2025-03-22 04:07:31 [ERROR ] [configure] Execution of '/bin/dnf -d 0 -e 1 -y install postgresql-evr' returned 1: Error: Unable to find a       match: postgresql-evr
    2025-03-22 04:07:31 [ERROR ] [configure] /Stage[main]/Katello::Application/Package[postgresql-evr]/ensure: change from 'purged' to   'present' failed: Execution of '/bin/dnf -d 0 -e 1 -y install postgresql-evr' returned 1: Error: Unable to find a match: postgresql-evr
    
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.