Tag Archives: CentOS Yum error

CentOS Yum error: cannot retrieve repository metadata (repomd.xml) for repository:

An error is always reported when using Yum Install again after installing Gitlab. The error code is as follows:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: gitlab_gitlab-ce. Please verify its path and try again

the solution is as follows:

A. open/etc/yum. Repos. D/XXXXX. Repo, for this example is the/etc/yum. Repost. D/XXX. ‘
b. Change the term ‘enabled=1’ in [XXX] to ‘enabled=0

As indicated in the code above, my error is gitlab_gitlab-CE, so the enabled=0 in gitlab_gitlab-ce-repo’s [gitlab_gitlab-CE]

[root@web1 ~]# cd /etc/yum.repos.d
[root@web1 yum.repos.d]# vim gitlab_gitlab-ce.repo

Set enabled=1 to enabled=0 in [gitlab_gitlab-ce]