YumRepo Error All mirror URLs are not using ftp, http[s] or file. ó¸®
https://www.ehostidc.co.kr/ (470)https://www.ehostidc.co.kr/cscenter/notice.php (455)
1) error 확인 |
CentOS6버전의 EOL(End of Life)이 2020-11-30로 인해 fastmirror에서 CentOS 6 Package삭제가 되어 발생 |
2) 해결 방법 (임시) |
root@ NS1:[~]: cd /var/cache/yum/x86_64/6/base/ root@ NS1:[/var/cache/yum/x86_64/6/base]: ls 1aa8754bde2f3921d67cca4bb70d9f587fb858a24cc3d1f66d3315292a89fc20-primary.sqlite packages cachecookie repomd.xml root@ NS1:[/var/cache/yum/x86_64/6/base]: echo "https://vault.centos.org/6.10/os/x86_64/" > /var/cache/yum/x86_64/6/base/mirrorlist.txt root@ NS1:[/var/cache/yum/x86_64/6/base]: echo "https://vault.centos.org/6.10/extras/x86_64/" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt root@ NS1:[/var/cache/yum/x86_64/6/base]: echo "https://vault.centos.org/6.10/updates/x86_64/" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt |
3) 임시 해결 후 yum clean all 명령어 입력시 동일현상 재발생 |
4) 해결 방법 (영구) |
root@ NS1:[/var/cache/yum/x86_64/6/base]: sed -i -e "s/^mirrorlist=http:\/\/mirrorlist.centos.org/#mirrorlist=http:\/\/mirrorlist.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo root@ NS1:[/var/cache/yum/x86_64/6/base]: sed -i -e "s/^#baseurl=http:\/\/mirror.centos.org/baseurl=https:\/\/vault.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo |