yum commands fail with "ValueError: invalid literal for int() with base 10: '0_oa'"

Solution Unverified - Updated -

Issue

  • Running yum commands result in errors similar to:
# yum repolist
Traceback (most recent call last):
  File "/usr/bin/yum", line 4, in <module>
    import yum
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 56, in <module>
    import rpmsack
  File "/usr/lib/python2.6/site-packages/yum/rpmsack.py", line 38, in <module>
    import yum.depsolve
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 30, in <module>
    from transactioninfo import TransactionMember
  File "/usr/lib/python2.6/site-packages/yum/transactioninfo.py", line 32, in <module>
    from sqlitesack import YumAvailablePackageSqlite
  File "/usr/lib/python2.6/site-packages/yum/sqlitesack.py", line 26, in <module>
    import yumRepo
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 34, in <module>
    import sqlitecachec
  File "/usr/lib64/python2.6/site-packages/sqlitecachec.py", line 16, in <module>
    import sqlite3 as sqlite
  File "/usr/lib64/python2.6/sqlite3/__init__.py", line 23, in <module>
    from dbapi2 import *
  File "/usr/lib64/python2.6/sqlite3/dbapi2.py", line 50, in <module>
    sqlite_version_info = tuple([int(x) for x in sqlite_version.split(".")])
ValueError: invalid literal for int() with base 10: '0_oa'

Environment

  • Red Hat Enterprise Linux 6.x

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