Kernel panic while loading shared libraries libc.so.6
I was developing my so library it wasn't working properly
I ran the command ln -nsf /myLibrary /libc.so.6
in order to link my lib to libc
but it linked libc
to my lib as I understood, then I rebooted pc, know I’m getting kernel panic:
Is there any way to fix it? I even can't enter command-line mode
I made a flash disk with ubuntu, ran it in try mode, found my file /medium/../usr/lib/x86_64-linux-gnu/libc.so.6
I ran commands:
unlink /medium/../usr/lib/x86_64-linux-gnu/libc.so.6
then I copied live cd libc.so.6
version of file to my hard disk.
and checked shared libraries by calling
sudo ldd /medium/../usr/lib/x86_64-linux-gnu/libc.so.6
then rebooted PC
I don't know what exactly helped me, but now I'm able to boot my Ubuntu