Hi!
I wanted to install a quite old package in my ubuntu computer using the .sh file I downloaded from their website. So, I tried typing in terminal:
sudo ./package_name.sh
and I got:
/bin/sh: 0: Can’t open ./package_name.sh
Briliant! Since you are here, you are probably looking for a fix.
The problem stems from the fact that Ubuntu uses dash as the default shell and your script is written with another shell in mind. The most usual is bash (sh).
So type in a terminal window:
sudo bash ./package_name.sh
This will force ubuntu to run the script using bash.
Enjoy!
Vasilis
):