【疑难杂症】-CentOS-yum错误: Cannot retrieve repository metadata (repomd.xml) for repository:

在安装gitlab后再次使用yum install时总会报错,错误代码如下:

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

解决办法如下:

a. 打开/etc/yum.repos.d/xxxxx.repo,对于本例来说就是/etc/yum.repost.d/xxx.repo
b. 将项[xxx]中的enabled=1改为enabled=0


按照上面代码提示,我的是gitlab_gitlab-ce报错,所以要将gitlab_gitlab-ce.repo的[gitlab_gitlab-ce]中的enabled=0

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

将[gitlab_gitlab-ce]中的enabled=1改为enabled=0

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native