Problem 1: package rubygem-qpid_proton-0.34.0-1.el8.x86_64 requires libruby.so.2.5()(64bit), but none of the providers can

Problem:
When i’m trying to update foreman version 2.5.0 to 2.5.1 and run dnf update following error has been shown,

[#] dnf update
Last metadata expiration check: 0:04:33 ago on Thu 29 Jul 2021 01:27:54 PM +06.
Error:
 **Problem 1:** package rubygem-qpid_proton-0.34.0-1.el8.x86_64 requires libruby.so.2.5()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package rubygem-qpid_proton-0.32.0-3.el8.x86_64
  - package ruby-libs-2.5.5-106.module_el8.3.0+571+bab7c6bc.x86_64 is filtered out by modular filtering
  - package ruby-libs-2.5.9-107.module_el8.4.0+847+ee687b6c.x86_64 is filtered out by modular filtering
 **Problem 2:** package foreman-2.5.2-1.el8.noarch requires rubygem(net-ssh) = 4.2.0, but none of the providers can be installed
  - cannot install both rubygem-net-ssh-5.1.0-2.el8.noarch and rubygem-net-ssh-4.2.0-3.el8.noarch
  - cannot install both rubygem-net-ssh-4.2.0-3.el8.noarch and rubygem-net-ssh-5.1.0-2.el8.noarch
  - cannot install the best update candidate for package rubygem-net-ssh-4.2.0-3.el8.noarch
  - cannot install the best update candidate for package foreman-2.5.2-1.el8.noarch
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Expected outcome:

Foreman and Proxy versions:

  • foreman-2.5.0-1.el8.noarch
  • katello-4.1.0-1.el8.noarch

Foreman and Proxy plugin versions:

Distribution and version:
CentOS Linux release 8.4.2105

Other relevant data:

Don’t update. You are updating to 2.5.2 with Katello 4.1.1. You need to switch pulpcore to 3.14 in the process of that. There is some serious bugs in Katello 4.1.1 which cause all kinds of issues. Wait for 4.1.2! It should be available soon.

It also seems as if you have enabled EPEL 8. For instance, rubygem-net-ssh-5.1.0-2.el8.noarch is from EPEL8. You cannot use EPEL 8. It’s not supported.

1 Like

Thanks for your solution, as you said i’ll wait for Katello 4.1.2. Also do I need to disable EPEL8 repo for avoid packages conflicting/dependency issue?

[#] dnf repolist
repo id                             repo name
appstream                           CentOS Linux 8 - AppStream
baseos                              CentOS Linux 8 - BaseOS
epel                                Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                        Extra Packages for Enterprise Linux Modular 8 - x86_64
extras                              CentOS Linux 8 - Extras
foreman                             Foreman 2.5
foreman-plugins                     Foreman plugins 2.5
katello                             Katello 4.1
katello-candlepin                   Candlepin: an open source entitlement management system.
powertools                          CentOS Linux 8 - PowerTools
pulpcore                            pulpcore: Fetch, Upload, Organize, and Distribute Software Packages.
puppet6                             Puppet 6 Repository el 8 - x86_64

Can you please guide me which repo I should disable to avoid error?

You need the repositories listed in the installation docs: https://docs.theforeman.org/2.5/Installing_Server_on_Red_Hat/index-katello.html#repositories-centos-8

In addition to the standard CentOS 8 appstream and baseos, of course.

So epel, epel-modular, extras seem to be your own additions.

The ansible repository is also missing, according to the docs, unless you have fully disabled all ansible support in your installation…

1 Like

No I didn’t disable Ansible repository by myself. So I need to enable Ansible repository.

Current Repolist,

[#] dnf repolist
repo id                             repo name
appstream                           CentOS Linux 8 - AppStream
baseos                              CentOS Linux 8 - BaseOS
centos-ansible-29                   CentOS Configmanagement SIG - ansible-29
foreman                             Foreman 2.5
foreman-plugins                     Foreman plugins 2.5
katello                             Katello 4.1
katello-candlepin                   Candlepin: an open source entitlement management system.
powertools                          CentOS Linux 8 - PowerTools
pulpcore                            pulpcore: Fetch, Upload, Organize, and Distribute Software Packages.
puppet6                             Puppet 6 Repository el 8 - x86_64

Still showing following error,

[#] dnf update
CentOS Configmanagement SIG - ansible-29                                                   1.9 MB/s | 1.8 MB     00:00
Last metadata expiration check: 0:00:01 ago on Thu 29 Jul 2021 04:40:28 PM +06.
Error:
 Problem 1: package foreman-installer-katello-1:2.5.2-3.el8.noarch conflicts with python3-pulpcore < 3.14 provided by python3-pulpcore-3.11.2-1.el8.noarch
  - cannot install the best update candidate for package python3-pulpcore-3.11.2-1.el8.noarch
  - cannot install the best update candidate for package foreman-installer-katello-1:2.5.0-1.el8.noarch
 Problem 2: problem with installed package python3-pulpcore-3.11.2-1.el8.noarch
  - package foreman-installer-katello-1:2.5.2-3.el8.noarch conflicts with python3-pulpcore < 3.14 provided by python3-pulpcore-3.11.2-1.el8.noarch
  - package katello-4.1.1-1.el8.noarch requires foreman-installer-katello, but none of the providers can be installed
  - package foreman-installer-katello-1:2.5.0-1.el8.noarch requires foreman-installer = 1:2.5.0-1.el8, but none of the providers can be installed
  - package foreman-installer-katello-1:2.5.0-0.4.rc2.el8.noarch requires foreman-installer = 1:2.5.0-0.4.rc2.el8, but none of the providers can be installed
  - package foreman-installer-katello-1:2.5.0-0.4.rc3.el8.noarch requires foreman-installer = 1:2.5.0-0.4.rc3.el8, but none of the providers can be installed
  - package foreman-installer-katello-1:2.5.1-1.el8.noarch requires foreman-installer = 1:2.5.1-1.el8, but none of the providers can be installed
  - package foreman-installer-katello-1:2.5.2-1.el8.noarch requires foreman-installer = 1:2.5.2-1.el8, but none of the providers can be installed
  - cannot install both foreman-installer-1:2.5.2-3.el8.noarch and foreman-installer-1:2.5.0-1.el8.noarch
  - cannot install both foreman-installer-1:2.5.2-3.el8.noarch and foreman-installer-1:2.5.0-0.4.rc2.el8.noarch
  - cannot install both foreman-installer-1:2.5.2-3.el8.noarch and foreman-installer-1:2.5.0-0.4.rc3.el8.noarch
  - cannot install both foreman-installer-1:2.5.2-3.el8.noarch and foreman-installer-1:2.5.1-1.el8.noarch
  - cannot install both foreman-installer-1:2.5.2-3.el8.noarch and foreman-installer-1:2.5.2-1.el8.noarch
  - cannot install the best update candidate for package katello-4.1.0-1.el8.noarch
  - cannot install the best update candidate for package foreman-installer-1:2.5.0-1.el8.noarch

You have to update the foreman and katello release repo rpms. See step 8 in the upgrade docs: Upgrading and Updating Foreman server

Of course, adjusted for CentOS 8 in your case. Or take the URLs from the installation docs for CentOS 8.

It looks like you don’t have the Ruby 2.5 module enabled. Perhaps you have followed the nightly docs and enabled Ruby 2.7?

No, I didn’t follow nightly docs, but as per documentation of installation foreman 2.5 I enabled ruby 2.7,

URL: Foreman :: Quickstart

After you have updated katello-repos, and disabled EPEL, does yum update work?

only yum update not works but yum update --nobest works.

That is kind of odd. Can you please post the output of “dnf repolist -v” which contains the exact repositories you are using.

Also the exact output of “dnf update” you seeing now?

Can you paste the latest output (ensure a yum clean all)?

[#] dnf repolist -v
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync
DNF version: 4.4.2
cachedir: /var/cache/dnf
Last metadata expiration check: 0:00:02 ago on Sun 01 Aug 2021 09:52:58 AM +06.
Repo-id            : appstream
Repo-name          : CentOS Linux 8 - AppStream
Repo-revision      : 8.4.2105
Repo-distro-tags      : [cpe:/o:centos:centos:8]:  , 8, C, O, S, e, n, t
Repo-updated       : Fri 30 Jul 2021 05:52:33 PM +06
Repo-pkgs          : 6,452
Repo-available-pkgs: 5,493
Repo-size          : 10 G
Repo-mirrors       : http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock
Repo-baseurl       : http://mirror.xeonbd.com/centos/8.4.2105/AppStream/x86_64/os/ (9 more)
Repo-expire        : 172,800 second(s) (last: Sun 01 Aug 2021 09:52:52 AM +06)
Repo-filename      : /etc/yum.repos.d/CentOS-Linux-AppStream.repo

Repo-id            : baseos
Repo-name          : CentOS Linux 8 - BaseOS
Repo-revision      : 8.4.2105
Repo-distro-tags      : [cpe:/o:centos:centos:8]:  , 8, C, O, S, e, n, t
Repo-updated       : Fri 30 Jul 2021 05:52:14 PM +06
Repo-pkgs          : 1,911
Repo-available-pkgs: 1,909
Repo-size          : 1.9 G
Repo-mirrors       : http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=BaseOS&infra=stock
Repo-baseurl       : http://mirror.xeonbd.com/centos/8.4.2105/BaseOS/x86_64/os/ (9 more)
Repo-expire        : 172,800 second(s) (last: Sun 01 Aug 2021 09:52:53 AM +06)
Repo-filename      : /etc/yum.repos.d/CentOS-Linux-BaseOS.repo

Repo-id            : centos-ansible-29
Repo-name          : CentOS Configmanagement SIG - ansible-29
Repo-revision      : 1625054400
Repo-updated       : Wed 30 Jun 2021 06:00:00 PM +06
Repo-pkgs          : 96
Repo-available-pkgs: 96
Repo-size          : 394 M
Repo-mirrors       : http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=configmanagement-ansible-29
Repo-baseurl       : http://mirror.dhakacom.com/centos/8.4.2105/configmanagement/x86_64/ansible-29/ (9 more)
Repo-expire        : 172,800 second(s) (last: Sun 01 Aug 2021 09:52:54 AM +06)
Repo-filename      : /etc/yum.repos.d/CentOS-SIG-ansible-29.repo

Repo-id            : foreman
Repo-name          : Foreman 2.5
Repo-revision      : 1626480172
Repo-updated       : Sat 17 Jul 2021 06:03:00 AM +06
Repo-pkgs          : 677
Repo-available-pkgs: 677
Repo-size          : 389 M
Repo-baseurl       : https://yum.theforeman.org/releases/2.5/el8/x86_64
Repo-expire        : 172,800 second(s) (last: Sun 01 Aug 2021 09:52:55 AM +06)
Repo-filename      : /etc/yum.repos.d/foreman.repo

Repo-id            : foreman-plugins
Repo-name          : Foreman plugins 2.5
Repo-revision      : 1627768265
Repo-updated       : Sun 01 Aug 2021 03:51:14 AM +06
Repo-pkgs          : 391
Repo-available-pkgs: 391
Repo-size          : 200 M
Repo-baseurl       : https://yum.theforeman.org/plugins/2.5/el8/x86_64
Repo-expire        : 172,800 second(s) (last: Sun 01 Aug 2021 09:52:55 AM +06)
Repo-filename      : /etc/yum.repos.d/foreman-plugins.repo

Repo-id            : katello
Repo-name          : Katello 4.1
Repo-revision      : 1627582886
Repo-updated       : Fri 30 Jul 2021 12:21:29 AM +06
Repo-pkgs          : 124
Repo-available-pkgs: 124
Repo-size          : 98 M
Repo-baseurl       : https://yum.theforeman.org/katello/4.1/katello/el8/x86_64/
Repo-expire        : 172,800 second(s) (last: Sun 01 Aug 2021 09:52:56 AM +06)
Repo-filename      : /etc/yum.repos.d/katello.repo

Repo-id            : katello-candlepin
Repo-name          : Candlepin: an open source entitlement management system.
Repo-revision      : 1627582898
Repo-updated       : Fri 30 Jul 2021 12:21:38 AM +06
Repo-pkgs          : 4
Repo-available-pkgs: 4
Repo-size          : 115 M
Repo-baseurl       : https://yum.theforeman.org/katello/4.1/candlepin/el8/x86_64/
Repo-expire        : 172,800 second(s) (last: Sun 01 Aug 2021 09:52:57 AM +06)
Repo-filename      : /etc/yum.repos.d/katello.repo

Repo-id            : powertools
Repo-name          : CentOS Linux 8 - PowerTools
Repo-revision      : 8.4.2105
Repo-distro-tags      : [cpe:/o:centos:centos:8]:  , 8, C, O, S, e, n, t
Repo-updated       : Fri 30 Jul 2021 05:52:39 PM +06
Repo-pkgs          : 2,225
Repo-available-pkgs: 1,599
Repo-size          : 3.8 G
Repo-mirrors       : http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=PowerTools&infra=stock
Repo-baseurl       : http://mirror.myfahim.com/centos/8.4.2105/PowerTools/x86_64/os/ (9 more)
Repo-expire        : 172,800 second(s) (last: Sun 01 Aug 2021 09:52:53 AM +06)
Repo-filename      : /etc/yum.repos.d/CentOS-Linux-PowerTools.repo

Repo-id            : pulpcore
Repo-name          : pulpcore: Fetch, Upload, Organize, and Distribute Software Packages.
Repo-revision      : 1627076446
Repo-updated       : Sat 24 Jul 2021 03:40:48 AM +06
Repo-pkgs          : 185
Repo-available-pkgs: 185
Repo-size          : 83 M
Repo-baseurl       : https://yum.theforeman.org/pulpcore/3.11/el8/x86_64/
Repo-expire        : 172,800 second(s) (last: Sun 01 Aug 2021 09:52:58 AM +06)
Repo-filename      : /etc/yum.repos.d/katello.repo

Repo-id            : puppet6
Repo-name          : Puppet 6 Repository el 8 - x86_64
Repo-revision      : 1627337191
Repo-updated       : Tue 27 Jul 2021 04:30:58 AM +06
Repo-pkgs          : 260
Repo-available-pkgs: 260
Repo-size          : 10 G
Repo-baseurl       : http://yum.puppetlabs.com/puppet6/el/8/x86_64
Repo-expire        : 172,800 second(s) (last: Sun 01 Aug 2021 09:52:58 AM +06)
Repo-filename      : /etc/yum.repos.d/puppet6.repo
Total packages: 12,325
[#] dnf update
Last metadata expiration check: 0:00:55 ago on Sun 01 Aug 2021 09:52:58 AM +06.
Error:
 Problem 1: package foreman-installer-katello-1:2.5.2-3.el8.noarch conflicts with python3-pulpcore < 3.14 provided by python3-pulpcore-3.11.2-1.el8.noarch
  - cannot install the best update candidate for package python3-pulpcore-3.11.2-1.el8.noarch
  - cannot install the best update candidate for package foreman-installer-katello-1:2.5.0-1.el8.noarch
 Problem 2: package rubygem-katello-4.1.2-1.el8.noarch requires rubygem(foreman-tasks-core) <= 0.3.5, but none of the providers can be installed
  - cannot install both rubygem-foreman-tasks-core-0.3.6-1.fm2_5.el8.noarch and rubygem-foreman-tasks-core-0.3.5-1.fm2_5.el8.noarch
  - cannot install the best update candidate for package rubygem-katello-4.1.0-1.el8.noarch
  - cannot install the best update candidate for package rubygem-foreman-tasks-core-0.3.5-1.fm2_5.el8.noarch
 Problem 3: problem with installed package python3-pulpcore-3.11.2-1.el8.noarch
  - package foreman-installer-katello-1:2.5.2-3.el8.noarch conflicts with python3-pulpcore < 3.14 provided by python3-pulpcore-3.11.2-1.el8.noarch
  - package katello-4.1.2-1.el8.noarch requires foreman-installer-katello, but none of the providers can be installed
  - package foreman-installer-katello-1:2.5.0-1.el8.noarch requires foreman-installer = 1:2.5.0-1.el8, but none of the providers can be installed
  - package foreman-installer-katello-1:2.5.0-0.4.rc2.el8.noarch requires foreman-installer = 1:2.5.0-0.4.rc2.el8, but none of the providers can be installed
  - package foreman-installer-katello-1:2.5.0-0.4.rc3.el8.noarch requires foreman-installer = 1:2.5.0-0.4.rc3.el8, but none of the providers can be installed
  - package foreman-installer-katello-1:2.5.1-1.el8.noarch requires foreman-installer = 1:2.5.1-1.el8, but none of the providers can be installed
  - package foreman-installer-katello-1:2.5.2-1.el8.noarch requires foreman-installer = 1:2.5.2-1.el8, but none of the providers can be installed
  - cannot install both foreman-installer-1:2.5.2-3.el8.noarch and foreman-installer-1:2.5.0-1.el8.noarch
  - cannot install both foreman-installer-1:2.5.2-3.el8.noarch and foreman-installer-1:2.5.0-0.4.rc2.el8.noarch
  - cannot install both foreman-installer-1:2.5.2-3.el8.noarch and foreman-installer-1:2.5.0-0.4.rc3.el8.noarch
  - cannot install both foreman-installer-1:2.5.2-3.el8.noarch and foreman-installer-1:2.5.1-1.el8.noarch
  - cannot install both foreman-installer-1:2.5.2-3.el8.noarch and foreman-installer-1:2.5.2-1.el8.noarch
  - cannot install the best update candidate for package katello-4.1.0-1.el8.noarch
  - cannot install the best update candidate for package foreman-installer-1:2.5.0-1.el8.noarch
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

After dnf clean all and dnf update same error shown as like my recent comment.

As I have pointed out a couple of times you need to read the docs and following the upgrade procedure.

As is mentioned in the docs Upgrading and Updating Foreman server

Step 8 mentions to update the repositories. Unfortunately, the upgrade docs are currently only written for EL7 thus you need to adjust them to EL8.

But you have to do that. You have to update the foreman and katello release repo rpms before updating anything else. Even a dnf update foreman-release katello-repos should be possible.

Really.

You have to.

If you don’t you are using the wrong repositories:

You are using pulpcore 3.11. That was used for 4.1.0. But not for 4.1.1 or 4.1.2. It’s not used in katello-repos-latest which should be 4.1.2.

Shortcuts don’t help. Not doing what you were told and then complaining you are still having the same errors is… kind of pointless…

Using the correct repositories is very important for every update. You cannot about without that.

Unfortunately, there are more issues with the current EL8 repositories: it’s missing the important pulp_rpm 3.14.0 and it also contains rubygem-foreman-tasks-core-0.3.6-1.fm2_5.el8.noarch which you cannot currently use because of dependency issues.

At first thanks for your kind information.

See, when I installed foreman I followed every steps but after upgraded to 2.5.0 this type of dependency error has been occurred though then I’ve followed official docs.

Well, you did not follow the docs.

If you do that or to 2.5.2 docs say to update katello-repos. If you update katello-repos you will be using pulpcore 3.14. You are still using pulpcore 3.11. So either you did not update katello-repos as the docs say or you have modified your katello.repo file (which you have never mentioned) and the update created a rpmnew file (which you have never mentioned) and which you have ignored.

So either way, if you have followed the docs for the update from 2.5.0 to 2.5.1 you would be using pulpcore 3.14 and not 3.11.

Please run

# rpm -q foreman-release katello-repos
foreman-release-2.5.2-1.el7.noarch
katello-repos-4.1.2-1.el7.noarch
# rpm -V foreman-release katello-repos

That will show what repo rpms you have actually installed and if they have been modified.

Okay, then i’m doing that and let you the update. Didn’t understand how I missed pulpcore. Extremely sorry for that.