sudo apt update出现以下错误
E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/InRelease is not valid yet (invalid for another 89d 10h 33min 13s). Updates for this repository will not be applied.
root@lwl-ubuntu:/data/test# sudo apt update
Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 Packages [940 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports focal/main Translation-en [506 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 Packages [8458 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports focal/universe Translation-en [5124 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports focal/restricted arm64 Packages [1300 B]
Get:9 http://ports.ubuntu.com/ubuntu-ports focal/restricted Translation-en [6212 B]
Reading package lists... Done
E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/InRelease is not valid yet (invalid for another 89d 10h 33min 13s). Updates for this repository will not be applied.
E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/InRelease is not valid yet (invalid for another 89d 7h 56min 56s). Updates for this repository will not be applied.
解决方法:
时钟不同步,修改下系统时间:
date -s "2023-05-23 10:49:21"