본문 바로가기
Linux

centos6 yum update 오류 해결 YumRepo Error yum error

by 씨엔아이소프트 2021. 1. 4.
반응형

CentOS6 업데이트 지원 종료로 인해 yum update 오류가 발생한경우 이다

 

Loaded plugins: fastestmirror, security
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

 

64비트 CentOS 6.10

아래의 명령을 입력하고 yum update 명령으로 가능하다

yum clean all
rm -rf /var/cache/yum

# make new repo with vault.centos
mkdir -p /var/cache/yum/x86_64/6/base/
mkdir -p /var/cache/yum/x86_64/6/extras/
mkdir -p /var/cache/yum/x86_64/6/updates/

echo https://vault.centos.org/6.10/os/x86_64/ > /var/cache/yum/x86_64/6/base/mirrorlist.txt
echo https://vault.centos.org/6.10/extras/x86_64/ > /var/cache/yum/x86_64/6/extras/mirrorlist.txt
echo https://vault.centos.org/6.10/updates/x86_64/ > /var/cache/yum/x86_64/6/updates/mirrorlist.txt

# makecache
yum makecache

yum update
반응형

댓글