๋ฐ์ํ
AWS EC2 ์ฐ๋ถํฌ ์๋ฒ์๋ฌ
101: ๋คํธ์ํฌ๊ฐ ์ ๊ทผ ๋ถ๊ฐ๋ฅํฉ๋๋ค / 101: network is unreachable
ubuntu@green:~$ sudo apt update
์ค๋ฅ:1 http://security.ubuntu.com/ubuntu focal-security InRelease
security.ubuntu.com:80์ ์ฐ๊ฒฐ์ ์ด๊ธฐํํ ์ ์์ต๋๋ค (2620:2d:4000:1::16). - connect (101: ๋คํธ์ํฌ๊ฐ ์ ๊ทผ ๋ถ๊ฐ๋ฅํฉ๋๋ค) security.ubuntu.com:80์ ์ฐ๊ฒฐ์ ์ด๊ธฐํํ ์ ์์ต๋๋ค (2620:2d:4000:1::19). - connect (101: ๋คํธ์ํฌ๊ฐ ์ ๊ทผ ๋ถ๊ฐ๋ฅํฉ๋๋ค) security.ubuntu.com:80์ ์ฐ๊ฒฐ์ ์ด๊ธฐํํ ์ ์์ต๋๋ค (2001:67c:1562::15). - connect (101: ๋คํธ์ํฌ๊ฐ ์ ๊ทผ ๋ถ๊ฐ๋ฅํฉ๋๋ค) security.ubuntu.com:80์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค (91.189.91.38). ์ฐ๊ฒฐ ์ ํ ์๊ฐ์ด ์ด๊ณผํ์ต๋๋ค security.ubuntu.com:80์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค (185.125.190.36). ์ฐ๊ฒฐ ์ ํ ์๊ฐ์ด ์ด๊ณผํ์ต๋๋ค security.ubuntu.com:80์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค (185.125.190.39). ์ฐ๊ฒฐ ์ ํ ์๊ฐ์ด ์ด๊ณผํ์ต๋๋ค
์ค๋ฅ:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal InRelease
ap-northeast-2.ec2.archive.ubuntu.com:80์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค (52.78.32.75). ์ฐ๊ฒฐ ์ ํ ์๊ฐ์ด ์ด๊ณผํ์ต๋๋ค ap-northeast-2.ec2.archive.ubuntu.com:80์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค (52.79.128.16). ์ฐ๊ฒฐ ์ ํ ์๊ฐ์ด ์ด๊ณผํ์ต๋๋ค ap-northeast-2.ec2.archive.ubuntu.com:80์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค (13.124.245.230). ์ฐ๊ฒฐ ์ ํ ์๊ฐ์ด ์ด๊ณผํ์ต๋๋ค ap-northeast-2.ec2.archive.ubuntu.com:80์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค (13.124.255.209). ์ฐ๊ฒฐ ์ ํ ์๊ฐ์ด ์ด๊ณผํ์ต๋๋ค
์ค๋ฅ:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease
ap-northeast-2.ec2.archive.ubuntu.com:http์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค:
์ค๋ฅ:4 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease
ap-northeast-2.ec2.archive.ubuntu.com:http์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค:
ํจํค์ง ๋ชฉ๋ก์ ์ฝ๋ ์ค์
๋๋ค... ์๋ฃ
์์กด์ฑ ํธ๋ฆฌ๋ฅผ ๋ง๋๋ ์ค์
๋๋ค
์ํ ์ ๋ณด๋ฅผ ์ฝ๋ ์ค์
๋๋ค... ์๋ฃ
๋ชจ๋ ํจํค์ง๊ฐ ์ต์ ์
๋๋ค.
W: http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/dists/focal/InRelease ํ์ผ์ ๋ฐ๋๋ฐ ์คํจํ์ต๋๋ค ap-northeast-2.ec2.archive.ubuntu.com:80์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค (52.78.32.75). ์ฐ๊ฒฐ ์ ํ ์๊ฐ์ด ์ด๊ณผํ์ต๋๋ค ap-northeast-2.ec2.archive.ubuntu.com:80์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค (52.79.128.16). ์ฐ๊ฒฐ ์ ํ ์๊ฐ์ด ์ด๊ณผํ์ต๋๋ค ap-northeast-2.ec2.archive.ubuntu.com:80์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค (13.124.245.230). ์ฐ๊ฒฐ ์ ํ ์๊ฐ์ด ์ด๊ณผํ์ต๋๋ค ap-northeast-2.ec2.archive.ubuntu.com:80์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค (13.124.255.209). ์ฐ๊ฒฐ ์ ํ ์๊ฐ์ด ์ด๊ณผํ์ต๋๋ค
W: http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease ํ์ผ์ ๋ฐ๋๋ฐ ์คํจํ์ต๋๋ค ap-northeast-2.ec2.archive.ubuntu.com:http์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค:
W: http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease ํ์ผ์ ๋ฐ๋๋ฐ ์คํจํ์ต๋๋ค ap-northeast-2.ec2.archive.ubuntu.com:http์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค:
W: http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease ํ์ผ์ ๋ฐ๋๋ฐ ์คํจํ์ต๋๋ค security.ubuntu.com:80์ ์ฐ๊ฒฐ์ ์ด๊ธฐํํ ์ ์์ต๋๋ค (2620:2d:4000:1::16). - connect (101: ๋คํธ์ํฌ๊ฐ ์ ๊ทผ ๋ถ๊ฐ๋ฅํฉ๋๋ค) security.ubuntu.com:80์ ์ฐ๊ฒฐ์ ์ด๊ธฐํํ ์ ์์ต๋๋ค (2620:2d:4000:1::19). - connect (101: ๋คํธ์ํฌ๊ฐ ์ ๊ทผ ๋ถ๊ฐ๋ฅํฉ๋๋ค) security.ubuntu.com:80์ ์ฐ๊ฒฐ์ ์ด๊ธฐํํ ์ ์์ต๋๋ค (2001:67c:1562::15). - connect (101: ๋คํธ์ํฌ๊ฐ ์ ๊ทผ ๋ถ๊ฐ๋ฅํฉ๋๋ค) security.ubuntu.com:80์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค (91.189.91.38). ์ฐ๊ฒฐ ์ ํ ์๊ฐ์ด ์ด๊ณผํ์ต๋๋ค security.ubuntu.com:80์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค (185.125.190.36). ์ฐ๊ฒฐ ์ ํ ์๊ฐ์ด ์ด๊ณผํ์ต๋๋ค security.ubuntu.com:80์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค (185.125.190.39). ์ฐ๊ฒฐ ์ ํ ์๊ฐ์ด ์ด๊ณผํ์ต๋๋ค
W: Some index files failed to download. They have been ignored, or old ones used instead.
ํด๊ฒฐ ๋ฐฉ๋ฒ : nameserver 8.8.8.8 ๋ก ์์ ํ ๋ฆฌ๋ถํ
ubuntu:~$ cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.
nameserver 127.0.0.53
options edns0 trust-ad
search ap-northeast-2.compute.internal
ubuntu:~$ sudo vi /etc/resolv.conf
nameserver 8.8.8.8
options edns0 trust-ad
search ap-northeast-2.compute.internal
# :wq ์ ์ฅํ ๋๊ฐ๊ธฐ
ubuntu:~$ sudo reboot
# ๋ฆฌ๋ถํ
ubuntu:~$ sudo apt update
๋ฐ๊ธฐ:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
๋ฐ๊ธฐ:2 http://us.archive.ubuntu.com/ubuntu focal InRelease [265 kB]
๋ฐ๊ธฐ:3 http://security.ubuntu.com/ubuntu focal-security/restricted Sources [40.8 kB]
๋ฐ๊ธฐ:4 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
๋ฐ๊ธฐ:5 http://security.ubuntu.com/ubuntu focal-security/main Sources [235 kB]
๋ฐ๊ธฐ:6 http://us.archive.ubuntu.com/ubuntu focal/restricted Sources [6,472 B]
๋ฐ๊ธฐ:7 http://us.archive.ubuntu.com/ubuntu focal/main Sources [847 kB]
๋ฐ๊ธฐ:8 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
๋ฐ๊ธฐ:9 http://us.archive.ubuntu.com/ubuntu focal/main Translation-ko [204 kB]
๋ฐ๊ธฐ:10 http://us.archive.ubuntu.com/ubuntu focal/main Translation-en [506 kB]
๋ฐ๊ธฐ:11 http://us.archive.ubuntu.com/ubuntu focal/main amd64 c-n-f Metadata [29.5 kB]
๋ฐ๊ธฐ:12 http://us.archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [22.0 kB]
๋ฐ๊ธฐ:13 http://us.archive.ubuntu.com/ubuntu focal/restricted Translation-ko [716 B]
๋ฐ๊ธฐ:14 http://us.archive.ubuntu.com/ubuntu focal/restricted Translation-en [6,212 B]
๋ฐ๊ธฐ:15 http://us.archive.ubuntu.com/ubuntu focal/restricted amd64 c-n-f Metadata [392 B]
๋ฐ๊ธฐ:16 http://us.archive.ubuntu.com/ubuntu focal-updates/main Sources [504 kB]
๋ฐ๊ธฐ:17 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted Sources [43.5 kB]
๋ฐ๊ธฐ:18 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,946 kB]
๋ฐ๊ธฐ:19 http://us.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [352 kB]
๋ฐ๊ธฐ:20 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [15.6 kB]
๋ฐ๊ธฐ:21 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1,141 kB]
๋ฐ๊ธฐ:22 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [162 kB]
๋ฐ๊ธฐ:23 http://us.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [592 B]
๋ด๋ ค๋ฐ๊ธฐ 7,525 k๋ฐ์ดํธ, ์์์๊ฐ 4์ด (1,953 k๋ฐ์ดํธ/์ด)
ํจํค์ง ๋ชฉ๋ก์ ์ฝ๋ ์ค์
๋๋ค... ์๋ฃ
์์กด์ฑ ํธ๋ฆฌ๋ฅผ ๋ง๋๋ ์ค์
๋๋ค
์ํ ์ ๋ณด๋ฅผ ์ฝ๋ ์ค์
๋๋ค... ์๋ฃ
๋ชจ๋ ํจํค์ง๊ฐ ์ต์ ์
๋๋ค.
๋ฆฌ๋ถํ ํ ํ์ธํด๋ณด๋ฉด nameserver 127.0.0.53 ๋ก ์ด๊ธฐํ ๋์ด์๋ค.
ubuntu:~$ cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.
nameserver 127.0.0.53
options edns0 trust-ad
search ap-northeast-2.compute.internal
300x250