I’m opening a terminal in the directory of a bash script and trying to execute it. ls shows the script in the current directory but when I type and enter
sudo ./voxin-installer.sh
I get “command not found”. What could be causing this error? I set the script property to ‘executable’ but that doesn’t make a difference.
It installs a voice for Orca. I didn’t have trouble on my laptop, but laptop of a person I’m trying to help gets this error. We both have fairly new installs of Ubuntu 24.04.3 LBT.
It sounds like the script itself is fine, but the system might not be executing it correctly. I use Voxin myself, and this installation method works reliably — just make sure to adjust the folder names to match your version of Voxin:
Running the installer with sudo --login ensures all environment variables are loaded correctly, which often fixes the “command not found” issue on some systems.
Feel free to share any error output if the problem continues — happy to help further.
By the way, are you using the default Voxin voice that comes with ETI-Eloquence, or did you purchase one of the Vocalizer voices?
If it’s a Vocalizer voice, you can actually get it as a .deb package and install it directly without needing the Voxin installer script.
Let me know which one you’re trying to install — that will help narrow down the issue.
$PWD literally means “the current working directory” — it’s not a password.
So sudo --login $PWD/voxin-installer.sh simply runs the installer script from the folder you’re currently inside.
ETI-Eloquence is the default Voxin voice (the classic Eloquence TTS).
If you’re using a Vocalizer voice like Allison, you can usually install it directly from a .deb package without needing the Voxin installer script. It’s simpler and avoids many script-related issues.
If you want the person you’re helping to hear what the ETI-Eloquence voice sounds like, you can share this video I made. At the end of the video, you can hear the actual ETI-Eloquence voice in action:
He mentioned in his original post that he already made the script executable, but I suspect he may have done it through the file properties rather than the command line. Sometimes the graphical checkbox doesn’t apply correctly or isn’t set the way we expect.
add the following as the second line of the script
set -x
save the modified script
run the modified script
The system will echo the “paraphrase” of every command before executing. The line printed to your screen, immediately before the message telling you “command not found”, is the culprit and should be the start point of your troubleshooting.