Eu lancei um servidor EC2 Ubuntu 16.04. Está contido em um VPC que está conectado a uma VPN privada. Para o SSH no servidor, você precisa se conectar a essa VPN que também está na AWS antes de ter acesso ao servidor. Depois de configurar tudo e começar a configurar o servidor, descobri que sudo apt-get update
não instalou nenhuma atualização e recebi o erro abaixo:
ubuntu@private-ip:~$ sudo apt-get update
Err:1 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease Could not connect to eu-west-1.ec2.archive.ubuntu.com:80 (IP), connection timed out [IP]
Err:2 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease Unable to connect to eu-west-1.ec2.archive.ubuntu.com:http: [IP]
Err:3 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease Unable to connect to eu-west-1.ec2.archive.ubuntu.com:http: [IP]
Err:4 http://security.ubuntu.com/ubuntu xenial-security InRelease Cannot initiate the connection to security.ubuntu.com:80 (). - connect (101: Network is unreachable) [IP]
Reading package lists...
Done
W: Failed to fetch http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Could not connect to eu-west-1.ec2.archive.ubuntu.com:80 (IP), connection timed out [IP] W: Failed to fetch http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Unable to connect to eu-west-1.ec2.archive.ubuntu.com:http: [IP]
W: Failed to fetch http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Unable to connect to eu-west-1.ec2.archive.ubuntu.com:http: [IP]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Cannot initiate the connection to security.ubuntu.com:80 (). - connect (101: Network is unreachable) [IP]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Eu também tentei instalar o apache, mas recebi um erro semelhante. Por favor, o que poderia estar errado?