Report this

What is the reason for this report?

Why /var/bin/su errors with /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory

Posted on November 30, 2016

By mistake i moved ( …a directory of root …to another directory With in… root)

mv lib64 /Python/environments/my_env/bin

After this when i typed commands like …>>>>ls, >>>vim it’s not working. i am getting
bash: /usr/bin/ls: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory.

Please fix this.

I am using linux cent so 7 (recently installed cent0s 7)



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It sounds like the problem is not limited to /root since the commands you’re attempting to use and their associated libs live outside /root. I would recommend opening a ticket with our support team. They can set your droplet to boot to a recovery environment which offers a bash shell of it’s own that will let you mount your disk, investigate and attempt to fix the issue or copy out needed files so you can rebuild the droplet.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.