from
    时间不同步导致的ubuntu更新失败报错
    1.完整的错误信息如下:
    E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 11d 10min 50s). Updates for this repository will not be applied
    2.笔者遇到的这个问题通过以下方式解决:
    2.1 同步时间
    sudo ntpdate cn.pool.ntp.org (可能会出现提示:ntpdate[11697]: no server suitable for synchronization found,不用理会)
    2.2 修改时区和时间
    请参考ubuntu如何修改时区和时间
    3.总结
    这个问题是由于时间不一致导致的,只需更新时间即可