본문 바로가기

Linux/Error Solution

[Errno 4] IOError: <urlopen error ... Trying other mirror ....

=========================  YUM 에러 메세지 =============================
[root@MYHOST public_html]# yum update
Setting up Update Process
Setting up repositories
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'name resolution\xbf\xa1\xbc\xad \xc0\xcf\xbd\xc3\xc0\xfb\xc0\xce \xbd\xc7\xc6\xd0')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: updates-released
failure: repodata/repomd.xml from updates-released: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from updates-released: [Errno 256] No more mirrors to try.
===========================================================================


# yum update [file_name] 으로 yum을 실행시켰을 때
위와 같은 오류메세지가 뜬다면
먼저 /etc/yum.repos.d
디렉토리 안에 있는 파일들의 mirror 사이트 지정이 잘 못 되었다는 뜻 입니다.

그 안에 있는 파일들에 씌어져 있는 mirror 사이트 주소로 접속 해 보고
서버 상태가 정상이라면
아래 두가지 방법으로 해결 해 보십시요.

방법1.
resoving이 안돼서 나타나는 오류일 확률이 높습니다.
/etc/resolv.conf 에 nameserver 가 잘 지정되어 있는지 확인바랍니다.

방법2.
두번째는 php.ini 화일에 보시면 allow_url_fopen = Off 같은 라인이 있는데
allow_url_fopen = On 으로 수정하시고 apache를 재시작 해주시기 바랍니다.