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

November 30, 2016 1.9k views
Applications CentOS

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)

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.

Have another answer? Share your knowledge.