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

General support questions
Post Reply
marbenoct2019
Posts: 3
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
Forum Moderator
Posts: 26942
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.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

marbenoct2019
Posts: 3
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

Return to “CentOS 6 - General Support”