Bug 1395695 - dnf metalink provides wrong mirror URLs
Summary: dnf metalink provides wrong mirror URLs
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: distribution
Version: 24
Hardware: aarch64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Václav Pavlín
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-16 13:09 UTC by Christoph Müllner
Modified: 2016-11-16 16:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-16 16:20:50 UTC
Type: Bug


Attachments (Terms of Use)

Description Christoph Müllner 2016-11-16 13:09:57 UTC
Description of problem:

On my aarch64 machine (running Fedora 24 (upgraded from a Fedora 21 installation)) the installation of debuginfo
packages does not work, because the configured yum/dnf metalink provides wrong mirror URLs.

The metalink in use is:
http://mirrors.fedoraproject.org/metalink?repo=fedora-debug-24&arch=aarch64

It provides mirrors of the following style:
https://dl.fedoraproject.org/pub/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml

Expected (working) style would be:
https://dl.fedoraproject.org/pub/fedora-secondary/releases/24/Everything/aarch64/debug/tree/repodata/repomd.xml

A workaround is to comment the metalink line in /etc/yum.repos.d/fedora.repo and use this baseurl line in the [fedora-debuginfo] section:
baseurl=https://dl.fedoraproject.org/pub/fedora-secondary/releases/24/Everything/aarch64/debug/tree

How reproducible: simply install glibc debuginfo

dnf -v debuginfo-install glibc
cachedir: /var/cache/dnf
Loaded plugins: protected_packages, generate_completion_cache, builddep, copr, Query, debuginfo-install, system-upgrade, noroot, needs-restarting, config-manager, download, playground, reposync
DNF version: 1.1.10
enabling fedora-debuginfo repository
enabling updates-debuginfo repository
repo: using cache for: updates-debuginfo
not found deltainfo for: Fedora 24 - aarch64 - Updates - Debug
not found updateinfo for: Fedora 24 - aarch64 - Updates - Debug
error: Status code: 404 for https://pubmirror1.math.uh.edu/fedora-buffet/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml (https://pubmirror1.math.uh.edu/fedora-buffet/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml).
error: Status code: 404 for http://pubmirror1.math.uh.edu/fedora-buffet/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml (http://pubmirror1.math.uh.edu/fedora-buffet/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml).
error: Status code: 404 for https://dl.fedoraproject.org/pub/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml (https://dl.fedoraproject.org/pub/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml).
error: Status code: 404 for http://dl.fedoraproject.org/pub/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml (http://dl.fedoraproject.org/pub/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml).
Cannot download 'http://mirrors.fedoraproject.org/metalink?repo=fedora-debug-24&arch=aarch64': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried.
Error: Failed to synchronize cache for repo 'fedora-debuginfo'

This might be related to the issue found here:
https://pagure.io/fedora-infrastructure/issue/5394


Note You need to log in before you can comment on or make changes to this bug.