Leapp preupgrade on Red Hat Satellite server fails with error Failed to execute script to apply transaction workaround remove obsolete RPM GPG keys from RPM DB

Solution Verified - Updated -

Issue

  • Leapp preupgrade on Red Hat Satellite server fails with below error.

    [ERROR] Actor: dnf_transaction_check
    Message: Failed to execute script to apply transaction workaround remove obsolete RPM GPG keys from RPM DB. Message: Command ['systemd-nspawn', '--register=no', '--quiet', '-D', u'/var/lib/leapp/scratch/mounts/root_/system_overlay', '--setenv=LEAPP_UPGRADE_PATH_TARGET_RELEASE=8.8', '--setenv=LEAPP_NO_RHSM=0', '--setenv=LEAPP_EXPERIMENTAL=0', '--setenv=LEAPP_UPGRADE_PATH_FLAVOUR=default', '--setenv=LEAPP_COMMON_TOOLS=:/etc/leapp/repos.d/system_upgrade/common/tools:/etc/leapp/repos.d/system_upgrade/el7toel8/tools', '--setenv=LEAPP_COMMON_FILES=:/etc/leapp/repos.d/system_upgrade/common/files:/etc/leapp/repos.d/system_upgrade/el7toel8/files', '--setenv=LEAPP_IPU_IN_PROGRESS=7to8', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_EXECUTION_ID=8017fcd9-57a2-4d41-9a53-3c46f8e43890', '--setenv=LEAP_HOSTNAME=satellite.example.com', '/bin/bash', '-c', '/etc/leapp/repos.d/system_upgrade/common/tools/removerpmgpgkeys gpg-pubkey-2fa658e0-45700c69'] failed with exit code 1
    

Environment

  • Red Hat Satellite 6.11
  • Red Hat Enterprise Linux 7.9

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