본문 바로가기
IT/Unix-Linux

[Unix] Yum 설치 시 "YumRepo Error: All mirror URLs are not using ftp, http[s] or file..." 에러

by 직장인W군 2021. 12. 28.
728x90

 


 

■ 개요

 - 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

 


■ 캡쳐

 


 

반응형

댓글