Why after leapp upgrade and reboot system fails with "Error: Some packages have invalid cache, but cannot be downloaded due to "--cacheonly" option" error?

Solution Verified - Updated -

Issue

  • Leapp upgrade from RHEL 7 to RHEL 8 failed during reboot phase and system dropped into emergency mode with below error:

    Jun 20 08:30:00 localhost upgrade[596]:     Stderr: Warning: Package marked by Leapp to upgrade not found in repositories metadata: python2-leapp leapp-upgrade-el7toel8 leapp gpg-pubkey
    Jun 20 08:30:00 localhost upgrade[596]:             Error opening /var/cache/dnf/rhel-8-for-x86_64-baseos-rpms-376be2e46c653146/packages/bzip2-1.0.6-26.el8.x86_64.rpm: No such file or directory
    Jun 20 08:30:00 localhost upgrade[596]:             Package "bzip2-1.0.6-26.el8.x86_64" from repository "rhel-8-for-x86_64-baseos-rpms" has incorrect checksum
    Jun 20 08:30:01 localhost upgrade[596]:             Error opening /var/cache/dnf/rhel-8-for-x86_64-baseos-rpms-376be2e46c653146/packages/sos-4.7.1-2.el8_10.noarch.rpm: No such file or directory
    Jun 20 08:30:01 localhost upgrade[596]:             Package "sos-4.7.1-2.el8_10.noarch" from repository "rhel-8-for-x86_64-baseos-rpms" has incorrect checksum
    Jun 20 08:30:01 localhost upgrade[596]:             Error: Some packages have invalid cache, but cannot be downloaded due to "--cacheonly" option
    

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Leapp

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