Message "error while loading shared libraries: /lib64/libc.so.6: ELF file OS ABI invalid" appearing while patching.

Solution Verified - Updated -

Issue

  • After invoking a program, the following error is printed on the screen:
error while loading shared libraries: <library_path>: ELF file OS ABI invalid
  • What means "ELF file OS ABI invalid"?
  • While applying the latest patches, why the messages are printed on screen?
getent: error while loading shared libraries: /lib64/libc.so.6: ELF file OS ABI invalid
warning: /etc/pam.d/system-auth created as /etc/pam.d/system-auth.rpmnew
warning: /etc/security/access.conf created as /etc/security/access.conf.rpmnew
warning: /etc/security/limits.conf created as /etc/security/limits.conf.rpmnew
/bin/sh: error while loading shared libraries: /lib64/libc.so.6: ELF file OS ABI invalid
Error in PREIN scriptlet in rpm package udev-095-14.29.el5.x86_64
error: %pre(udev-095-14.29.el5.x86_64) scriptlet failed, exit status 127
error:   install: %pre scriptlet failed (2), skipping udev-095-14.29.el5
/bin/sh: error while loading shared libraries: /lib64/libc.so.6: ELF file OS ABI invalid
Error in PREIN scriptlet in rpm package initscripts-8.45.42-1.el5_8.1.x86_64
error: %pre(initscripts-8.45.42-1.el5_8.1.x86_64) scriptlet failed, exit status 127
error:   install: %pre scriptlet failed (2), skipping initscripts-8.45.42-1.el5_8.1
/bin/sh: error while loading shared libraries: /lib64/libc.so.6: ELF file OS ABI invalid
Error in PREIN scriptlet in rpm package hal-0.5.8.1-64.el5.x86_64
error: %pre(hal-0.5.8.1-64.el5.x86_64) scriptlet failed, exit status 127
error:   install: %pre scriptlet failed (2), skipping hal-0.5.8.1-64.el5
/bin/sh: error while loading shared libraries: /lib64/libc.so.6: ELF file OS ABI invalid
Error in PREIN scriptlet in rpm package pm-utils-0.99.3-14.el5.x86_64
error: %pre(pm-utils-0.99.3-14.el5.x86_64) scriptlet failed, exit status 127
error:   install: %pre scriptlet failed (2), skipping pm-utils-0.99.3-14.el5

Environment

  • Red Hat Enterprise Linux 5/6

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