Yum commands fails with "IndexError: tuple index out of range"

Solution Verified - Updated -


Using any yum command leads to the following python traceback:

# yum check-update
Loaded plugins: enabled_repos_upload, fastestmirror, package_upload, product-id, rhnplugin, search-disabled-repos, subscription-manager
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 170, in main
  File "/usr/share/yum-cli/cli.py", line 283, in getOptionsConfig
    e = '%s: %s' % (to_unicode(e.args[1]), repr(e.filename))
IndexError: tuple index out of range
Uploading Enabled Repositories Report
Loaded plugins: fastestmirror, product-id, rhnplugin, subscription-manager
Unable to upload Enabled Repositories Report


  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In