问题描述
root@nanopi-r6s:~# apt update
Get:2 http://security.debian.org bookworm-security InRelease [48.0 kB]
Hit:3 http://deb.debian.org/debian bookworm InRelease
Get:4 https://github.armbian.com/configng stable InRelease [3,264 B]
Get:5 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:1 http://armbian.tnahosting.net/apt bookworm InRelease [53.3 kB]
Get:6 http://deb.debian.org/debian bookworm-backports InRelease [59.0 kB]
Reading package lists… Done
E: Release file for http://security.debian.org/dists/bookworm-security/InRelease is not valid yet (invalid for another 9d 9h 17min 6s). Updates for this repository will not be applied.
E: Release file for https://github.armbian.com/configng/dists/stable/InRelease is not valid yet (invalid for another 9d 2h 21min 34s). Updates for this repository will not be applied.
E: Release file for http://deb.debian.org/debian/dists/bookworm-updates/InRelease is not valid yet (invalid for another 9d 22h 19min 42s). Updates for this repository will not be applied.
E: Release file for http://apt.armbian.com/dists/bookworm/InRelease is not valid yet (invalid for another 9d 9h 14min 39s). Updates for this repository will not be applied.
E: Release file for http://deb.debian.org/debian/dists/bookworm-backports/InRelease is not valid yet (invalid for another 9d 22h 19min 42s). Updates for this repository will not be applied.
问题原因:
log也提示了是因为系统时间不对,所以报错了,需要
解决办法:
设置系统时间即可解决
date -s 2024/12/10
或者同步系统时间
root@nanopi-r6s:~# ntpdate cn.ntp.org.cn
2024-12-10 13:03:58.316924 (+0000) +875141.017888 +/- 3.067023 cn.ntp.org.cn 203.107.6.88 s2 no-leap
CLOCK: time stepped by 875141.017888
CLOCK: time changed from 2024-11-30 to 2024-12-10
root@nanopi-r6s:~# apt update
Hit:2 http://deb.debian.org/debian bookworm InRelease
Get:3 https://github.armbian.com/configng stable InRelease [3,264 B]
Get:4 http://security.debian.org bookworm-security InRelease [48.0 kB]
Get:5 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:1 http://fi.mirror.armbian.de/apt bookworm InRelease [53.3 kB]
Get:6 https://github.armbian.com/configng stable/main arm64 Packages [540 B]
Get:7 http://deb.debian.org/debian bookworm-backports InRelease [59.0 kB]
Get:8 http://security.debian.org bookworm-security/main arm64 Packages [211 kB]
Get:9 http://deb.debian.org/debian bookworm-updates/main arm64 Packages.diff/Index [14.0 kB]
Get:10 http://fi.mirror.armbian.de/apt bookworm/main all Packages [15.8 kB]
Get:11 http://deb.debian.org/debian bookworm-backports/main arm64 Packages.diff/Index [63.3 kB]
Get:12 http://fi.mirror.armbian.de/apt bookworm/main arm64 Packages [1,161 kB]
Get:13 http://deb.debian.org/debian bookworm-updates/main arm64 Packages T-2024-12-07-2012.31-F-2024-12-07-2012.31.pdiff [7,252 B]
Get:13 http://deb.debian.org/debian bookworm-updates/main arm64 Packages T-2024-12-07-2012.31-F-2024-12-07-2012.31.pdiff [7,252 B]
Get:14 http://fi.mirror.armbian.de/apt bookworm/bookworm-utils arm64 Packages [31.2 kB]
Get:15 http://fi.mirror.armbian.de/apt bookworm/bookworm-desktop arm64 Packages [12.4 kB]
Get:16 http://fi.mirror.armbian.de/apt bookworm/bookworm-desktop all Packages [6,905 B]
Get:17 http://deb.debian.org/debian bookworm-backports/main arm64 Packages T-2024-12-09-2010.23-F-2024-11-30-1407.12.pdiff [15.6 kB]
Get:17 http://deb.debian.org/debian bookworm-backports/main arm64 Packages T-2024-12-09-2010.23-F-2024-11-30-1407.12.pdiff [15.6 kB]
Fetched 1,539 kB in 5s (314 kB/s)
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
2 packages can be upgraded. Run 'apt list –upgradable' to see them.
root@nanopi-r6s:~#