Repository not valid yet

Help with issues regarding installation of Debian

Repository not valid yet

Postby cristianoub » 2018-06-21 02:14

Hi, this look like a beginner error, but I will be glad for the help, I just tried all the thing that I found about this but I cannot fix.
I'm running debian under docker and receiving this error message:
Step 3 : RUN apt-get update && apt-get -y dist-upgrade
---> Running in d7f3fefbcd36
Get:1 http://cdn-fastly.deb.debian.org/debian testing InRelease [150 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian sid InRelease [247 kB]
Reading package lists...
E: Release file for http://deb.debian.org/debian/dists/testing/InRelease is not valid yet (invalid for another 17h 10min 25s). Updates for this repository will not be applied.
E: Release file for http://http.debian.net/debian/dists/sid/InRelease is not valid yet (invalid for another 17h 10min 25s). Updates for this repository will not be applied.
The command '/bin/sh -c apt-get update && apt-get -y dist-upgrade' returned a non-zero code: 100


The docker file structure is:
FROM r-base:3.4.4
RUN apt-get clean
RUN \
apt-get update && \
apt-get -y dist-upgrade

How can I fix this?

Tks
cristianoub
 
Posts: 1
Joined: 2018-06-21 02:02

Re: Repository not valid yet

Postby Head_on_a_Stick » 2018-06-21 04:55

You need to set the clock in your docker container, try
Code: Select all
# timedatectl set-ntp on
Charlie don't hack
User avatar
Head_on_a_Stick
 
Posts: 7668
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Installation

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable