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


(saye) #1

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


(Mark Walkom) #2

Do you have it installed?


(saye) #3

while insatlling. I got the error message


(Mark Walkom) #4

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


(saye) #5

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


(Monica Sarbu) #6

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


(Tudor Golubenco) #7

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


(system) #8

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