Foreman-installer-1.22.0-1.el7.noarch (foreman)Requires: puppet-agent >= 5.5.8


foreman-installer-1.22.0-1.el7.noarch (foreman)
           Requires: puppet-agent >= 5.5.8

puppet-agent Version 5 is not part of the configured repos

Error: Package: 1:foreman-installer-1.22.0-1.el7.noarch (foreman)
           Requires: puppet-agent >= 5.5.8
           Installed: puppet-agent-1.10.14-1.el7.x86_64 (@puppetlabs-pc1)
               puppet-agent = 1.10.14-1.el7
           Available: puppet-agent-1.0.0-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.0.0-1.el7
           Available: puppet-agent-1.0.1-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.0.1-1.el7
           Available: puppet-agent-1.1.0-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.1.0-1.el7
           Available: puppet-agent-1.1.1-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.1.1-1.el7
           Available: puppet-agent-1.2.0-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.2.0-1.el7
           Available: puppet-agent-1.2.1-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.2.1-1.el7
           Available: puppet-agent-1.2.2-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.2.2-1.el7
           Available: puppet-agent-1.2.4-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.2.4-1.el7
           Available: puppet-agent-1.2.5-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.2.5-1.el7
           Available: puppet-agent-1.2.6-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.2.6-1.el7
           Available: puppet-agent-1.2.7-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.2.7-1.el7
           Available: puppet-agent-1.3.0-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.3.0-1.el7
           Available: puppet-agent-1.3.1-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.3.1-1.el7
           Available: puppet-agent-1.3.2-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.3.2-1.el7
           Available: puppet-agent-1.3.4-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.3.4-1.el7
           Available: puppet-agent-1.3.5-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.3.5-1.el7
           Available: puppet-agent-1.3.6-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.3.6-1.el7
           Available: puppet-agent-1.4.0-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.4.0-1.el7
           Available: puppet-agent-1.4.1-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.4.1-1.el7
           Available: puppet-agent-1.4.2-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.4.2-1.el7
           Available: puppet-agent-1.5.0-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.5.0-1.el7
           Available: puppet-agent-1.5.1-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.5.1-1.el7
           Available: puppet-agent-1.5.2-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.5.2-1.el7
           Available: puppet-agent-1.5.3-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.5.3-1.el7
           Available: puppet-agent-1.6.0-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.6.0-1.el7
           Available: puppet-agent-1.6.1-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.6.1-1.el7
           Available: puppet-agent-1.6.2-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.6.2-1.el7
           Available: puppet-agent-1.7.0-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.7.0-1.el7
           Available: puppet-agent-1.7.1-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.7.1-1.el7
           Available: puppet-agent-1.7.2-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.7.2-1.el7
           Available: puppet-agent-1.8.0-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.8.0-1.el7
           Available: puppet-agent-1.8.1-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.8.1-1.el7
           Available: puppet-agent-1.8.2-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.8.2-1.el7
           Available: puppet-agent-1.8.3-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.8.3-1.el7
           Available: puppet-agent-1.9.0-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.9.0-1.el7
           Available: puppet-agent-1.9.1-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.9.1-1.el7
           Available: puppet-agent-1.9.2-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.9.2-1.el7
           Available: puppet-agent-1.9.3-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.9.3-1.el7
           Available: puppet-agent-1.10.0-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.10.0-1.el7
           Available: puppet-agent-1.10.1-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.10.1-1.el7
           Available: puppet-agent-1.10.2-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.10.2-1.el7
           Available: puppet-agent-1.10.3-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.10.3-1.el7
           Available: puppet-agent-1.10.4-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.10.4-1.el7
           Available: puppet-agent-1.10.5-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.10.5-1.el7
           Available: puppet-agent-1.10.6-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.10.6-1.el7
           Available: puppet-agent-1.10.7-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.10.7-1.el7
           Available: puppet-agent-1.10.8-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.10.8-1.el7
           Available: puppet-agent-1.10.9-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.10.9-1.el7
           Available: puppet-agent-1.10.10-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.10.10-1.el7
           Available: puppet-agent-1.10.12-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.10.12-1.el7
           Available: puppet-agent-1.10.13-1.el7.x86_64 (puppetlabs-pc1)
               puppet-agent = 1.10.13-1.el7
 You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

[root@katello yum.repos.d]# rpm -qf puppetlabs-pc1.repo 

[root@katello yum.repos.d]# cat puppetlabs-pc1.repo 
name=Puppet Labs PC1 Repository el 7 - $basearch
keepcache = 0

name=Puppet Labs PC1 Repository el 7 - Source

Expected outcome:

change content or change url to repo

Foreman and Proxy versions:

Foreman and Proxy plugin versions:

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)


Short update: [Errno 14] curl#56 - “Recv failure: Connection reset by peer” ] 0.0 B/s | 0 B --:–:-- ETA
Trying other mirror. [Errno 14] curl#56 - “Recv failure: Connection reset by peer”
Trying other mirror.

One of the configured repositories failed (Puppet Labs PC1 Repository el 7 - x86_64),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=puppetlabs-pc1 ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable puppetlabs-pc1
        subscription-manager repos --disable=puppetlabs-pc1

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice

        yum-config-manager --save --setopt=puppetlabs-pc1.skip_if_unavailable=true

failure: repodata/59d691394496b27d0563226ea499f743eca7a48c-primary.sqlite.bz2 from puppetlabs-pc1: [Errno 256] No more mirrors to try. [Errno 14] curl#56 - “Recv failure: Connection reset by peer”
[root@katello yum.repos.d]#


PC1 is Puppet 4, you have to use the Puppet 5 repo.
For the upgrade follow Upgrading from Puppet 4 to 5 - Foreman

1 Like