에러 로그
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
에러 원인
CentOS 8 EOS로 CentOS 8 Mirror site 가 vault 로 전환되어 Mirror site를 못 찾아 발생하는 문제.
해결책
yum에서 참고하는 yum repo mirror site 변경 적용
[root@testserver ~]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
[root@testserver ~]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*
적용 확인
- repo 파일의 미러사이트 주소 mirror 에서 vault로 변경 되었는지 확인
- mirror 동작 확인
## 변경 확인
[root@testserver ~]# cat /etc/yum.repos.d/CentOS-Linux-BaseOS.repo
## 변경 주소로 동작 확인
[root@testserver ~]# dnf repolist
repo id repo name
appstream CentOS Linux 8 - AppStream
baseos CentOS Linux 8 - BaseOS
extras CentOS Linux 8 - Extras
참고
CentOS Linux 8 EOL
'OS > Centos(redhat)' 카테고리의 다른 글
[CentOS] vim 세팅 (options) (0) | 2024.02.19 |
---|---|
[CentOS] chage 명령어 (패스워드 사용 만기 관리) (2) | 2024.02.18 |
[CentOS] systemd 서비스 등록 (0) | 2024.02.17 |
[CentOS] 실행 중인 서비스 확인 방법 (0) | 2024.02.14 |
[CentOS] 모든 유저 크론탭 확인 방법 (0) | 2024.01.17 |