반응형
[Linux] Yum Error 관련 "Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again"
기록은 기억을 지배한다는 말 진짜이겠거니 하고 오늘도 끄적 거린다.
centos 6.x에서 특정 PKG를 설치하려는데 정상적으로 동작을 하지 않았다.
환경 : Centos 6.x_x86_64
증상 : yum실행 시 "Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again" 출력 후 yum install 불가
증상
# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
조치
baseurl부분의 주석을 해제하고 mirrorlist 부분을 주석처리하였다.
# cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch ## 주석해제
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch ## 주석처리
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug ## 주석해제
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch ## 주석처리
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS ## 주석해제
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch ## 주석처리
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
확인
# yum clean all
[epel]
Loaded plugins: fastestmirror, refresh-packagekit, security
Cleaning repos: base epel extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.kakao.com
* extras: mirror.kakao.com
* updates: mirror.kakao.com
base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:00
epel | 3.2 kB 00:00
epel/primary | 3.2 MB 00:01
epel 12520/12520
extras | 3.4 kB 00:00
extras/primary_db | 25 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 1.2 MB 00:00
repo id repo name status
base CentOS-6 - Base 6,713
epel Extra Packages for Enterprise Linux 6 - x86_64 12,520
extras CentOS-6 - Extras 31
updates CentOS-6 - Updates 125
repolist: 19,389
mirrorlist에서 정상적으로 가져오지 못해 발생하는 것으로 판단된다.
반응형
'운영체제 > RHEL&CENTOS' 카테고리의 다른 글
[Centos/RHEL] Centos7 minimal OS에 xwindow 설정 (0) | 2019.06.24 |
---|---|
[Centos/RHEL] eth0 으로 들어 데이터 동일 인터페이스 내보내기를 위한 routing 설정 (0) | 2019.06.24 |
[Linux] KVM(for Kernel-based Virtual Machine) (1) - Install (0) | 2019.06.24 |
[Linux] centos/rhel 7 Bonding 설정 (0) | 2019.06.19 |
[Linux] HP DL380G5 P400 array controller에 Cent/RHEL 7 설치 하기 (0) | 2019.02.28 |