I did a blunder on one of my production server and its very old RHEL 4 host. Due to recent “shellshock vulnerability” by mistake I upgraded the bash to wrong version from RHEL5 repo.
Now I am getting the error
-bash: error while loading shared libraries: requires glibc 2.5 or later dynamic linker.
Complete Error :
ssh [email protected] -bash: error while loading shared libraries: requires glibc 2.5 or later dynamic linker
Now I am unable to login to server also I tried rebooting host with older version of kernel and all but that did not work. I tried rebooting the host into single user mode but it is also not working. I am completely stuck with this issue and its very critical for us.
Boot the system from a RHEL 4.x installation media, which you should have kept handy for this.
At its boot menu, boot into rescue mode.
The rescue mode will mount your filesystem at
/mnt/sysimage, where you can then work on it.
To fix the problem, locate a
bash RPM for EL4, download it while booted into the rescue environment and reinstall it, for instance:
cd /mnt/sysimage/var/tmp wget http://www.example.com/bash-3.0-27.0.1.el4.i386.rpm rpm --root /mnt/sysimage -Uvh --oldpackage bash-3.0-27.0.1.el4.i386.rpm
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.