Red Hat Satellite upgrade fails with "Error unpacking rpm package setup"

Solution Verified - Updated -

Issue

  • Red Hat Satellite upgrade fails with following error.
# foreman-maintain upgrade run --whitelist="check-tmout-variable" --target-version 6.4.z
...
Dependencies Resolved

==================================================================================================================================
 Package                                    Arch                                        Version                                             Repository                                               Size
==================================================================================================================================
Updating:
 setup                                      noarch                                      2.8.71-11.el7                                       rhel-7-server-rpms                                      166 k

Transaction Summary
==================================================================================================================================
Upgrade  1 Package

Total download size: 166 k
Downloading packages:
No Presto metadata available for rhel-7-server-rpms
setup-2.8.71-11.el7.noarch.rpm                                                                                                                                                     | 166 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : setup-2.8.71-11.el7.noarch                                                                                                                                                             1/2
Error unpacking rpm package setup-2.8.71-11.el7.noarch
error: unpacking of archive failed on file /etc/shadow.rpmnew: cpio: rename
  Verifying  : setup-2.8.71-11.el7.noarch                                                                                                                                                             1/2
setup-2.8.71-10.el7.noarch was supposed to be removed but is not!
  Verifying  : setup-2.8.71-10.el7.noarch                                                                                                                                                             2/2

Failed:
  setup.noarch 0:2.8.71-10.el7                                                                        setup.noarch 0:2.8.71-11.el7

Complete!
                                                  [FAIL]
Failed executing yum -y update, exit status 1
--------------------------------------------------------------------------------
Scenario [Migration scripts to Satellite 6.x.z] failed.

The following steps ended up in failing state:

  [packages-update]

Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="packages-update"

Environment

  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In