首页 > 系统服务 > 详细

ubuntu系统shell 中source: not found错误

时间:2018-01-12 21:47:53      阅读:355      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!