성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Java - How to use the Foreign Funct...
[정성태] 제가 큰 실수를 했군요. ^^; Delegate를 통한 Bein...
[정성태] Working with Rust Libraries from C#...
[정성태] Detecting blocking calls using asyn...
[정성태] 아쉽게도, 커뮤니티는 아니고 개인 블로그입니다. ^^
[정성태] 질문이 잘 이해가 안 됩니다. 우선, 해당 소스코드에서 ILis...
[양승조
] var대신 dinamic으로 선언해서 해결은 했습니다. 맞는 해...
[양승조
] 또 막혔습니다. ㅠㅠ var list = props[i].Ge...
[양승조
] 아. 감사합니다. 어제는 안됐던것 같은데....정신을 차려야겠네...
[정성태] "props[i].GetValue(props[i])" 코드에서 ...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>Ubuntu - Temporary failure resolving 'kr.archive.ubuntu.com'</h1> <p> 우분투가 참 희한하군요. ^^;<br /> <br /> 예전 글에서,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > 우분투 20.04 초기 설정 - 고정 IP 및 SSH 설치 ; <a target='tab' href='https://www.sysnet.pe.kr/2/0/12335'>https://www.sysnet.pe.kr/2/0/12335</a> </pre> <br /> 고정 IP 설정을 "ifconfig eth0 192.168.100.50 netmask 255.255.255.0"과 같은 식으로 하면 된다는 덧글이 달렸는데요, 실제로 해보면 그 즉시 인터넷 연결이 먹통이 됩니다. 이제부터는 (ssh 연결이 아닌) 콘솔에 직접 로그인해 문제 해결을 해야 하는데, "ip route add 192.168.100.0/24 dev eth0"이라고 명령을 내리면 게이트웨이 설정이 되면서 이제 다시 인터넷이 가능해집니다.<br /> <br /> 하지만, 그것도 재부팅하고 나면 다시 고정 IP 설정은 없어지고 DHCP로부터 유동 IP를 받게 됩니다. 즉, ifconfig으로는 설정값 자체가 저장까지는 안 되는 듯합니다.<br /> <br /> <hr style='width: 50%' /><br /> <br /> 그래도, 제 딴에는 yml 파일 편집은 도저히 아니다 싶어서 그 설정을 삭제하고, Ubuntu 데스크톱의 UI에서 직접 고정 IP를 설정하고 "DNS"도 설정해 보았습니다.<br /> <br /> <img onclick='toggle_img(this)' class='imgView' alt='apt_get_update_failed_1.png' src='/SysWebRes/bbs/apt_get_update_failed_1.png' /><br /> <br /> 재미있는 것은, 이렇게 설정 후 모든 DNS lookup이 실패해 "apt-get update" 명령어 등이 동작하지 않게 됩니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > # <span style='color: blue; font-weight: bold'>apt-get update</span> Err:1 http://kr.archive.ubuntu.com/ubuntu focal InRelease Temporary failure resolving 'kr.archive.ubuntu.com' Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease Temporary failure resolving 'security.ubuntu.com' Err:3 http://kr.archive.ubuntu.com/ubuntu focal-updates InRelease Temporary failure resolving 'kr.archive.ubuntu.com' Err:4 http://kr.archive.ubuntu.com/ubuntu focal-backports InRelease Temporary failure resolving 'kr.archive.ubuntu.com' Reading package lists... Done W: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'kr.archive.ubuntu.com' W: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Temporary failure resolving 'kr.archive.ubuntu.com' W: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Temporary failure resolving 'kr.archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Temporary failure resolving 'security.ubuntu.com' W: Some index files failed to download. They have been ignored, or old ones used instead. # <span style='color: blue; font-weight: bold'>ping security.ubuntu.com</span> ping: security.ubuntu.com: Temporary failure in name resolution </pre> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > // WSL의 경우 $ <span style='color: blue; font-weight: bold'>ping www.microsoft.com</span> ping: www.microsoft.com: Name or service not known $ <span style='color: blue; font-weight: bold'>nslookup www.microsoft.com</span> ;; connection timed out; no servers could be reached </pre> <br /> 검색해 본 끝에, <br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > [Linux] Ubuntu 업데이트 서버 연결 에러 (apt-get update 에러) ; <a target='tab' href='https://hs5555.tistory.com/44'>https://hs5555.tistory.com/44</a> </pre> <br /> (위의 글에서, /etc/network/interfaces를 편집하는 것은 소용이 없었고) resolv.conf를 열어 보니,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > $ <span style='color: blue; font-weight: bold'>cat /etc/resolv.conf</span> nameserver 127.0.0.53 </pre> <br /> nameserver가 (이유를 알 수 없는) 127.0.0.53으로 설정되어 있던 것을 8.8.8.8을 추가하는 것으로,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > $ <span style='color: blue; font-weight: bold'>vi /etc/resolv.conf</span> nameserver 8.8.8.8 </pre> <br /> 해결했습니다.<br /> <br /> <hr style='width: 50%' /><br /> <br /> 그런데 여기서 또 재미있는 것은, ^^ 재부팅 후 resolve.conf 파일을 보면 다시 "127.0.0.53"으로 돌아가 있습니다. 하지만, DNS Lookup에는 이상이 없습니다. ^^;<br /> </p><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
4621
(왼쪽의 숫자를 입력해야 합니다.)