centos 7.1 - error repository

前端 未结 9 2237
失恋的感觉
失恋的感觉 2021-01-31 21:26

Hello I have download the minimal release of CENTOS 7 at this url link download ISO centos 7.x

All work correctly...the PING and the network is OK. I ping to external HO

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-31 21:58

    I had this problem in a company environment with MITM proxy after adding the EPEL repo with

    yum install epel-release
    

    This doesn't happen before (e.g. on yum update). I checked all answers and none of them fixed my problem. Figured out that the other repos use http by default, where epel use https:

    # grep mirror /etc/yum.repos.d/epel.repo
    metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch&infra=$infra&content=$contentdir
    metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch&infra=$infra&content=$contentdir
    metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch&infra=$infra&content=$contentdir
    

    So I copied our company root CA in the CentOS trust store and update it:

    cp /home/user/my-ca.crt /etc/pki/ca-trust/source/anchors/
    update-ca-trust
    

    After adding the cert, updating and installing packages from the EPEL repo works fine!

提交回复
热议问题