http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease 的发布文件尚未生效

Pan*_*eet 1 apt docker 18.04

我正在使用 Ansible 从主服务器在我的 Slave1 服务器上安装 Nginx 包(注意 - 主服务器和从服务器都有 Ubuntu 18.04,我在 Docker 容器中运行这些),但每次我运行 Ansible 命令来执行此操作时,低于错误。我被困在这里,有什么解决方案。请帮我调试这个问题。

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.", 
    ], 
Run Code Online (Sandbox Code Playgroud)

小智 5

确保系统时钟设置为 UTC,并且在 UTC 的几分钟内。