Question

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

Posted November 30, 2016 3k views
CentOSApplications

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)

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.

×
Submit an Answer
1 answer

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.