1. 程式人生 > >ubuntu系統shell 中source: not found錯誤

ubuntu系統shell 中source: not found錯誤

dpkg code 腳本 解決 shel conf pos source命令 source

錯誤: shell腳本中含有source命令運行時提示 source: not found

    • 測試:
      運行 ls -l /bin/sh 後顯示/bin/sh -> dash
      這說明是用dash來進行解析的。

    • 解決方案:
      命令行執行:dpkg-reconfigure dash(需要root權限)
      在界面中選擇no
      再運行ls -l /bin/sh 後顯示/bin/sh -> bash

ubuntu系統shell 中source: not found錯誤