docker-ce.repo contains broken links for debug repositories (e.g. docker-ce-stable-debuginfo)
- [x] This is a bug report
- [x] I searched existing issues before opening this one
Expected behavior
From this page:
https://docs.docker.com/engine/install/centos/
Installing docker-ce via the repository on CentOS 8 Stream, this is expected to work:
dnf config-manage --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf install docker-ce docker-ce-cli containerd.io
Actual behavior
Running any dnf commands, such as dnf check-update, generates this error:
Errors during downloading metadata for repository 'docker-ce-stable-debuginfo':
- Status code: 404 for https://download.docker.com/linux/centos/8/debug-x86_64/stable/repodata/repomd.xml (IP: xx.xx.xx.xx) Error: Failed to download metadata for repo 'docker-ce-stable-debuginfo': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Steps to reproduce the behavior
Docker version is irrelevant for this issue because it's the docker-ce repository at download.docker.com that is broken, as described below.
Looking at the installed /etc/yum.repos.d./docker-ce.repo, baseurl for the repository docker-ce-stable-debuginfo is configured with this value:
baseurl=https://download.docker.com/linux/centos/$releasever/debug-$basearch/stable
Problem is, all CentOS 8 URLs, such as
https://download.docker.com/linux/centos/8/
, are missing the debug-x86_64 directory. Similar CentOS 7 URLs do have debug directories:
https://download.docker.com/linux/centos/7/
Forcing CentOS 7 repository works, but is stuck on an old version of docker-ce because of a containerd.io dependency.
+1.
I am running into this same issue today, as the top level https://download.docker.com/linux/centos/docker-ce.repo still lists these debug-x86_64 URLs as existing. Neither the new CentOS 9 repo nor the CentOS 8 repo contain the debug-x86_64 folder. This makes installing debug symbols for Docker related tech impossible on CentOS/RHEL!
If you use yum/dnf, you may workaround this issue by blacklisting the Docker repo by passing --disablerepo='docker*' --skip-broken to your (yum|dnf) debuginfo-install command.
We currently don't provide debug packages on download.docker.com. Some of the repositories contain old packages with debug enabled (e.g. https://download.docker.com/linux/centos/7/debug-x86_64/test/Packages/), which is why the entries are present in the repo-file, but disabled by default;
(the debuginfo and source repositories are disabled by default);
[docker-ce-stable-debuginfo]
name=Docker CE Stable - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/debug-$basearch/stable
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-stable-source]
name=Docker CE Stable - Sources
baseurl=https://download.docker.com/linux/centos/$releasever/source/stable
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
I don't think there's plans to provide those for new releases, but if needed you could build packages from source for testing.