原文: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