사이트 내 전체검색
centos7 yum update error -> check nsswitch.con
프리이미지
https://cmd.kr/server/723 URL이 복사되었습니다.

본문

yum update

Loaded plugins: fastestmirror, langpacks

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was

14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Name or service not known"

 

 

 One of the configured repositories failed (Unknown),

 

 

==============================

error ping..

nslookup yum.postgresql.org 

Name:   yonada.postgresql.org

Address: 174.143.35.196

 

--> OK

 

# ping yum.postgresql.org

ping: unknown host yum.postgresql.org

--> FAIL

 

이경우 dns의 문제가 아니다.. nssswitch 를 수정하라.

# vi /etc/nsswitch.conf 

 

hosts:      files

--> 아래로 변경

hosts:      files dns myhostname

 

 

 

 

 

 

댓글목록

등록된 댓글이 없습니다.

1,139 (2/23P)

Search

Copyright © Cmd 명령어 18.221.66.31