정보 보안을 향한 항해

"Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again" 오류 해결 본문

OS 오류/Linux 오류

"Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again" 오류 해결

금홍자 2021. 10. 7. 11:44

원인

ca-bundles.crt가 너무 오래되면 생기는 오류이다

최신 버전의 CentOS로 업그레이드하지 않을 거라면

 

해결 방법은 epel.repo를 https 사용에서 http로 변경하는 것이다.

 

[root@centos1 centos]# yum -y update
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Update Process
Loading mirror speeds from cached hostfile
http://download.fedoraproject.org/pub/epel/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

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

# sudo sed -i 's/https/http/g' /etc/yum.repos.d/epel.repo

# yum clean all

# yum -y update 하면 해결된다