Knowledgebase

404 error on TuxCare php-els repo: Failed to download metadata for repo 'php-els': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried Print

  • 0

Symptom

When attempting to update packages, you receive errors that resemble the following:

Errors during downloading metadata for repository 'php-els':
- Status code: 404 for https://ipv4.repo.tuxcare.eu-hel.cl-mirror.net/alt-php-els//rpm/el/10/stable/x86_64/repodata/repomd.xml (IP: 157.180.22.9)
Error: Failed to download metadata for repo 'php-els': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

 

Cause

This error occurs when the TuxCare ELS PHP repo is installed, and the server is trying to resolve the packages using IPv6. 

 

Resolution

Setting DNF to update using IPv4 servers instead will resolve the issue:

  1. Access your server using SSH as the 'root' user.
  2. Using your preferred text editor, open the DNF configuration file here:

    /etc/dnf/dnf.conf

  3. Add the following to it's own line:

    ip_resolve=4

  4. Save the file and rebuild the DNF cache:

    dnf clean all && dnf makecache


Was this answer helpful?
Back

Send Message