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: 27125
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 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
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”