conver2rhel command failed with KeyError: 'systemd'.

Solution Unverified - Updated -

Issue

  • I used the convert2rhel command to convert from Oracle Linux 7 into Red Hat Enterprise Linux 7.
  • But, it failed with the following error.
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 375, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 239, in main
    (result, resultmsgs) = base.buildTransaction() 
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1338, in buildTransaction
    if txmbr.pkgtup in bad_togo[ipkg.name]:
KeyError: 'systemd'
Received return code: 1

Environment

Red Hat Enterprise Linux 7

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