Friday, April 8, 2022

[SOLVED] How to fix: problem with conflicting request when installing ansible

Issue

whenever I try to install ansible doing: yum install ansible, after grabbing the epel-release repo, it throws an error saying:

Problem: conflicting requests
  - nothing provides python-setuptools needed by ansible-2.8.2-1.el7.noarch
  - nothing provides python-jinja2 needed by ansible-2.8.2-1.el7.noarch
  - nothing provides python-six needed by ansible-2.8.2-1.el7.noarch
  - nothing provides PyYAML needed by ansible-2.8.2-1.el7.noarch
  - nothing provides python2-cryptography needed by ansible-2.8.2-1.el7.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Does anyone have any idea what this means/what I can do?

EDIT: I am using redhat8


Solution

If you enable the epel, you don't need to disable the other repositories.

On my centos7, I find python-setuptools in the base repository:

yum info python-setuptools

gives

...
Repo        : base/7/x86_64
...

and the base repository is one of the base repositories present on centos7 by default.



Answered By - Chris Maes
Answer Checked By - David Marino (WPSolving Volunteer)