I have deleted an important file named ld-linux-x86-64.so.2
using rm
command.
So I can't execute shell commands. and I only can execute builtin commands.
Now I don't know What is should do. please help.
through this question let me say you i have busybox.
ld-2.xx.so
)? if the former, you may be able to fix it using busybox ln. Of course you'd need to be root, so it would likely involve setting init=/bin/busybox from the boot loader. – steeldriver Nov 13 '21 at 12:55/usr/lib64/ld-linux-x86-64.so.2
. is it the symbolic link or main file? – PooiaFerdowsi Nov 13 '21 at 13:08apt
– PooiaFerdowsi Nov 13 '21 at 13:42init=/bin/busybox sh
to get a statically-linked root shell (in that case, to fix a deleted libc.so.6). From there you should be able to use busybox's statically linkedln
command to recreate the link. If you need futher help please [edit] your question to include your complete Ubuntu version information. – steeldriver Nov 13 '21 at 14:27