옥탑방주인/-D
ubuntu apt-get update 에러시 nameserver 설정
옥탑방주인
2018. 10. 4. 17:23
Err http://kr.archive.ubuntu.com/ubuntu/ trusty/main liberror-perl all 0.17-1.1
Could not resolve 'kr.archive.ubuntu.com'
해결 방법은
$ sudo vim /etc/resolvconf/resolv.conf.d/base
Then put your nameserver list in like so:
nameserver 8.8.8.8
nameserver 8.8.4.4
Finally update resolvconf
:
$ sudo resolvconf -u
이렇게 하면 해결이 된다.
resolvconf를 업데이트 하면 아까 /etc/resolv.conf파일이 아래처럼 자동으로 갱신된다.
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 8.8.4.4
~
출처: http://let-me-know.tistory.com/6 [갈팡질팡 임베디드 삽질기]