Ubuntu is a famous Linux working framework that permits you to run code utilizing scripts. A PC mistake is the event of a PC creating an off base outcome. While running a few scripts or doing a few errands utilizing a terminal, you can experience a few mistakes that can be tackled through various procedures. In this article, we will talk about the reasons for the mistake “receptacle/sh: 1: source not: found” and how to determine it.
A shell script is programming that executes orders. Shell scripts are principally used to keep away from drawn-out assignments. Rather than entering orders consistently n times, you can build a content to robotize a progression of guidelines to be pursued one the other. The/receptacle/sh is utilized to run the document with sh, a Bourne shell, or another similar shell.
Resolve
Instead of source, “.” is supported by some shells. So, you may attempt something like the below-mentioned syntax.
Instead of using the below command:
The /bin/sh is usually a shell attempting to imitate The Shell. For “sh,” many distributions utilize /bin/bash because it supports the source. However, the source is not supported by Ubuntu which uses /bin/dash. If you cannot edit the script, try changing the shell that executes it.
Resolve
We can resolve the above error in multiple ways and follow the suitable way for you.
The source is not a sh built-in; it is a bash built-in, and you’re using sh rather than bash. Try using bash instead of sh.
Replace “source ./activate” with “. ./activate”
Building an automatic setup script that modifies /etc/profile and $HOME/.profile if some paths aren’t exported, then automatically reload these by the below-mentioned command:
You will get:
It does not mean that the source file is not found; it means the source you are trying to access is not found, the source is a Bash built-in function, and the script isn’t run with bash
Why “bin/sh: 1: source not: found” Error Occurs
While using the fypll repository, you can confront the error “bin/sh: 1: source not: found” when you start activating that using the below command:
You will get: