๐ก apt update ์ค๋ฅ troubleshooting
์ํฉ
terraform ์ผ๋ก apt update๋ฅผ ํ๋ script๋ฅผ ์์ฑํ๋๋ฐ update๊ฐ ๋์ง ์๊ณ ์๋ฌ๊ฐ ๋ฐ์ํ๊ณ ์์๋ค.
Err http://security.ubuntu.com precise-security InRelease
Err http://kr.archive.ubuntu.com precise-backports InRelease
Err http://security.ubuntu.com precise-security Release.gpg
Temporary failure resolving 'security.ubuntu.com'
Err http://kr.archive.ubuntu.com precise Release.gpg
Temporary failure resolving 'kr.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dis ... /InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... /InRelease
W: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dis ... elease.gpg Temporary failure resolving 'kr.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... elease.gpg Temporary failure resolving 'security.ubuntu.com'
ํด๊ฒฐ๋ฐฉ๋ฒ
dns ์ค์ ์ด ์๋ชป ๋์ด ์์ด์ ์ธํฐ๋ท ์ฐ๊ฒฐ์ด ์๋๋ ๋ฐ๋์ ์ ์์ ์ผ๋ก ์ ๋ฐ์ดํธ๊ฐ ๋์ง ์๋ ํ์์ด ์์๋ค.
์๋์ ๊ฐ์ด google์ dns name server ์ฃผ์๋ฅผ ์ค์ ํ์ฌ ํด๊ฒฐํ๋ค.
/etc/network/interfaces ํธ์ง
$ sudo vi /etc/network/interfaces
dns-nameservers 8.8.8.8 8.8.4.4 # ์ถ๊ฐ
/etc/resolv.conf ํธ์ง
$ sudo vi /etc/resolve.conf
nameserver 8.8.8.8 # google main dns ์ฃผ์ ์ถ๊ฐ
nameserver 8.8.4.4 # google sub dns ์ฃผ์ ์ถ๊ฐ
์ฐธ๊ณ