uninstall_patch.sh /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file

  • KM03094200
  • 13-Feb-2018
  • 09-Apr-2021

Archived Content: This information is no longer maintained and is provided "as is" for your convenience.

Summary

Running uninstall_patch.sh --force_run from the 10.60 install media against a 10.51 core failed and resulted in OS commands erring on: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory

Question

Running uninstall_patch.sh --force_run from the 10.60 install media against a 10.51 core failed and resulted in OS commands erring on:


/lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory 


From the uninstall_patch.sh output:


--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSerifCondensed-Oblique.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSerif-BoldOblique.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSansCondensed-BoldOblique.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSerifCondensed-Bold.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSansMono-Bold.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSans-Bold.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSansMono.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSansCondensed-Oblique.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSerifCondensed.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSansMono-Oblique.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSans-BoldOblique.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSans-ExtraLight.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSerif.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSerif-Oblique.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSans-Oblique.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSerifCondensed-BoldOblique.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSans.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSerif-Bold.ttf
--- Removing patch only file: /usr/share/fonts/dejavu-lgc/DejaVuLGCSansMono-BoldOblique.ttf
--- Removing patch only file: /etc/opt/opsware/openjdk18/openjdk.info
-- Executing post_un.sh
+++ Data for OPSWopenjdk18 successfully restored Performing patch
+++ rollback operations on OPSWopenssl
-- Removing patch data
--- Removing patch only file: /opt/opsware/openssl/man/man3/d2i_PrivateKey.3
--- Removing patch only file: /opt/opsware/openssl/man/man3/d2i_Private_key.3
--- Removing patch only file: /opt/opsware/openssl/man/man3/d2i_AutoPrivateKey.3
--- Removing patch only file: /opt/opsware/openssl/man/man3/i2d_PrivateKey.3
+++ Data for OPSWopenssl successfully restored Performing patch rollback
+++ operations on OPSWparamiko
-- Removing patch data
--- Removing patch only file: /opt/opsware/pylibs/OPSWparamiko-LC.version
+++ Data for OPSWparamiko successfully restored Performing patch
+++ rollback operations on OPSWpython27
-- Removing patch data
+++ Data for OPSWpython27 successfully restored Performing patch
+++ rollback operations on OPSWpytwist
-- Removing patch data
+++ Data for OPSWpytwist successfully restored Performing patch rollback
+++ operations on OPSWrhn_import
-- Removing patch data
+++ Data for OPSWrhn_import successfully restored Performing patch
+++ rollback operations on OPSWsolpatch
-- Removing patch data
+++ Data for OPSWsolpatch successfully restored Performing patch
+++ rollback operations on OPSWspin
-- Removing patch data
-- Executing post_un.sh
+++ Data for OPSWspin successfully restored Performing patch rollback
+++ operations on OPSWspoke
-- Removing patch data
+++ Data for OPSWspoke successfully restored Performing patch rollback
+++ operations on OPSWsshd
-- Removing patch data
/emc2/media/SAS-10.60/T8900-15068/T8900-15068-primary/disk001/opsware_installer/tools/patch_lib.sh: /usr/bin/rm: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
/emc2/media/SAS-10.60/T8900-15068/T8900-15068-primary/disk001/opsware_installer/tools/uninstall_patch.sh: /usr/bin/date: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
/emc2/media/SAS-10.60/T8900-15068/T8900-15068-primary/disk001/opsware_installer/tools/patch_lib.sh: /usr/bin/basename: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
/emc2/media/SAS-10.60/T8900-15068/T8900-15068-primary/disk001/opsware_installer/tools/patch_lib.sh: /usr/bin/grep: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
/emc2/media/SAS-10.60/T8900-15068/T8900-15068-primary/disk001/opsware_installer/tools/patch_lib.sh: /usr/bin/basename: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
/emc2/media/SAS-10.60/T8900-15068/T8900-15068-primary/disk001/opsware_installer/tools/patch_lib.sh: /usr/bin/date: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
+++ Data for OPSWsshd successfully restored Performing patch rollback
+++ operations on OPSWtell
/emc2/media/SAS-10.60/T8900-15068/T8900-15068-primary/disk001/opsware_installer/tools/patch_lib.sh: /usr/bin/basename: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
/emc2/media/SAS-10.60/T8900-15068/T8900-15068-primary/disk001/opsware_installer/tools/patch_lib.sh: /usr/bin/grep: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
/emc2/media/SAS-10.60/T8900-15068/T8900-15068-primary/disk001/opsware_installer/tools/patch_lib.sh: /usr/bin/basename: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
-- Executing
/emc2/media/SAS-10.60/T8900-15068/T8900-15068-primary/disk001/opsware_installer/tools/patch_lib.sh: /usr/bin/sh: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
ERROR: Execution of /var/opt/opsware/OPSWpatch/OPSWtell/scripts/pre_un.sh failed with exit code 126.
/emc2/media/SAS-10.60/T8900-15068/T8900-15068-primary/disk001/opsware_installer/tools/patch_lib.sh: /usr/bin/cp: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
[Jan-02-2018 20:37:46] Component installation script encountered an error (exit status 1)
[Jan-02-2018 20:37:46] Exiting Opsware Installer.
For more details, please see the following file:
/var/log/opsware/install_opsware/uninstall_patch.2018-01-02.20:33:29_verbose.log
/emc2/media/SAS-10.60/T8900-15068/T8900-15068-primary/disk001/opsware_installer/lib/oi_wrapper_lib.sh: /bin/cat: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
/emc2/media/SAS-10.60/T8900-15068/T8900-15068-primary/disk001/opsware_installer/lib/oi_wrapper_lib.sh: line 861: [: -eq: unary operator expected Script done, file is /var/log/opsware/install_opsware/uninstall_patch.2018-01-02.20:33:29.log

Answer

As a Workround:

Create the usr/lib64/ directory in /var/opt/opsware/OPSWpatch/OPSWsshd/files/, move the contents of lib64/ to that then transform it into a symlink:
 
[root@rhel-70 ~]# cd /var/opt/opsware/OPSWpatch/OPSWsshd/files/
[root@rhel-70 files]# mkdir -p usr/lib64
[root@rhel-70 files]# mv lib64/* usr/lib64/
[root@rhel-70 files]# rmdir lib64
[root@rhel-70 files]# ln -s usr/lib64 lib64

 
Doing that before running uninstall_patch.sh does not break the OS anymore.

Permanent fix will be part of the next hotfix rollup for 10.51.