ポンコツエンジニアのごじゃっぺ開発日記。

いろいろポンコツだけど、気にするな。エンジニアの日々の開発などの記録を残していきます。 自動で収入を得られるサービスやシステムを作ることが目標!!

【解消済み】docker、apt-getでエラー

エラーになったのでその解消メモ

事象

  • docker-compose up -dでエラーが発生した
  • phpのコンテナないでapt-getしているところでエラー

エラー内容

エラー内容は以下

Building php
Step 1/12 : FROM php:7.4.6-fpm
 ---> 612022ee981a
Step 2/12 : ENV TZ=Asia/Tokyo
 ---> Using cache
 ---> 5caaf17ff3df
Step 3/12 : RUN apt-get update && apt-get install -y --no-install-recommends libicu-dev git unzip zlib1g-dev libzip-dev libonig-dev libgmp-dev
 ---> Running in daa9bd240fcd
Get:1 http://deb.debian.org/debian buster InRelease [121 kB]
Get:2 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:3 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Reading package lists...
E: Release file for http://deb.debian.org/debian/dists/buster/InRelease is not valid yet (invalid for another 73d 6h 37min 13s). Updates for this repository will not be applied.
E: Release file for http://deb.debian.org/debian/dists/buster-updates/InRelease is not valid yet (invalid for another 103d 10h 6min 59s). Updates for this repository will not be applied.
E: Release file for http://security.debian.org/debian-security/dists/buster/updates/InRelease is not valid yet (invalid for another 102d 20h 32min 54s). Updates for this repository will not be applied.

原因・解消方法

macの時計がおかしな時間になっていたので、正しい時間に戻したらエラーがなくなった

お問い合わせプライバシーポリシー制作物