新安装的 ubuntu 18.04 配置 sh

    科技2022-08-04  133

    新安装的ubuntu 18.04,sh脚本不能执行,提示:

     

    Illegal option -p /bin/sh: 1: Usage:: not found

    经过确认,原来ubuntu 18.04 默认的shell问题,需要切到【sh】,默认的为【dash】

     

    【解决方法】

    控制台执行:

    sudo dpkg-reconfigure dash

     

     

    这里选择【No】,就可以配置为 sh了。

     

    Processed: 0.009, SQL: 9