1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

raspberrypiでapt updateしたときE: Release file for http://deb.debian.org/debian-security/dists/bookworm-security/InRelease is not valid yetとなる場合

Last updated at Posted at 2024-04-26

はじめに

raspberry pi (debian)でupdateを行おうとしたときに,
Err:6 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu mantic Release 404 Not Found
と出たので,解決方法を備忘録として上げておきます.debian,ubuntuなら同様の方法で解決出来ると思われます.

環境

Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm

エラー

Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:4 http://archive.raspberrypi.com/debian bookworm InRelease [23.6 kB]
Reading package lists... Done
E: Release file for http://deb.debian.org/debian-security/dists/bookworm-security/InRelease is not valid yet (invalid for another 2d 1h 30min 43s). 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 2d 1h 17min 41s). Updates for this repository will not be applied.
E: Release file for http://archive.raspberrypi.com/debian/dists/bookworm/InRelease is not valid yet (invalid for another 2d 4h 28min 42s). Updates for this repository will not be applied.

原因

raspberry piの時計が合っていないだけです.

対策

1 Raspberry Pi の時計
2 手動による時刻合わせ
3 NTPによる時刻合わせ
今回はお手軽に2番の手動で合わせる方法を使います.
以下のようにterminalにコマンドを打つだけです.

 sudo date --set='2024/04/26 10:39:00'
  • もう一度アップデートコマンドを入力
sudo apt update

終わりに

同様に困っている方がいたら参考にしてください.間違えなどありましたら,教えていただけるとありがたいです.

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?