/bin/sh: 1: source: not found
时间: 2023-12-21 12:20:04 浏览: 270
This error occurs when the 'source' command is used in a shell that does not support it.
The 'source' command is typically used in bash shell to execute the contents of a file in the current shell context.
To resolve this error, try to run the script in bash shell or replace the 'source' command with '.' (dot) command which is a POSIX-compatible way to execute the contents of a file in the current shell context.
For example, instead of using:
source myscript.sh
Use:
. myscript.sh
相关问题
./Sourcetrail.sh: 13: exec: /home/lin/Sourcetrail-master/Sourcetrail-master/setup/Linux/data/package/bin/sourcetrail: not found
根据错误提示,你运行的Sourcetrail脚本无法找到可执行文件 `/home/lin/Sourcetrail-master/Sourcetrail-master/setup/Linux/data/package/bin/sourcetrail`。这可能是因为你没有正确安装Sourcetrail或者安装路径不正确。你可以检查一下Sourcetrail的安装路径是否正确,并且确认你已经按照安装指南正确地安装了Sourcetrail。如果问题仍然存在,你可以尝试重新安装Sourcetrail或者从Sourcetrail官方网站获取支持。
/system/bin/sh: chmond: not found
在引用中,报错"/system/bin/sh: disable-verity: not found"表示在执行命令"adb disable-verity"时找不到"disable-verity"命令。同样地,在引用中,报错"/system/bin/sh: adb: not found"表示在执行命令"adb shell dumpsys window | findstr usedApp"时找不到"adb"命令。这些错误通常是因为adb命令无法在系统中找到而导致的。
在引用中,报错"/system/bin/sh: su: not found"表示在执行命令"su"时找不到"su"命令。这个错误一般是因为Android Studio带有(Google Play)的模拟器无法获得root权限所导致的。
而在问题中的报错"/system/bin/sh: chmond: not found"也是类似的情况,表示在执行命令"chmond"时找不到"chmond"命令。
综上所述,这些报错都是由于系统找不到相应的命令而导致的。可以尝试检查命令是否正确输入或者确认对应的命令是否存在于系统中。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [/system/bin/sh: disable-verity: not found](https://blog.csdn.net/AA5279AA/article/details/126288496)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [使用ADB报错“/system/bin/sh: findstr: not found”如何处理?](https://blog.csdn.net/wuwei13798642/article/details/126621515)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [解决android studio中使用monitor工具无法打开data文件夹问题](https://download.csdn.net/download/weixin_38667581/14878389)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文