[Satellite 6.10] Satellite upgrade fails due to orphaned RPMs: rubygem-sinatra, rubygem-rack-protection
Environment
- Satellite 6.10 and newer.
Issue
- Satellite upgrade fails due to orphaned/left-over RPMs: rubygem-sinatra, rubygem-rack-protection.
Resolution
- Take a backup/snapshot of the Satellite server.
- Remove the orphaned RPMs:
# rpm -ev --nodeps rubygem-sinatra-1.4.7-3.el7sat.noarch rubygem-rack-protection-1.5.3-4.el7sat.noarch
-
If you encounter yum dependency errors related
tfm-rubygem*packages then please have a look at: Red Hat Satellite server upgrade to version 6.10 failed with multiple tfm-rubygem package dependency errors. -
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
- Orphaned/left-over RPMs from old Satellite versions.
- For more information please refer to This content is not included.BZ 1919194 and This content is not included.BZ 2024978.
Diagnostic Steps
- Snippet of the failed yum transaction:
--> Finished Dependency Resolution
Error: Package: 1:rubygem-sinatra-1.4.7-3.el7sat.noarch (@rhel-7-server-satellite-6.4-rpms)
Requires: rubygem(rack-protection) >= 1.4.0
Removing: rubygem-rack-protection-1.5.3-4.el7sat.noarch (@rhel-7-server-satellite-6.4-rpms)
rubygem(rack-protection) = 1.5.3
Obsoleted By: satellite-common-6.10.1-2.el7sat.noarch (rhel-7-server-satellite-6.10-rpms)
Not found
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************
Error: Package: 1:rubygem-sinatra-1.4.7-3.el7sat.noarch (@rhel-7-server-satellite-6.4-rpms)
Requires: rubygem(rack-protection) >= 1.4.0
Removing: rubygem-rack-protection-1.5.3-4.el7sat.noarch (@rhel-7-server-satellite-6.4-rpms)
rubygem(rack-protection) = 1.5.3
Obsoleted By: satellite-common-6.10.1-2.el7sat.noarch (rhel-7-server-satellite-6.10-rpms)
Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager
Unable to upload Enabled Repositories Report
SBR
Product(s)
Category
Tags
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.