centos-yum错误: Cannot retrieve repository metadata (repomd.xml) for repository怎么解决

CentOS-yum错误: Cannot retrieve repository metadata (repomd.xml) for repository:xxxx

解决办法如下:

  1. 打开/etc/yum.repos.d/xxxxx.repo,对于本例来说就是/etc/yum.repost.d/xxx.repo

  2. 将项[xxx]中的enabled=1改为enabled=0

你可能感兴趣的:(linux,centos,linux)