Skip to content

Librepo error: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried #745

@Stricken1670

Description

@Stricken1670

Since upgrading the puppet-agent binary is too much work: puppetlabs/puppet#9512

And this module creates a repo entry like this:

%  cat /etc/yum.repos.d/pc_repo.repo 
[pc_repo]
name=Puppet Labs puppet8 Repository
baseurl=http://yum.puppet.com/puppet8/fedora/41/x86_64
enabled=True
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppet
  file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppet-20250406

Which results in:

# dnf update               
Updating and loading repositories:
 Puppet Labs puppet8 Repository                                                                                                                                                                                                                                100% |   6.2 KiB/s |   1.5 KiB |  00m00s
>>> Status code: 404 for http://yum.puppet.com/puppet8/fedora/41/x86_64/repodata/repomd.xml (IP: 10.10.8.1) - http://yum.puppet.com/puppet8/fedora/41/x86_64/repodata/repomd.xml - repomd.xml
>>> Status code: 404 for http://yum.puppet.com/puppet8/fedora/41/x86_64/repodata/repomd.xml (IP: 10.10.8.1) - http://yum.puppet.com/puppet8/fedora/41/x86_64/repodata/repomd.xml - repomd.xml
>>> Status code: 404 for http://yum.puppet.com/puppet8/fedora/41/x86_64/repodata/repomd.xml (IP: 10.10.8.1) - http://yum.puppet.com/puppet8/fedora/41/x86_64/repodata/repomd.xml - repomd.xml
>>> Status code: 404 for http://yum.puppet.com/puppet8/fedora/41/x86_64/repodata/repomd.xml (IP: 10.10.8.1) - http://yum.puppet.com/puppet8/fedora/41/x86_64/repodata/repomd.xml - repomd.xml
>>> Librepo error: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Repositories loaded.

Therefore, I'm requesting an elegant solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions