Die Release-Datei für http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease ist noch nicht gültig.

Die Release-Datei für http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease ist noch nicht gültig.

Ich verwende Ansible, um die Nginx-Pakete vom Master-Server auf meinem Slave1-Server zu installieren (Hinweis: Sowohl der Master- als auch der Slave-Server verwenden Ubuntu 18.04 und ich führe diese in Docker-Containern aus), aber jedes Mal, wenn ich den Ansible-Befehl ausführe, erhalte ich den folgenden Fehler. Ich stecke fest. Was ist die Lösung dafür? Bitte helfen Sie mir beim Debuggen dieses Problems.

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.", 
    ], 

Antwort1

Stellen Sie sicher, dass die Systemuhr auf UTC eingestellt ist und die Abweichung von UTC maximal einige Minuten beträgt.

verwandte Informationen