Programing

yum 오류“저장소에 대한 metalink를 검색 할 수 없습니다 : epel.

lottogame 2020. 9. 22. 20:58
반응형

yum 오류“저장소에 대한 metalink를 검색 할 수 없습니다 : epel. 경로를 확인하고 다시 시도하십시오.”ContextBroker 업데이트


yum install contextBroker 명령을 사용하여 Orion ContextBroker를 업데이트하려고합니다. 불행히도 다음과 같은 오류가 발생합니다.

로드 된 플러그인 : 가장 빠른 미러, 새로 고침 패키지 키트, 보안 로딩

캐시 된 호스트 파일의 미러 속도

오류 : 저장소 : epel에 대한 metalink를 검색 할 수 없습니다. 경로를 확인하고 다시 시도하십시오.

무엇이 잘못 될 수 있습니까?


난 둘 다 편집이 문제를 해결 /etc/yum.repos.d/epel.repo하고 /etc/yum.repos.d/epel-testing.repo모든 항목에서 시작 주석, 파일을 mirrorlist=...로 시작하는 모든 항목의 주석을 baseurl=....


ca-certificates 패키지를 업데이트하기 만하면됩니다. 그 전에 실패한 https로 모든 저장소를 비활성화하십시오. 그렇기 때문에 mirrorlist에 주석을 달거나 https 대신 http를 사용하는 솔루션도 작동합니다.

예를 들어 epel repo 만 비활성화해야하는 경우 :

yum --disablerepo=epel -y update  ca-certificates

이것은 또한 wget, curl 및 SSL 인증서를 사용하는 다른 모든 것에 도움이됩니다.


다음 명령을 사용하십시오.

sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo

또는 명령을 사용하십시오.

vi /etc/yum.repos.d/epel.repo

4 번 줄로 이동하여 URL을

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch

mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch

내 경우에는 주석 처리 mirrorlist및 din't baseurl작동하지 않는 항목이 없습니다 . 나는 문제가 페도라 파일 https내부에 있다는 것을 알았습니다 .repo. 나는에 가서 그것을 해결 /etc/yum.repository.d하고 모든 교체 httpshttp다른 .repo 파일에. 작동했습니다 !!


나는 이것이 효과가 있다고 생각한다. 나는 이것으로 내 문제를 해결했습니다.

$ sudo yum 모두 청소

$ sudo yum --disablerepo = "epel"nss 업데이트


인터넷 throw 프록시에 액세스하는지 확인한 다음 yum 구성에 인터넷 프록시 주소를 추가해야합니다.

더하다

proxy=http://ip:port to /etc/yum.conf

이 솔루션으로이 문제를 해결했습니다.

이 파일을 변경하면 /etc/yum.repos.d/epel.repo

mirrorlist =이 URL https를 http로 변경

baseurl =이 URL https를 http로 변경


epel-release를 설치 한 후이 메시지 / 오류가 나타날 수 있습니다. 빠른 수정은 SSL 인증서를 업데이트하는 것입니다.

yum -y upgrade ca-certificates

인증서를 업데이트하는 동안에도 위의 오류가 발생할 수 있습니다. 그렇다면 epel다음 명령을 사용하여 저장소를 비활성화하십시오 .

yum -y upgrade ca-certificates --disablerepo=epel 

인증서가 업데이트되면 yum을 정상적으로 사용할 수 있으며 epel repo도 정상적으로 작동합니다. 다른 리포지토리에 대해 동일한 오류가 발생하는 경우 --disablerepo=<repo-name>플래그 에 대해 이름을 입력하십시오 .


Note: use sudo if you're not the root user.


Walkthrough Steps

Running the following command will update the repo to use HTTP rather than HTTPS:

sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo

You should then be able to update with this command:

yum -y update

All of the above did not work for me, but a rebuild of the rpm database, with the following command, did:

sudo rpm --rebuilddb

Thanks all for the help.


Updating curl worked for us. Somehow yum uses curl for its transactions.

yum update curl --disablerepo=epel

For boxes that does not have internet access, you can remove epel repository:

yum remove epel-release --disablerepo=epel

This happened to me as I accidentally installed epel-release using rpm on a prod box.


I encountered the same issue even though the ca-certificates package is up-to-date. The mirror https://mirrors.fedoraproject.org/ is currently signed by DigiCert High Assurance EV Root CA which is included in my ca-bundle

$ grep -A 3 "DigiCert High" /etc/ssl/certs/ca-bundle.crt 
# DigiCert High Assurance EV Root CA
-----BEGIN CERTIFICATE-----
MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBs
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3

The reason why https connections failed in my case, was that system date was set to the year 2002 in which the DigiCert High Assurance EV Root CA is not (yet) valid.

$ date
Di 1. Jan 11:10:35 CET 2002

Changing the system time fixed the issue.


I solved it by going in /etc/yum.repository.d/. For my case i comment out mirrorlist and uncomenting entries with baseurl. as well as added sslverify=false.

https://serverfault.com/questions/637549/epel-repo-for-centos-6-causing-error


I've workaround this issue by changing the https entries in epel.repo file to http.


Changing the mirrorlist URL from https to http fixed the issue for me.


Fixed mine like this:

yum install elfutils-default-yama-scope-0.168-8.el7.noarch --disablerepo=epel
yum install nss-pem -disablerepo=epel
yum reinstall ca-certificates --disablerepo=epel
yum clean all
rm -rf /var/cache/yum
yum update`

None of these worked for me (I didn't even try the hacks like manually editing the repo file).

However it worked after a simple yum update -y

참고URL : https://stackoverflow.com/questions/26734777/yum-error-cannot-retrieve-metalink-for-repository-epel-please-verify-its-path

반응형