Ubuntu/Debian为了加快开机速度,用dash代替了bash。

dpkg-reconfigure dash 选择 No,取消dash即可,要重新开启dpkg-reconfigure dash选择Yes即可。

或者dash启用时使用bash xxxxx.sh

 

另一种可能是:

sh文件里的 #!bin/bash 改成 #!/bin/bash

相关文章:

  • 2021-08-27
  • 2021-04-11
  • 2021-08-04
  • 2022-12-23
  • 2021-04-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-04
  • 2021-07-08
  • 2021-06-10
  • 2022-12-23
  • 2021-06-14
  • 2022-12-23
相关资源
相似解决方案