CentOS8 Docker: “repomd.xml Parser Error: Parse Error At Line” After Enabling /etc/yum.repos.d/CentOS-Linux-ContinuousRelease.repo
I’m having trouble with dnf repos in a CentOS:8 Docker container after I enable the continuous release repo:
1. docker pull CentOS:8
2. docker run -it CentOS:8 bash -i
3. From Docker container:
* dnf install -y ‘dnf-command(config-manager)’ && dnf config-manager –enable cr
* dnf update
The update results in:
Failed to set locale, defaulting to C.UTF-8
CentOS Linux 8 – ContinuousRelease 43 kB/s | 8.3 kB 00:00
Error: Failed to download metadata for repo ‘cr’: repomd.xml parser error: Parse error at line: 66 (Opening and ending tag mismatch: meta line 0 and head
)
/etc/yum.repos.d/CentOS-Linux-ContinuousRelease.repo contains:
mirrorlist=http://mirrorlist.CentOS.org/?release=$releasever&arch=$basearch&repo=cr&infra=$infra
#baseurl=http://mirror.CentOS.org/$contentdir/$releasever/cr/$basearch/os/
If I switch these around by commenting out mirrorlist and uncommenting baseurl, it works.
Is this a problem with a repo mirror?
Recent Comments