/bin/sh^M: bad interpreter
#在win下编辑的时候,换行结尾是nr , 而在linux下 是n,所以才会有 多出来的r
#可以用以下方式解决先在控制台cd到报错的目录
#编辑报错的那个文件
vi xxx.sh
#利用如下命令查看文件格式
:set ff 或 :set fileformat
#可以看到如下信息
#fileformat=dos 或 fileformat=unix
#利用如下命令修改文件格式
:set ff=unix 或 :set fileformat=unix
#保存退出后再次执行sh文件即可
:wq
在Linux中执行.sh脚本,/bin/sh^M: bad interpreter:解决办法_yuzfengxu的博客-CSDN博客https://blog.csdn.net/yuzfengxu/article/details/108666377
sudo apt-get update sudo apt-get install -y libglib2.0-dev
opencv安装的bug - 知乎 (zhihu.com)https://zhuanlan.zhihu.com/p/161491982



