概要
apt update
をすると、下記のようなエラーがでる。
E: Release file for http://ftp.jp.debian.org/debian/dists/bookworm/InRelease is not valid yet (invalid for another 6h 56min 48s). Updates for this repository will not be applied.
- 時刻がずれているため、こんな感じのエラーがでるらしい。(ラズパイに限らずaptコマンドを使うときには発生するみたい。)
- 解決方法としては、
date -s "01/18 15:00 2022"
のように時刻を修正してあげればOK
環境
RaspberryPi2
OS:Debian
解決方法
- timezoneをAsia/Tokyoに変更(これはタイムゾーンが異なると、次のコマンドで日付時刻を合わせても日付時刻がずれていると判定されるため)
timedatectl set-timezone Asia/Tokyo
- 日付時刻の修正
date -s "01/30 13:00 2015"
コメント