https://www.juntoday.com/500?category=749249
CentOS 6 yum Error: Cannot find a valid baseurl for repo: base
CentOS 6 업데이트 지원 종료로 yum update나 install 하면 나오는 에러다. YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/ removing mirrorli..
www.juntoday.com
CentOS 6 업데이트 지원 종료로 yum update나 install 하면 나오는 에러다.
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
보통 위와 같이 에러가 남.
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
이렇게 미러리스트 텍스트 파일을 생성해주면 보통은 해결이 된다.
그런데 추가적으로 아래 미러리스트가 없다는 오류가 발생할 수 있다.
centos-sclo-rh/mirrorlist.txt
centos-sclo-sclo/mirrorlist.txt
이럴 경우엔 아래와 같이 미러리스트를 생성해주면 해결된다.
echo "http://vault.centos.org/6.10/sclo/x86_64/rh" > /var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt
echo "http://vault.centos.org/6.10/sclo/x86_64/sclo" > /var/cache/yum/x86_64/6/centos-sclo-sclo/mirrorlist.txt
출처: https://www.juntoday.com/500?category=749249 [JunToday.com]
'프로그래밍 > 서버(리눅스,centos)' 카테고리의 다른 글
centos6 ssl 인증키 (미완) (0) | 2021.06.24 |
---|---|
서버 시간 동기화 (0) | 2021.06.09 |
http접속시 https로 (0) | 2021.05.09 |
[총정리]코노하호스팅 or 타 서버에서 apm+웹서비스까지 (0) | 2021.05.09 |
centos8/9에서 APM - apache php7 mysql 설치하기 (0) | 2021.05.07 |