原文:ubuntu系统shell 中source: not found错误

错误: shell脚本中含有source命令运行时提示 source: not found 测试:运行ls l bin sh后显示 bin sh gt dash这说明是用dash来进行解析的。 解决方案:命令行执行:dpkg reconfigure dash 需要root权限 在界面中选择no再运行ls l bin sh后显示 bin sh gt bash ...

2018-01-12 20:47 0 2347 推荐指数:

查看详情

关于ubuntushell脚本 source command not found

shell脚本的第一行通常为#!/bin/sh,指定执行shell script的解释器版本。有bash,dash等。Bash (GNU Bourne-Again Shell) 是许多Linux发行版的默认Shell。事实上,还有许多传统UNIX上用的Shell,例如tcsh、csh、ash ...

Mon Aug 14 19:40:00 CST 2017 0 3772
ubuntu shell 提示 source : not found 原因及解决办法

现象: shell脚本source aaa.sh时提示 source: not found 原因: ls -l `which sh` 提示/bin/sh -> dash 这说明是用dash来进行解析的。 改回方法: 命令行执行:sudo dpkg-reconfigure ...

Fri Apr 30 01:14:00 CST 2021 0 212
ubuntu linux -报错 source: not found

报错:source: not found 原因:sh 和 bash 是不同的 shell,sh没有 source 命令。所以用 sh 或者 ./ 运行的时候,会提示这个错误。 解决办法:sudo bash test.sh ...

Sun Dec 29 01:08:00 CST 2019 0 1249
MyEclipseSource not found的问题

1、问题描述 在MyEclipse想查看源码,结果显示:Source not found ......(大概的意思就是找不到源码包) 2、解决方案 下载相应版本的apache-tomcat-8.5.24-src.zip包(我用的这个版本的服务器),具体操作 ...

Tue Dec 26 18:29:00 CST 2017 0 1644
ubuntu系统,关于源(source)的配置

1. 现象:(出现的错误) 执行 sudo apt-get update, 报错:apt-get 404 Not Found Package Repository Errors 执行 sudo apt-get install, 报错:Some index files failed ...

Sun Jul 08 02:59:00 CST 2018 0 3274
shell脚本source无效

发现在shell里面执行source,提示找不到命令。所以,我取搜了一些资料,总结一下。 一. 脚本source找不到命令--------------是因为用了sh执行脚本,而debian系统的sh指向dash。需要更改系统sh指向: (1)cd /bin (2)mv sh ...

Wed Jan 16 19:22:00 CST 2019 0 3205
Ubuntushell脚本无法使用source命令的原因与解决方法

本文简要描述了在ubuntu系统下无法使用source命令的原因,及对应的两种解决方法,并在附录引用一篇文章来详细解释source命令的用法 问题: 由于在交叉编译时,需要在当前shell内执行source命令来临时指定系统的编译环境为嵌入式环境。故希望通过编写一个shell脚本来自动执行 ...

Wed Oct 16 19:16:00 CST 2019 0 2866
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM