Rpm installation fails due to depencency /bin/sh not found?

hi all,

i am trying to install a peacketbeat using rpm,
Steps i followed,

curl -L -O https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-5.5.2-x86_64.rpm
rpm -vi packetbeat-5.5.2-x86_64.rpm

while insatlling. The error i am getting is

# rpm -vi packetbeat-5.5.2-x86_64.rpm
warning: packetbeat-5.5.2-x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
error: Failed dependencies:
    /bin/sh is needed by packetbeat-5.5.2-1.x86_64

please help
thank you

Do you have it installed?

while insatlling. I got the error message

Do you have the sh packaged installed though? It should be by default I'd imagine.

GNU Bash (Bourne-again shell) is the default shell on Gentoo systems,
I have /bin/sh and /bin/bash
any idea ?

An issue is opened here: https://github.com/elastic/beats/issues/5065

We don't test on Gentoo, but it sounds like rpm on gentoo somehow doesn't realise that /bin/sh is installed. Perhaps the best way to go about it is to use --nodeps flag when installing with rpm, like suggested here: https://www.linuxquestions.org/questions/linux-software-2/install-rpm-on-gentoo-bin-sh-needed-333903/

You can also consider other options from here: https://stackoverflow.com/questions/3959040/rpm-installation-fails-due-to-depencency-bin-sh-not-found

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.