Error: In the shell script, execute the file with sh and report source: not found
Reason: sh and bash are different shells, there is no source command in sh. So when running with sh or ./, this error will be prompted.
Solution: replace sh with bash, eg. bash test.sh
is to use bash to execute it.
Read More:
- Linux: How to Solve vim ~/.bashrc Execute Error
- Linux Install Bee and Execute Error: bash: bee: command not found
- [Solved] shc -f xxx.sh shc: invalid first line in scrip
- [Solved] Go use zoom to connect DM database and start reporting error in Linux
- Linux Error: bind error: Address already in use [How to Solve]
- [Solved] RHEL 7 installs Oracle RAC 11.2.0.4, executes root.sh error ohasd: failed to start
- Linux Use dtc generate dtb Error: “FATAL ERROR: Unable to parse input tree“
- [Solved] Linux — 9 — txt files are copied from windows to Linux and read error
- [Solved] kali Execute history -c Error: fc: event not found: – C
- [Solved] Linux Error: mipsel-linux-gcc: fatal error: no input files
- [Solved] source /etc/profile Error: not a valid identifier
- ./configure Command Execute error (Centos7 Install erlang)
- How to Solve “Error: source file could not be loaded“ [Ubuntu Use LibreOffice]
- [Solved] Failed to execute/bin/bash: resource temporarily unavailable
- AFTER THE GIT SOURCE CODE IS INSTALLED, AN ERROR IS REPORTED /USR/BIN/GIT: NO SUCH FILE OR DIRECTORY
- Yum source error: [errno 14] HTTP Error 404 – not found
- linux Ubuntu Error: No command ‘setenv‘ found
- How to Solve Linux Error: -bash: unzip: command not found
- [Solved] Error :: You must put some ‘source‘ URIs in your sources.list
- Resolving yum source-related issues: Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again