Foreman installer failing with package dependencies CentOS Linux release 7.6.1810 (Core)

**sudo yum -y install foreman-installer 
Error: Package: policycoreutils-python-2.5-22.el7.x86_64 (base)
           Requires: policycoreutils = 2.5-22.el7
           Installed: policycoreutils-2.5-29.el7.x86_64 (@anaconda)
               policycoreutils = 2.5-29.el7
           Available: policycoreutils-2.5-22.el7.x86_64 (base)
               policycoreutils = 2.5-22.el7
Error: Package: glibc-2.17-222.el7.i686 (base)
           Requires: glibc-common = 2.17-222.el7
           Installed: glibc-common-2.17-260.el7.x86_64 (@anaconda)
               glibc-common = 2.17-260.el7
           Available: glibc-common-2.17-222.el7.x86_64 (base)
               glibc-common = 2.17-222.el7
Error: Package: audit-libs-python-2.8.1-3.el7.x86_64 (base)
           Requires: audit-libs(x86-64) = 2.8.1-3.el7
           Installed: audit-libs-2.8.4-4.el7.x86_64 (@anaconda)
               audit-libs(x86-64) = 2.8.4-4.el7
           Available: audit-libs-2.8.1-3.el7.x86_64 (base)
               audit-libs(x86-64) = 2.8.1-3.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest** 

Sucessful Install

1.20

Foreman and Proxy plugin versions:

Other relevant data:
Unable to move past the installer step due to dependencies. I’ve successfully installed all the correct repos in the Centos 7 procedure in this link. Foreman :: Manual

logs

This is on a fresh Centos7 install with all the latest updates. FYI

Hello,

On my system if I can see then I do have latest packages of foreman*,

rpm -qa foreman*
foreman-release-scl-7-2.el7.noarch
foreman-debug-1.20.1-1.el7.noarch
foreman-selinux-1.20.1-1.el7.noarch
foreman-installer-1.20.1-1.el7.noarch
foreman-1.20.1-1.el7.noarch

Similarly, dependency issues you are getting for that I also have packages installed which are installed on your system,

rpm -qa| grep policycoreutils
policycoreutils-python-2.5-29.el7.x86_64
policycoreutils-2.5-29.el7.x86_64

rpm -qa| grep glibc
glibc-2.17-260.el7.x86_64
glibc-common-2.17-260.el7.x86_64

Can you try,

yum clean all
rm -rf /var/cache/yum/*
yum update -y
yum -y install foreman-installer

Thanks for your repsonse!
Here are the outputs of the commands

rpm -qa foreman*
foreman-release-1.20.1-1.el7.noarch

rpm -qa| grep policycoreutils
policycoreutils-2.5-29.el7.x86_64

rpm -qa| grep glibc
glibc-common-2.17-260.el7.x86_64
glibc-2.17-260.el7.x86_64

Hello,

Have you tried below steps ?

yum clean all
rm -rf /var/cache/yum/*
yum update -y
yum -y install foreman-installer

if you are still facing issue then can you post below details which should help to know where it could be failing,

yum repolist

Full output of below command,

yum -y install foreman-installer -d 10

yum repolist

Loading mirror speeds from cached hostfile
repo id repo name status
base/7/x86_64 CentOS-7 - Base 9,911
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 12,623
foreman/x86_64 Foreman 1.20 552
foreman-plugins/x86_64 Foreman plugins 1.20 271
foreman-rails/x86_64 Rails SCL for Foreman 1.20 59
puppet5/x86_64 Puppet 5 Repository el 7 - x86_64 113
update/7/x86_64 CentOS-7 - Updates 1,004

output.log (96.4 KB)

Hello,

There are few things here,

  1. On my system I do see policycoreutils-python already installed which is not the case with your system, install this package in advance,

yum install policycoreutils-python.x86_64 2.5-29.el7 -y

  1. Put multilib_policy=best in /etc/yum.conf and then run installer as below,

yum clean all
rm -rf /var/cache/yum/*
yum update -y
yum -y install foreman-installer

Tell us if this helps you.

Same error
Found and removing 0 unneeded dependencies
Error: Package: policycoreutils-python-2.5-22.el7.x86_64 (base)
Requires: policycoreutils = 2.5-22.el7
Installed: policycoreutils-2.5-29.el7.x86_64 (@anaconda)
policycoreutils = 2.5-29.el7
Available: policycoreutils-2.5-22.el7.x86_64 (base)
policycoreutils = 2.5-22.el7
Error: Package: glibc-2.17-222.el7.i686 (base)
Requires: glibc-common = 2.17-222.el7
Installed: glibc-common-2.17-260.el7.x86_64 (@anaconda)
glibc-common = 2.17-260.el7
Available: glibc-common-2.17-222.el7.x86_64 (base)
glibc-common = 2.17-222.el7
Error: Package: audit-libs-python-2.8.1-3.el7.x86_64 (base)
Requires: audit-libs(x86-64) = 2.8.1-3.el7
Installed: audit-libs-2.8.4-4.el7.x86_64 (@anaconda)
audit-libs(x86-64) = 2.8.4-4.el7
Available: audit-libs-2.8.1-3.el7.x86_64 (base)
audit-libs(x86-64) = 2.8.1-3.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Hello,
I see that the problematic packages you have installed seem to come from the @anaconda “repo” - which isn’t really a repo but rather indicates packages that were installed by anaconda when the system was provisioned. Perhaps you are using a centos image that contains newer packages than those shipped in the base repo?
I would suggest trying to downgrade all these packages to the version available in the base repo and trying again.

I tried downgrading but I’m getting other dependency issues. May just delete these vm’s and downgrade to Centos 7.5.

Actually, looking at the centos repo (http://mirror.centos.org/centos/7.6.1810/os/x86_64/Packages/) looks like the packages anaconda installed are the latest, but for some reason your base repo contains older versions. are you sure that repo is pointing to the correct centos repo? perhaps you have an out of date mirror that is causing the conflicts?

All the versions I have installed are the latest if you look at the actual installed version. Our mirror is updated hourly. I double checked and it looks up to date. Thanks for your help!

@tbrisker, you were right. I copied the CentOS-Base.repo from a VM at my house and all is installed and working. Thanks for your help!

1 Like