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 修改時區和時間
3.總結
這個問題是由於時間不一致導致的,只需更新時間即可