Yum install fails with, "liblzma.so.5: cannot open shared object file: No such file or directory"

Solution Verified - Updated -

Issue

  • There was a problem importing one of the Python modules required to run yum:

    liblzma.so.5: cannot open shared object file: No such file or directory
    
    root@usclimdwvpx001 badevraj]# rpm -ivh xz-4.999.9-0.5.beta.20091007git.el6.x86_64.rpm xz-libs-4.999.9-0.5.beta.20091007git.el6.x86_64.rpm xz-lzma-   compat-4.999.9-0.5.beta.20091007git.el6.x86_64.rpm --force --nodeps
    Preparing...                ########################################### [100%]
    1:xz-libs                ########################################### [ 33%]
    2:xz                     ########################################### [ 67%]
    3:xz-lzma-compat         ########################################### [100%]
    [root@usclimdwvpx001 badevraj]# subscription-manager register --username=xxxxxxx --password=xxxxxxxx --auto-attach
    Unable to find Subscription Manager module.
    Error: liblzma.so.5: cannot open shared object file: No such file or directory
    
    Unsatisfied dependencies for libxml2-python-2.9.1-6.el7_2.3.x86_64:
    libc.so.6(GLIBC_2.14)(64bit) is needed by libxml2-python-2.9.1-6.el7_2.3.x86_64
    liblzma.so.5()(64bit) is needed by libxml2-python-2.9.1-6.el7_2.3.x86_64
    libpython2.7.so.1.0()(64bit) is needed by libxml2-python-2.9.1-6.el7_2.3.x86_64
    python(abi) = 2.7 is needed by libxml2-python-2.9.1-6.el7_2.3.x86_64
    
    prelink: /usr/bin/abrt-action-analyze-python: Could not find one of the dependencies
    prelink: /usr/bin/abrt-action-analyze-python: at least one of file's dependencies has changed since prelinking
    S.?......    /usr/bin/abrt-action-analyze-python
    

Environment

  • Red Hat Enterprise Linux 6.x

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