Error: Failed to download metadata for repo 'bintray--resin-io-redhat': Cannot download repomd.xml: Cannot download repodata/repomd.xml

For a while I haven’t been able to run dnf update anymore:

fedora@localhost:~$ sudo dnf -v update
[sudo] password for fedora: 
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync, system-upgrade
DNF version: 4.2.15
cachedir: /var/cache/dnf
Unknown configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Unknown configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Unknown configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
repo: using cache for: chenxiaolong-bumblebee
chenxiaolong-bumblebee: using metadata from Mon 16 Dec 2019 05:39:14 PM CET.
repo: downloading from remote: bintray--resin-io-redhat
error: Status code: 404 for https://resin-io.bintray.com/redhat/repodata/repomd.xml (IP: 52.29.129.139) (https://resin-io.bintray.com/redhat/repodata/repomd.xml).                                                             [            ===                                                                                                                                                                                                           ] ---  B/s |   0  B     --:-- ETA
error: Status code: 404 for https://resin-io.bintray.com/redhat/repodata/repomd.xml (IP: 52.29.129.139) (https://resin-io.bintray.com/redhat/repodata/repomd.xml).                                                             [               ===                                                                                                                                                                                                        ] 134  B/s |  41  B     --:-- ETA
error: Status code: 404 for https://resin-io.bintray.com/redhat/repodata/repomd.xml (IP: 52.29.129.139) (https://resin-io.bintray.com/redhat/repodata/repomd.xml).
error: Status code: 404 for https://resin-io.bintray.com/redhat/repodata/repomd.xml (IP: 52.29.129.139) (https://resin-io.bintray.com/redhat/repodata/repomd.xml).
bintray--resin-io-redhat                                                                                                                                                                                                                                                                                                                                                                                                                                     22  B/s |  41  B     00:01    
Error: Failed to download metadata for repo 'bintray--resin-io-redhat': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

/etc/dnf/dnf.conf:

fedora@localhost:~$ cat /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
throttle=999500k
ip_resolve=4

I’ve tried:

  • running sudo dnf clean all
  • setting zchunk=False in /etc/dnf/dnf.conf
  • setting max_parallel_downloads=2 in /etc/dnf/dnf.conf
  • setting fastestmirror=false in /etc/dnf/dnf.conf

(as suggested here)

None of those changes fixed it for me.

could you please do a simple:

dnf clean all
sudo dnf clean all
sudo dnf upgrade

Regards.,

As I said, I already did the dnf clean. dnf upgrade instead of dnf update didn’t change the output either.

Well, https://resin-io.bintray.com/ can’t be accessed so it isn’t surprising that dnf is unable to download metadata. There’s not much dnf or Fedora can do here. It has nothing to do with your dnf configuration.

Please contact the maintainers of the third party (non Fedora) repository that you are trying to use and ask them to fix their repository. Maybe it has moved somewhere else?

1 Like

Thank you!
Disabling it by setting enabled=0 in /etc/yum.repos.d/bintray-resin-io-redhat.repo fixed it for me.

2 Likes

OK, that disables the repo, though. So, please keep in mind that you will not receive updates or new packages from this third party provider unless you find out what the new repository URL is.

1 Like

Fair point. I used that repository to install “Etcher”. Looking at https://github.com/balena-io/etcher#redhat-rhel-and-fedora-based-package-repository-gnulinux-x86x64 it seems there is a new repository now. So the actual fix would be to remove the old repo and add the new one.

(untested)

# remove old etcher and repo
sudo dnf remove -y etcher-electron
sudo rm /etc/yum.repos.d/bintray-resin-io-redhat.repo
sudo dnf clean all
sudo dnf makecache

# install new etcher and repo
sudo wget https://balena.io/etcher/static/etcher-rpm.repo -O /etc/yum.repos.d/etcher-rpm.repo
sudo yum install -y balena-etcher-electron
1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.