Ask Your Question

dnf nothing provides sh-utils error

asked 2018-07-02 12:41:07 -0600


I am in the process of switching from ubuntu to fedora and as part of my work I need to have the hadoop binaries available locally.

I added the RHEL repostiory (closest that they have available) from cloudera as described here:

but when I do a

sudo dnf install hadoop --best

I only get

 Problem: conflicting requests
  - nothing provides sh-utils needed by hadoop-2.6.0+cdh5.15.0+2783-1.cdh5.15.0.p0.52.el7.x86_64

In fedora, sh-utils is actually part of coreutils and that is installed. So my guess is that the installation would actually work fine. Given that I need to pull from that particular repository and probably cannot get them to fix the dependency, what is the best way to get dnf to install this without complaining?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2018-11-17 21:42:09 -0600

carlwgeorge gravatar image

You should not expect RPMs built for RHEL to work on Fedora. If you have to use the cloudera repo, then I suggest using it on RHEL or CentOS.

If for some reason you still want to continue down this path of forcing the RHEL RPMs to install Fedora (which to be clear is a bad idea), you could create your own fake sh-utils RPM that requires coreutils. That would satisfy the hadoop dependency. That will only address this one particular issue, and you are likely to find more problems as you continue. Good luck!

edit flag offensive delete link more

answered 2018-11-17 23:05:22 -0600

aeperezt gravatar image

updated 2018-11-17 23:08:09 -0600

You should not use EPEL (aka centos or RHEL) repositories on Fedora, it will break it, because the will have dependencies to libraries on older version that Fedora provides, you will always end with a broken dependencies. Your best option is to use a virtual machine with Centos or docker installation of hadoop, if the docker image do not works for you, you should build your own docker with centos and cloudera hadoop installation.

edit flag offensive delete link more

answered 2018-07-03 02:44:52 -0600

villykruse gravatar image

Maybe you could try the fedora version:

dnf list \*hadoop\*
Last metadata expiration check: 5 days, 14:43:38 ago on Wed 27 Jun 2018 18:59:15 CEST.
Available Packages
hadoop-client.noarch               2.7.3-7.fc28     fedora
hadoop-common.noarch               2.7.3-7.fc28     fedora
hadoop-common-native.x86_64        2.7.3-7.fc28     fedora
hadoop-devel.i686                  2.7.3-7.fc28     fedora
hadoop-devel.x86_64                2.7.3-7.fc28     fedora
hadoop-hdfs.noarch                 2.7.3-7.fc28     fedora
hadoop-hdfs-fuse.x86_64            2.7.3-7.fc28     fedora
hadoop-httpfs.noarch               2.7.3-7.fc28     fedora
hadoop-mapreduce.noarch            2.7.3-7.fc28     fedora
hadoop-mapreduce-examples.noarch   2.7.3-7.fc28     fedora
hadoop-maven-plugin.noarch         2.7.3-7.fc28     fedora
hadoop-tests.noarch                2.7.3-7.fc28     fedora
hadoop-yarn.noarch                 2.7.3-7.fc28     fedora
hadoop-yarn-security.x86_64        2.7.3-7.fc28     fedora
edit flag offensive delete link more


I want the local installation mirror the production environment so it has to be cloudera.

cvaliente gravatar imagecvaliente ( 2018-07-03 14:46:27 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-07-02 12:41:07 -0600

Seen: 184 times

Last updated: Nov 17 '18