728x90
반응형
# 구성 환경은 Bastion Host는 public 망에 존재하고 실제로 운영되는 운영서버는 private 망에 존재한다.
문제는 인터넷으로 ping을 정상적으로 발송이 되는데, sudo apt-get update라고 명령어를 입력하면 아래와 같은 오류가 발생 한다.
ubuntu@ip-192-168-1-253:~$ sudo apt-get update
Err:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal InRelease
503 Service Unavailable [IP: 13.124.255.209 80]
Err:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease
503 Service Unavailable [IP: 13.124.255.209 80]
Err:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease
503 Service Unavailable [IP: 13.124.255.209 80]
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
W: Failed to fetch http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/dists/focal/InRelease 503 Service Unavailable [IP: 13.124.255.209 80]
W: Failed to fetch http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease 503 Service Unavailable [IP: 13.124.255.209 80]
W: Failed to fetch http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease 50 3 Service Unavailable [IP: 13.124.255.209 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
ubuntu@ip-192-168-1-253:~$ sudo apt-get update
Err:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal InRelease
503 Service Unavailable [IP: 13.124.245.230 80]
Err:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease
503 Service Unavailable [IP: 13.124.245.230 80]
Err:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease
503 Service Unavailable [IP: 13.124.245.230 80]
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
해결방법은 아주 간단하다.
ping ietf.orf 를 입력하여 아래와 같이 해당 주소에 대해 ping을 확인한다.
PING ietf.org (50.223.129.194) 56(84) bytes of data.
64 bytes from mail.ietf.org (50.223.129.194): icmp_seq=1 ttl=35 time=136 ms
64 bytes from mail.ietf.org (50.223.129.194): icmp_seq=2 ttl=35 time=135 ms
64 bytes from mail.ietf.org (50.223.129.194): icmp_seq=3 ttl=35 time=135 ms
64 bytes from mail.ietf.org (50.223.129.194): icmp_seq=4 ttl=35 time=135 ms
64 bytes from mail.ietf.org (50.223.129.194): icmp_seq=5 ttl=35 time=135 ms
64 bytes from mail.ietf.org (50.223.129.194): icmp_seq=6 ttl=35 time=135 ms
64 bytes from mail.ietf.org (50.223.129.194): icmp_seq=7 ttl=35 time=135 ms
64 bytes from mail.ietf.org (50.223.129.194): icmp_seq=8 ttl=35 time=135 ms
64 bytes from mail.ietf.org (50.223.129.194): icmp_seq=9 ttl=35 time=135 ms
64 bytes from mail.ietf.org (50.223.129.194): icmp_seq=10 ttl=35 time=135 ms
64 bytes from mail.ietf.org (50.223.129.194): icmp_seq=11 ttl=35 time=135 ms
64 bytes from mail.ietf.org (50.223.129.194): icmp_seq=12 ttl=35 time=135 ms
정상적으로 ping 테스트가 끝나면, 다시 sudo apt-get update와 sudo apt-get upgrade를 통해서 업데이트를 진행한다.
아래의 테스트와 같이 정상적으로 업데이트 및 업그레이드가가 된 것을 확인할 수 있다.
ubuntu@ip-192-168-1-253:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
bash curl distro-info-data git git-man libcurl3-gnutls libcurl4 libsepol1 networkd-dispatcher open-vm-tools
10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
728x90
반응형
'⭐ AWS > AWS Network' 카테고리의 다른 글
Private Subnet에 존재하는 EC2에 접근하기 (0) | 2022.05.03 |
---|---|
AWS 기본 네트워크 구성 (0) | 2022.05.02 |