intel/intel-cmt-cat

build_docker.sh reports "Release file for ... is not valid yet" error

bobjiang82 opened this issue · 2 comments

[root@pue04 docker]# ./build_docker.sh
+ docker build --build-arg http_proxy=http://child-prc.intel.com:913 --build-arg https_proxy=http://child-prc.intel.com:913 -t appqos -f Dockerfile ../../
Sending build context to Docker daemon 2.623MB
Step 1/33 : FROM ubuntu:22.04 AS base
22.04: Pulling from library/ubuntu
494bf829f389: Pull complete
Digest: sha256:06b5d30fabc1fc574f2ecab87375692299d45f8f190d9b71f512deb494114e1f
Status: Downloaded newer image for ubuntu:22.04
---> f0b07b45d05b
Step 2/33 : ENV DEBIAN_FRONTEND noninteractive
---> Running in 994112d6e3bc
Removing intermediate container 994112d6e3bc
---> 7153770c09ec
Step 3/33 : RUN apt-get update -q && apt-get upgrade -y --no-install-recommends && apt-get install -y --no-install-recommends python3-minimal libpython3-stdlib && apt-get clean
---> Running in 8c755740252d
Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [90.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [90.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [90.7 kB]
Reading package lists...
E: Release file for http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease is not valid yet (invalid for another 7h 39min 41s). Updates for this repository will not be applied.
The command '/bin/sh -c apt-get update -q && apt-get upgrade -y --no-install-recommends && apt-get install -y --no-install-recommends python3-minimal libpython3-stdlib && apt-get clean' returned a non-zero code: 100

[root@pue04 docker]# uname -a
Linux pue04 5.17.3-1.el7.elrepo.x86_64 #1 SMP PREEMPT Wed Apr 13 07:15:07 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
[root@pue04 docker]#
[root@pue04 docker]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
[root@pue04 docker]#
[root@pue04 docker]# docker version
Client: Docker Engine - Community
Version: 20.10.14
API version: 1.41
Go version: go1.16.15
Git commit: a224086
Built: Thu Mar 24 01:49:57 2022
OS/Arch: linux/amd64
Context: default
Experimental: true

Server: Docker Engine - Community
Engine:
Version: 20.10.14
API version: 1.41 (minimum version 1.12)
Go version: go1.16.15
Git commit: 87a90dc
Built: Thu Mar 24 01:48:24 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.5.11
GitCommit: 3df54a852345ae127d1fa3092b95168e4a88e2f8
runc:
Version: 1.0.3
GitCommit: v1.0.3-0-gf46b6ba
docker-init:
Version: 0.19.0
GitCommit: de40ad0

Resolved by syncing system time on the node.