Bash not found

Hello everybody

I have been trying to install LibreNMS on a Raspberry Pi 3 for a long time. Unfortunately I can’t do it :frowning_face:

Therefore I have completely rebuilt the Raspberry.
Basis: Raspberry Pi OS (32-bit) based on Debian Buster

I have now regained control from the beginning and fail in the “install PHP dependencies” section.

I use the instructions here: Installing LibreNMS - LibreNMS Docs
→ Debian 10 selected

I am logged in as root and the following error appears:

pi@RASPI-02:~ $ sudo -s
root@RASPI-02:/home/pi# cd /opt
root@RASPI-02:/opt# su - librenms
su: failed to execute /usr/bin/bash: File or directory not found
root@RASPI-02:/opt# ./scripts/composer_wrapper.php install --no-dev
bash: ./scripts/composer_wrapper.php File or directory not found

What can I do here to solve the problem and proceed with the installation?

Thanks for the help and best regards!

The question has been resolved. I installed Nagios.
Worked without problems and is now up and running.

Thanks anyway :wink:

@MTR You didn’t have bash installed, which is a requirement, but not explicitly in the install docs because normal installs have bash.

Hello @murrant

Thank you very much for your feedback.

Bash was not even present in the Required Packages.

What is the easiest way to install Bash now?

apt install bash

bash is already installed

bash is already the latest version (5.0-4).
0 updated, 0 newly installed, 0 to be removed and 0 not updated.

Is there anything else I can do to install bash and thus LibreNMS?

Thanks a lot for your help!

I would google about that error and how to fix it, as that is out of librenms scope.

Maybe bash is only in /bin/ and you should change it in the passwd file?

Hello and thanks for your reply @TheGreatDoc

And how can I change that in the passwd file?

nano /etc/passwd
change the line at the end of your username to point to /bin/bash
john:x:1000:1000:john,:/home/john:/bin/bash