Installing katello-ca-consumer-latest.noarch.rpm from Red Hat Satellite 6 fails with conflicting package errors

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.x
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Issue

When attempting to install katello-ca-consumer-latest.noarch.rpm on a server previously registered to a Red Hat Satellite 6.x the rpm install fails.

[root@example.server ~]# rpm -Uvh http://example.satellite.com/pub/katello-ca-consumer-latest.noarch.rpm
Retrieving http://example.satellite.com/pub/katello-ca-consumer-latest.noarch.rpm
Preparing...                          ################################# [100%]
        file /etc/rhsm/ca/katello-default-ca.pem from install of katello-ca-example.satellite.com-1.0-1.noarch conflicts with file from package katello-ca-consumer-example.satellite.com-1.0-1.noarch
        file /etc/rhsm/ca/katello-server-ca.pem from install of katello-ca-consumer-example.satellite.com-1.0-1.noarch conflicts with file from package katello-ca-consumer-example.satellite.com-1.0-1.noarch
[root@example.server ~]#

Resolution

Ensure the old katello-ca-consumer-latest.noarch.rpm is removed completely from the server.

[root@example.server ~]# rm /etc/rhsm/ca/katello-*
[root@example.server ~]# rpm -e katello-ca-consumer-example.satellite.com-1.0-1.noarch

Then, install the RPM with the "--force" option.

# curl --insecure --output katello-ca-consumer-latest.noarch.rpm https://satellite.example.com/pub/katello-ca-consumer-latest.noarch.rpm
# rpm -ivh katello-ca-consumer-latest.noarch.rpm --force

Root Cause

This error is caused by the server being previously installed with another version of the katello-ca-consumer-latest.noarch.rpm package,

Diagnostic Steps

Test to see if the server already has the katello-ca-consumer package installed.

[root@example.server ~]# rpm -qa | grep katello
katello-ca-consumer-example.satellite.com-1.0-1.noarch

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.

Comments