Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

/InRelease is not valid yet (invalid for another 3h 34min 5s). Updates for this repository will not be applied.

Ao executar o comando apt-get update && apt-get install iputils-ping dentro do meu contêiner ele ocorre a seguinte mensagem, impedindo o uso do comando ping

:/# apt-get update && apt-get install iputils-ping Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB] Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:5 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB] Get:6 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB] Get:7 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB] Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB] Reading package lists... Done E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 3h 34min 5s). Updates for this repository will not be applied. E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 3h 35min 3s). Updates for this repository will not be applied. E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease is not valid yet (invalid for another 3h 36min 23s). Updates for this repository will not be applied..

2 respostas
solução!

Olá Alessandra, tudo bem? Na verdade, o erro é na instalação do "iputils-ping", nesse momento não houve nenhuma requisição, e isso realmente é bastante estranho. Então você poderia executar dentro do terminal do container o seguinte comando:

date

E verifica duas coisas na saída desse comando, primeiro, verifica se a data e hora é igual a da sua máquina física e se ambos estão corretos! E tenta executar novamente o comando:

apt-get update && apt-get install iputils-ping

Fala pra gente se funcionou!

Obrigada Jonilson Sousa , a hora estava diferente da máquina local. Consegui executar aqui.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software