Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Command Not Found" Errors #130

Open
pshankland opened this issue Feb 26, 2024 · 5 comments
Open

"Command Not Found" Errors #130

pshankland opened this issue Feb 26, 2024 · 5 comments

Comments

@pshankland
Copy link

pshankland commented Feb 26, 2024

Trying to install on a clean Ubuntu 22.04.4 server but getting the following:

someone@logforwarder-26022024:~/downloads$ sudo bash ./mde_installer.sh --install
./mde_installer.sh: line 1: get_python: command not found
./mde_installer.sh: line 1: parse_uri: command not found
./mde_installer.sh: line 1: parse_uri: command not found
./mde_installer.sh: line 1: parse_uri: command not found
./mde_installer.sh: line 1: parse_uri: command not found
./mde_installer.sh: line 1: --install-: syntax error: operand expected (error token is "-")

Python3 is installed.

What am I missing?

@anoliveiraM
Copy link

anoliveiraM commented Feb 28, 2024

@pshankland

Just tested the script on a Ubuntu 22.04 and was able to install:

Python version used:
Python 3.10.12

OS:

cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"

Hash of installer

sha256sum mde_installer.sh
c63d2a06469510364d2d03d5f095beb3572b6fd4ba3c7fc6a295fdd5a8c905d0 mde_installer.sh

Test running the script like so:

sudo /usr/bin/bash mde_installer.sh --install

One cause for the issue might be that the system is not interpreting the shebang at the beginning of the script.
The issue could also be due to the fact that the script is incomplete/corrupt as by the looks of the error message it's saying that those functions have not been declared, if the script does not run with the above command please share the hash of the mde_installer.sh that you are using.

@pshankland
Copy link
Author

OS:

PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"

Output after running script as suggested:

pshankland@logforwarder:~/downloads$ sudo /usr/bin/bash mde_installer.sh --install
[sudo] password for pshankland:
mde_installer.sh: line 1: get_python: command not found
mde_installer.sh: line 1: parse_uri: command not found
mde_installer.sh: line 1: parse_uri: command not found
mde_installer.sh: line 1: parse_uri: command not found
mde_installer.sh: line 1: parse_uri: command not found
mde_installer.sh: line 1: --install-: syntax error: operand expected (error token is "-")

@anoliveiraM
Copy link

@pshankland , can you please provide me with the hash of the script you are using?

@pshankland
Copy link
Author

080855b88ee3f94c3f3c4aa63a3ea8bfe3f4de32048d44be5061278e69217b1a mde_installer.sh

@anoliveiraM
Copy link

@pshankland , can that hash does not match the hash I've used can you please re download the script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants