subscription-manager commands fails with the error "/usr/lib/python2.4/site-packages/rhsm/_certificate.so: wrong ELF class: ELFCLASS32"

Solution Verified - Updated -

Issue

  • subscription-manager commands fails with the error message "/usr/lib/python2.4/site-packages/rhsm/_certificate.so: wrong ELF class: ELFCLASS32"
  • System registration fails with the error "/usr/lib/python2.4/site-packages/rhsm/_certificate.so: wrong ELF class: ELFCLASS32"
# subscription-manager remove --all
0 subscriptions removed from this system.
/usr/lib/python2.4/site-packages/rhsm/_certificate.so: wrong ELF class: ELFCLASS32

# subscription-manager clean
All local data removed
/usr/lib/python2.4/site-packages/rhsm/_certificate.so: wrong ELF class: ELFCLASS32

# subscription-manager register --auto-attach
/usr/lib/python2.4/site-packages/rhsm/_certificate.so: wrong ELF class: ELFCLASS32

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat subscription-manager

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