RHEL 8 to 9 leapp failure with ruby packages "incorrect checksum" and "No such file or directory"

Solution Verified - Updated -

Issue

Encounter "No such file or directory" errors when upgrading from RHEL 8 to RHEL 9

2024-03-27 11:44:44.210 DEBUG    PID: 964 leapp.workflow.RPMUpgrade.dnf_upgrade_transaction: Error opening /var/cache/dnf/rhel-9-for-x86_64-appstream-rpms-a05479357630a4d5/packages/rubygem-rdoc-6.3.3-160.el9_0.noarch.rpm: No such file or directory
2024-03-27 11:44:44.219 DEBUG    PID: 964 leapp.workflow.RPMUpgrade.dnf_upgrade_transaction: Package "rubygem-rdoc-6.3.3-160.el9_0.noarch" from repository "rhel-9-for-x86_64-appstream-rpms" has incorrect checksum
2024-03-27 11:44:44.229 DEBUG    PID: 964 leapp.workflow.RPMUpgrade.dnf_upgrade_transaction: Error opening /var/cache/dnf/rhel-9-for-x86_64-appstream-rpms-a05479357630a4d5/packages/rubygems-3.2.33-160.el9_0.noarch.rpm: No such file or directory
2024-03-27 11:44:44.233 DEBUG    PID: 964 leapp.workflow.RPMUpgrade.dnf_upgrade_transaction: Package "rubygems-3.2.33-160.el9_0.noarch" from repository "rhel-9-for-x86_64-appstream-rpms" has incorrect checksum

Environment

  • Red Hat Enterprise Linux 8
  • leapp-0.16.0-2
  • ruby:3.1 module

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content