본문 바로가기
문제 해결 모음

폐쇄망 yum repo 에러 (Errors during downloading metadata for repository, Failed to download metadata for repo)

by study4me 2025. 1. 14.
반응형

🔹 구성 환경

네트워크: 폐쇄망
OS: RHEL 8

🔹 에러 내용

systemd[1]: Starting dnf makecache...
dnf[887900]: Updating Subscription Management repositories.
dnf[887900]: Unable to read consumer identity
dnf[887900]: This system is not registered with an entitlement server. You can use subscription-manager to register.
dnf[887900]: Red Hat Enterprise Linux 8 for x86_64 - AppStre 0.0 B/s |   0  B     00:00
dnf[887900]: Errors during downloading metadata for repository 'rhel-8-appstream-rhui-rpms':
dnf[887900]:  - Curl error (6): Couldn't resolve host name for https://rhui.REGION.aws.ce.redhat.com/pulp/mirror/content/dist/rhel8/rhui/8/x86_64/appstream/os [Could not resolve host: rhui.REGION.aws.ce.redhat.com]
dnf[887900]: Error: Failed to download metadata for repo 'rhel-8-appstream-rhui-rpms': Cannot prepare internal mirrorlist: Curl error (6): Couldn'tresolve host name for https://rhui.REGION.aws.ce.redhat.com/pulp/mirror/content/dist/rhel8/rhui/8/x86_64/appstream/os [Could not resolve host: rhui.REGION.aws.ce.redhat.com]
systemd[1]: dnf-makecache.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: dnf-makecache.service: Failed with result 'exit-code'.
systemd[1]: Failed to start dnf makecache.

🔹 문제 원인

인터넷이 불가한 폐쇄망 환경에서 https://rhui.REGION.aws.ce.redhat.com/pulp/mirror/content/dist/rhel8/rhui/8/x86_64/appstream/os에 접근하고자함.

폐쇄망이라 목적지 접근 실패.

🔹 문제 해결

/etc/yum.repos.d 하위 파일들을 살펴보니 rhui.REGION.aws.ce.redhat.com 관련 내용을 포함하는 파일들이 다수 존재했다.

yum repository를 local repository를 사용하도록 구성하여 문제 해결

반응형