yum 설치나 업데이트시 다음과 같이 url을 찾지 못한다고 에러가 발생될 경우
# yum update Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/ YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/ removing mirrorlist with no valid mirrors: /var/cache/yum/extras/mirrorlist.txt Error: Cannot find a valid baseurl for repo: extras
/etc/yum.repos.d/CentOS-Base.repo 파일안에서 url 경로를 다음과 같이 설정합니다.
————————————————————————————————————————————–
[base] name=CentOS-$releasever - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os baseurl=http://vault.centos.org/5.11/os/i386/ #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #released updates [updates] name=CentOS-$releasever - Updates #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates baseurl=http://vault.centos.org/5.11/updates/i386/ #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras baseurl=http://vault.centos.org/5.11/extras/i386/ #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
저장 후 다시 yum clean all 명령어와 yum update 를 실행해 줍니다.
'리눅스 문서' 카테고리의 다른 글
MySQL 소스설치(5.7.x) (4) | 2017.11.23 |
---|---|
MySQL 5.7.x Configure시 CMake Boost 오류 처리 방법 (4) | 2017.11.23 |
redis 데이터 새서버로 이전하기 (4) | 2016.12.01 |
Statically compile redis 3.0.2 on CentOS 5 (4) | 2016.12.01 |
MongDB mongod.log WARNING: soft rlimits too low (4) | 2016.08.01 |