码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu系统shell 中source: not found错误

时间:2018-01-12 22:46:04      阅读:271      评论:0      收藏:0      [点我收藏+]

标签:选择   code   bash   body   ubuntu   系统   str   令行   执行   

错误: 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错误

标签:选择   code   bash   body   ubuntu   系统   str   令行   执行   

原文地址:https://www.cnblogs.com/laien/p/8277617.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!