rhel6.2 epel 소스 가져오기,yum 오류 해결

3149 단어 오보yumEPEL
rhel6.2 epel 소스 가져오기,yum 오류 해결
운영 체제:rhel6.2 64비트
[root@localhost~] # yum repolist # 로컬 yum 소스가 올바른지 확인
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
repo id                                         repo name                                                                status
rhel62                                          Red Hat Enterprise Linux 6.2 x64                                         3,596
repolist: 3,596
[root@localhost ~]# rpm -Uvh http://mirrors.hustunique.com/epel/6/x86_64/epel-release-6-8.noarch.rpm# epel 소스 가져오기
[root@localhost yum.repos.d]# ls
epel.repo  epel-testing.repo  redhat.repo  rhel-source.repo
[root@localhost yum.repos.d]# yum install -y  ansible
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
[root@localhost yum.repos.d]# yum repolist
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
이상의 오류 분석을 통해 epel 원본 설정 파일 epel을 알 수 있습니다.리포에서 PATH가 문제가 있을 거예요.
해결 방법:baseurl을 열고mirrorlist를 닫습니다
[root@localhost yum.repos.d]# yum repolist  #              
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
epel                                                                                                    | 4.4 kB     00:00     
repo id                                  repo name                                                                       status
epel                                     Extra Packages for Enterprise Linux 6 - x86_64                                  11,124
rhel62                                   Red Hat Enterprise Linux 6.2 x64                                                 3,596
repolist: 14,720

에펠 첨부.repo 프로필
[root@localhost yum.repos.d]# more 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

좋은 웹페이지 즐겨찾기