error: Failed dependencies: /bin/sh is needed installing rpm...

Asked by Sudarshan Vyas

Trying to execute rpm -i command to install rpm file for installing MySQL database and getting below mentioned error. Appreciate if you can elaborate what might be the issue is. Please find logs mentioned below:

root@ubuntu:/apps# rpm -i MySQL-server-5.5.24-1.linux2.6.i386.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...

error: Failed dependencies:
 /bin/sh is needed by MySQL-server-5.5.24-1.linux2.6.i386
 /sbin/chkconfig is needed by MySQL-server-5.5.24-1.linux2.6.i386
 /usr/bin/perl is needed by MySQL-server-5.5.24-1.linux2.6.i386
 /usr/sbin/groupadd is needed by MySQL-server-5.5.24-1.linux2.6.i386
 /usr/sbin/useradd is needed by MySQL-server-5.5.24-1.linux2.6.i386
 coreutils is needed by MySQL-server-5.5.24-1.linux2.6.i386
 grep is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libaio.so.1 is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libaio.so.1(LIBAIO_0.1) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libaio.so.1(LIBAIO_0.4) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libc.so.6 is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libc.so.6(GLIBC_2.0) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libc.so.6(GLIBC_2.1) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libc.so.6(GLIBC_2.1.2) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libc.so.6(GLIBC_2.1.3) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libc.so.6(GLIBC_2.2) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libc.so.6(GLIBC_2.2.3) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libc.so.6(GLIBC_2.3) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libc.so.6(GLIBC_2.3.3) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libcrypt.so.1 is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libcrypt.so.1(GLIBC_2.0) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libdl.so.2 is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libdl.so.2(GLIBC_2.0) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libdl.so.2(GLIBC_2.1) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libm.so.6 is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libm.so.6(GLIBC_2.0) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libm.so.6(GLIBC_2.1) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libpthread.so.0 is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libpthread.so.0(GLIBC_2.0) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libpthread.so.0(GLIBC_2.1) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libpthread.so.0(GLIBC_2.2) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 libpthread.so.0(GLIBC_2.3.2) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 librt.so.1 is needed by MySQL-server-5.5.24-1.linux2.6.i386
 librt.so.1(GLIBC_2.2) is needed by MySQL-server-5.5.24-1.linux2.6.i386
 procps is needed by MySQL-server-5.5.24-1.linux2.6.i386

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu dpkg Edit question
Assignee:
No assignee Edit question
Solved by:
Sam_
Solved:
Last query:
Last reply:
Revision history for this message
Best Sam_ (and-sam) said :
#1
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

RPM packages are made for RedHat and related distributions...

The "alien" tool can convert rpm to deb but:

Please use a .deb package made for Ubuntu to install mysql or better use the mysql in the regular repositories, open a terminal and type:

sudo apt-get update
sudo apt-get install mysql-server

Revision history for this message
Sudarshan Vyas (sudarshan-vyas-11) said :
#3

Hey thnx a lot bro.. that really helped! :)

But still don't understand why rpm command has been obsoleted.. and is Alien just part of Ubuntu or can be used across any other linux platform?

Revision history for this message
Sudarshan Vyas (sudarshan-vyas-11) said :
#4

Thanks Sam_, that solved my question.

Revision history for this message
Sam_ (and-sam) said :
#5

Alien is cross-platform.
http://manpages.ubuntu.com/manpages/precise/en/man1/alien.1p.html

RPM hasn't been obsoleted it only suggests alien in order to avoid conflicts.
http://packages.ubuntu.com/precise/rpm

Since RPM isn't standard on Ubuntu (based on Debian not Fedora) which uses .deb package format it might avoid future trouble (e.g. upgrade) to use orig. pkg formats and repos.
https://en.wikipedia.org/wiki/Linux_package_formats