Score:0

How to recover `ld-linux` file when i don't have any temporary copy of that

au flag

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.

us flag
Boot Ubuntu from a live USB, and copy the file from the live USB to the appropriate location in the installed Ubuntu.
hr flag
Did you delete the symbolic link, or the file that it points to (something like `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.
PooiaFerdowsi avatar
au flag
@steeldriver I deleted the file `/usr/lib64/ld-linux-x86-64.so.2`. is it the symbolic link or main file?
PooiaFerdowsi avatar
au flag
@ArchismanPanigrahi I can't because the softwares needed for are unavailable due the file deletion
us flag
Use someone else's computer to create the live USB. It is a good idea to create and safely store a live DVD of Ubuntu, for extreme cases like this,
hu flag
Could try to use extundelete: https://askubuntu.com/a/317955/20054.
PooiaFerdowsi avatar
au flag
@mikewhatever i can't use `apt`
hu flag
Well, obviously, you'll need another system, even something from USB or similar.
hr flag
@PooiaFerdowsi it looks like you deleted the symlink. [Here](https://askubuntu.com/a/1029363/178692) is an answer that describes how to use `init=/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 linked `ln` command to recreate the link. If you need futher help please [edit] your question to include your complete Ubuntu version information.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.