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

Solution In Progress - Updated -

Environment

  • Red Hat Satellite 6.x
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5

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
[root@example.server ~]# rpm -Uvh http://example.satellite.com/pub/katello-ca-consumer-latest.noarch.rpm

In a less throuogh fashion you can install the rpm with the "--force" option.

[root@example.server ~]# rpm -Uvh http://example.satellite.com/pub/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.

2 Comments

I'm trying to move a RHEL 7.9 box from one satellite server to another and using the commands above fail with "subscription-manager is needed by katello-ca-consumer......."

These steps work on previous versions of rhel 7.x and 6.x

this should be included in the subscription-manager solutions or even in the man page for it.