How to fix error while loading shared libraries libc.so.6

General support questions
Post Reply
marbenoct2019
Posts: 11
Joined: 2019/10/19 11:18:28

How to fix error while loading shared libraries libc.so.6

Post by marbenoct2019 » 2019/10/19 11:34:53

Hi All,
I renamed libc.so.6 to libc.so.6_old in /lib64 folder, now I can not
login, and none of the commandline is working.
I got these errors:
dracut sbin/load_policy/: error while loading shared libraries libc.so.6
error while loading shared libraries libc.so.6

I want to rename libc.so.6_old to libc.so to fix the error, but I can not
find libc.so.6_old anymore.

Please help.
I'm using centos 6.9


Best regards,
Marben

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to fix error while loading shared libraries libc.so.6

Post by TrevorH » 2019/10/19 14:05:58

Boot from the install media in rescue mode - it's an option off the troubleshooting menu. Get it to mount your system partitions during the boot and then explore and find the file you renamed and rename it back.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

marbenoct2019
Posts: 11
Joined: 2019/10/19 11:18:28

Re: How to fix error while loading shared libraries libc.so.6

Post by marbenoct2019 » 2019/10/20 09:32:19

Hi TrevorH,
It works!!!
I have lots of sleepless night figuring out
the solution of this problem.
Thank you very much.

Best regards,
Marben

Post Reply