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

来源:互联网 发布:sql数值 编辑:程序博客网 时间:2024/06/05 00:45

    在安装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

1 0
原创粉丝点击