■ IT 가이드/Unix-Linux OS
[CentOS] "YumRepo Error: All mirror URLs are not using ftp, http[s] or file.~" 오류 가이드
직장인W군
2022. 1. 7. 10:07
728x90
반응형
CentOS 환경에서 Yum 설치 시 "YumRepo Error: All mirror URLs are not using ftp, http[s] or file. ~" 오류와 함께 설치가 되지 않는 경우 관련하여 아래와 같이 정리하여 공유합니다.
■ 개요
- Yum 실행 시 "YumRepo Error: All mirror URLs are not using ftp, http[s] or file. ~" 오류 발생
- CentOS 6.* 버전에 대하여 유지관리업데이트 지원이 종료 (2020.10.30 종료)
■ 오류 내용
Loaded plugins: aliases, changelog, fastestmirror, kabi, ovl, presto, refresh-packagekit, security, tmprepo, verify, : versionlock
Loading support for CentOS kernel ABI
Setting up Install Process
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
|
반응형
■ 해결 방법
1. 사용하는 OS Bit 확인
$) getconf LONG_BIT
2. Bit에 맞는 아래 명령어 실행
- 32Bit
echo "https://vault.centos.org/6.10/os/i386/" > /var/cache/yum/i386/6/base/mirrorlist.txt
echo "http://vault.centos.org/6.10/extras/i386/" > /var/cache/yum/i386/6/extras/mirrorlist.txt
echo "http://vault.centos.org/6.10/updates/i386/" > /var/cache/yum/i386/6/updates/mirrorlist.txt
- 64bit
echo "https://vault.centos.org/6.10/os/x86_64/" > /var/cache/yum/x86_64/6/base/mirrorlist.txt
echo "http://vault.centos.org/6.10/extras/x86_64/" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt
echo "http://vault.centos.org/6.10/updates/x86_64/" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt
■ 캡쳐
728x90
반응형