Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and tr

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

错误:Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again

   解决办法如下:
    a. 打开/etc/yum.repos.d/epel.repo,对于本例来说就是/etc/yum.repost.d/epel.repo
    b. 将项[xxx]中的enabled=1改为enabled=0

Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and tr_第1张图片

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

   

cd /etc/yum.repos.d
vim epel.repo
 
将[epel]中的enabled=1改为enabled=0

你可能感兴趣的:(linux搭建常见问题)