Bin Sh M Bad Interpreter No Such File Or Directory. I tried opening it in VIM under binary mode(don't know what it is) but it did'not have any ^M tag after bin/bash. Then, I boot into my new slackware system, go to a directory where I have packages and use a simple script in shell to install them.
recovery mode - I crashed my Ubuntu pc - Ask Ubuntu (Jean Freeman)
Unix/Linux even have a dedicated command to fix the files. Very simple thing but sometimes it will bother you a lot. So I use vi to see the file and delete the damn it ^M after #!/bin/bash and surprise: there was no ^M.
How To Solve No Such Files Or Directories on Linux.
Or just rewrite the script in your Unix env using vi and test.
SAIL-IMX7D Linux开发环境搭建与内核编译
-bash: ./my_script: /bin/bash^M: bad interpreter: No such ...
linux角本出错/bin/sh^M:bad interpreter: No such file or ...
/bin/bash^M: bad interpreter: そのようなファイルやディレクトリはありません (No ...
解决/bin/bash^M: bad interpreter: No such file or directory ...
/usr/bin/perl:bad interpreter:No such file or directory 的 ...
bad interpreter: /bin/sh^M: no such file or directory ...
使用Git的hook实现代码的自动部署 - 灰信网(软件开发博客聚合)
Snap Bash No Such File Java Photos Gallery
Then, I boot into my new slackware system, go to a directory where I have packages and use a simple script in shell to install them. The script is not using Unix characters or not formatted for use with a Unix Operating System. So I copied vte-*.sh to vte.sh and that's the fix!