본문 바로가기
클라우드 및 인프라/Linux

[centos6] all mirror URLs are not using ftp, http[s] or file. - yum update

by 작은소행성 2021. 5. 12.

yum 을 사용하는데 다음과 같은 오류가 생겼다.

 

 

all mirror URLs are not using ftp, http[s] or file.

 

 

 

 

 

 

 

 

centos bit 확인

$ getconf LONG_BIT

 

 

 

32bit

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

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

 

 

 

 

반응형