๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๋ชฉ๋ก์ด ์—†์Šต๋‹ˆ๋‹ค.

terraform apt update ์—๋Ÿฌ

Server
    ๋ฐ˜์‘ํ˜•
    ๐Ÿ’ก 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 ์ฃผ์†Œ ์ถ”๊ฐ€

     

     

    ์ฐธ๊ณ 

    https://hs5555.tistory.com/44

     

     

    ๋ฐ˜์‘ํ˜•