amazon ec2: can not connect to the source after installing VNC and the viewer

this problem is that there is no update, it does not connect to any source after installing VNCserver and vncverwer

the connection timeout failed to connect to security.ubuntu.com:80 (91.189.88.161), the connection timeout failed to connect to security.ubuntu.com:80 (91.189.88.162), the connection timeout
Enter the code here
ubuntu @ ip-172-31-16-147:~$ sudo apt update
Err: 1 http://us-east-2.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Could not connect to us-east-2.ec2.archive.ubuntu.com:80 (52.15.107.13), the connection time expired. Could not connect to us-east-2.ec2.archive.ubuntu.com:80 (52.15). 155.232), the connection timeout could not connect to us-east-2.ec2.archive.ubuntu.com:80 (52.15.158.54), the connection timeout could not connect to us-east- 2.ec2.archive.ubuntu. com: 80 (52.15.159.198), the connection timeout could not connect to us-east-2.ec2.archive.ubuntu.com:80 (52.15.102.108), the connection timeout was not could connect to us-east-2. ec2.archive.ubuntu.com:80 (52.15.106.142), connection timeout
Err: 2 http://us-east-2.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease
Can not connect to us-east-2.ec2.archive.ubuntu.com:http:
Err: 3 http://us-east-2.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease
Can not connect to us-east-2.ec2.archive.ubuntu.com:http:
Err: 4 http://security.ubuntu.com/ubuntu bionic-security InRelease
The connection to security.ubuntu.com:80 (2001: 67c: 1560: 8001 :: 14) can not be started. - connect (101: the network is unreachable) Unable to start the connection to security.ubuntu.com:80 (2001: 67c: 1562 :: 16). - connect (101: the network is unreachable) Unable to start the connection to security.ubuntu.com:80 (2001: 67c: 1562 :: 19). - connect (101: the network is unreachable) Unable to start the connection to security.ubuntu.com:80 (2001: 67c: 1360: 8001 :: 17). - connect (101: the network is unreachable) The connection to security.ubuntu.com:80 (2001: 67c: 1360: 8001 :: 21) can not be started. - connect (101: the network is not available) The connection to security.ubuntu.com:80 (2001: 67c: 1560: 8001 :: 11) can not be started. - connect (101: the network is inaccessible) Could not connect to security.ubuntu.com:80 (91.189.91.23), the connection timeout could not connect to security.ubuntu.com:80 (91.189. 91.26), the connection timeout could not connect to security.ubuntu.com:80 (91.189.88.149), timeout of the connection was exhausted. Could not connect to security.ubuntu.com:80 (91.189. 88.152), connection wait time exhausted Unable to connect to security.ubuntu.com:80 (91.189.88.161), connection timeout failed to connect to security.ubuntu.com:80 (91.189.88.162) , connection timeout
Reading the lists of packages ... Done
Dependency tree of the building
Reading state information ... Done
All packages are updated.
W: Could not get http://us-east-2.ec2.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not connect to us-east-2.ec2.archive.ubuntu.com: 80 (52.15.107.13), the connection timeout could not connect to us-east-2.ec2.archive.ubuntu.com:80 (52.15.155.232), the connection timeout could not be connect to us-east-2.ec2.archive. ubuntu.com:80 (52.15.158.54), connection timeout Could not connect to us-east-2.ec2.archive.ubuntu.com:80 (52.15.159.198), connection timeout No could connect to us-east- 2.ec2.archive.ubuntu.com:80 (52.15.102.108), the connection time was exhausted Could not connect to us-east-2.ec2.archive.ubuntu.com:80 (52.15.106.142), the connection time was exhausted
W: Error getting http://us-east-2.ec2.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Can not connect to us-east-2.ec2.archive.ubuntu.com : http:
W: Error getting http://us-east-2.ec2.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Can not connect to us-east-2.ec2.archive.ubuntu.com : http:
W: Error getting http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Unable to start the connection to security.ubuntu.com:80 (2001: 67c: 1560: 8001 :: 14) . - connect (101: the network is unreachable) Unable to start the connection to security.ubuntu.com:80 (2001: 67c: 1562 :: 16). - connect (101: the network is unreachable) Unable to start the connection to security.ubuntu.com:80 (2001: 67c: 1562 :: 19). - connect (101: the network is unreachable) Unable to start the connection to security.ubuntu.com:80 (2001: 67c: 1360: 8001 :: 17). - connect (101: the network is unreachable) The connection to security.ubuntu.com:80 (2001: 67c: 1360: 8001 :: 21) can not be started. - connect (101: the network is not available) The connection to security.ubuntu.com:80 (2001: 67c: 1560: 8001 :: 11) can not be started. - connect (101: the network is inaccessible) Could not connect to security.ubuntu.com:80 (91.189.91.23), the connection timeout could not connect to security.ubuntu.com:80 (91.189. 91.26), the connection timeout could not connect to security.ubuntu.com:80 (91.189.88.149), timeout of the connection was exhausted. Could not connect to security.ubuntu.com:80 (91.189. 88.152), connection wait time exhausted Unable to connect to security.ubuntu.com:80 (91.189.88.161), connection timeout failed to connect to security.ubuntu.com:80 (91.189.88.162) , connection timeout
W: some index files could not be downloaded. They have been ignored, or old ones used instead.
ubuntu @ ip-172-31-16-147:~$ sudo wget https://raw.githubusercontent.com/Yenthe666/InstallScript/12.0/odoo_install.sh
--2018-12-13 23: 59: 59-- https://raw.githubusercontent.com/Yenthe666/InstallScript/12.0/odoo_install.sh
Resolution of raw.githubusercontent.com (raw.githubusercontent.com) ... 151.101.200.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com) | 151.101.200.133 |: 443 ...
failed: the connection has been exhausted.
Retrying

--2018-12-14 00: 02: 10-- (test: 2) https://raw.githubusercontent.com/Yenthe666/InstallScript/12.0/odoo_install.sh
Connection to raw.githubusercontent.com (raw.githubusercontent.com) | 151.101.200.133 |: 443 ... error: the connection time has expired.
Retrying

--2018-12-14 00: 04: 22-- (test: 3) https://raw.githubusercontent.com/Yenthe666/InstallScript/12.0/odoo_install.sh
Connecting to raw.githubusercontent.com (raw.githubusercontent.com) | 151.101.200.133 |: 443 ... ^ C