O arquivo de lançamento para http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease ainda não é válido

O arquivo de lançamento para http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease ainda não é válido

Estou usando o Ansible para instalar os pacotes Nginx em meu servidor Slave1 do servidor Master (Observação: os servidores Master e Slave têm Ubuntu 18.04 e estou executando-os dentro de contêineres Docker), mas sempre que estou executando o comando Ansible para fazer isso, ficando abaixo do erro. Estou preso aqui, qual é a solução para isso. Por favor, ajude-me a depurar esse problema.

root@afb19093484e:/# ansible Slave1 -m apt -a "name=nginx state=present"


172.17.0.3 | FAILED! => {
    "changed": false, 
    "cmd": "apt-get update", 
    "msg": "E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 3d 21h 33min 13s). Updates for this repository will not be applied.\nE: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 3d 23h 23min 36s). Updates for this repository will not be applied.", 
    "rc": 100, 
    "stderr": "E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 3d 21h 33min 13s). Updates for this repository will not be applied.\nE: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 3d 23h 23min 36s). Updates for this repository will not be applied.\n", 
    "stderr_lines": [
        "E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 3d 21h 33min 13s). Updates for this repository will not be applied.", 
    ], 

Responder1

Certifique-se de que o relógio do sistema esteja definido para UTC e esteja dentro de alguns minutos do UTC.

informação relacionada