http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease의 릴리스 파일이 아직 유효하지 않습니다.

http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease의 릴리스 파일이 아직 유효하지 않습니다.

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

답변1

시스템 시계가 UTC로 설정되어 있고 UTC의 몇 분 이내인지 확인하십시오.

관련 정보