Cannot retrieve repository metadata (repomd.xml) for repository: base

JavaEE_202008發表於2020-12-26
  1. CentOS6.8 yum安裝報錯
    Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
  2. 解決方法
    1. 備份現有repo倉庫
      mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
    2. 使用阿里雲倉庫repo
      curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
    3. 更新yum
      yum clean all
      yum makecache
  3. 處理完yum 源問題,即可正常安裝

相關文章