1305_A
Posts: 3
Joined: Tue Jul 09, 2019 12:58 am

Not being able to update properly

Tue Jul 09, 2019 1:03 am

Code: Select all

[email protected]:~ $ sudo apt update
Get:1 http://archive.raspberrypi.org/debian buster InRelease [25.1 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Reading package lists... Done
E: Release file for http://archive.raspberrypi.org/debian/dists/buster/InRelease is not valid yet (invalid for another 17d 21h 7min 45s). Updates for this repository will not be applied.
E: Release file for http://raspbian.raspberrypi.org/raspbian/dists/buster/InRelease is not valid yet (invalid for another 18d 5h 22min 28s). Updates for this repository will not be applied.
Is there anything I have to do to fix this? I honestly don't know the problem here.

plugwash
Forum Moderator
Forum Moderator
Posts: 3574
Joined: Wed Dec 28, 2011 11:45 pm

Re: Not being able to update properly

Tue Jul 09, 2019 1:08 am

Looks like your system's clock is wrong.

1305_A
Posts: 3
Joined: Tue Jul 09, 2019 12:58 am

Re: Not being able to update properly

Tue Jul 09, 2019 6:54 pm

That is indeed the case, as it displays the current date as June 20th. How do I fix this?

User avatar
DougieLawson
Posts: 38448
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Not being able to update properly

Tue Jul 09, 2019 9:44 pm

1305_A wrote:
Tue Jul 09, 2019 6:54 pm
That is indeed the case, as it displays the current date as June 20th. How do I fix this?
sudo date -s '9 Jul 2019 22:44'
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

I'll do your homework for you for a suitable fee.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
Mettauk
Posts: 238
Joined: Mon Dec 10, 2012 12:40 pm
Location: Zarg

Re: Not being able to update properly

Tue Jul 09, 2019 11:51 pm

Same or similar issue except date is correct

Code: Select all

:~ $ sudo apt-get update && sudo apt-get dist-upgrade
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Reading package lists... Done
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'testing' to 'stable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

:~ $ date
Wed 10 Jul 00:50:32 BST 2019


As humans we have been the same for a very very long time, technology changes how we do... not who we are as people.

plugwash
Forum Moderator
Forum Moderator
Posts: 3574
Joined: Wed Dec 28, 2011 11:45 pm

Re: Not being able to update properly

Wed Jul 10, 2019 1:02 am

sudo apt-get update --allow-releaseinfo-change

1305_A
Posts: 3
Joined: Tue Jul 09, 2019 12:58 am

Re: Not being able to update properly

Wed Jul 10, 2019 8:18 pm

DougieLawson wrote:
Tue Jul 09, 2019 9:44 pm
1305_A wrote:
Tue Jul 09, 2019 6:54 pm
That is indeed the case, as it displays the current date as June 20th. How do I fix this?
sudo date -s '9 Jul 2019 22:44'
That worked. Thanks! :D

User avatar
Mettauk
Posts: 238
Joined: Mon Dec 10, 2012 12:40 pm
Location: Zarg

Re: Not being able to update properly

Wed Jul 10, 2019 9:04 pm

plugwash wrote:
Wed Jul 10, 2019 1:02 am
sudo apt-get update --allow-releaseinfo-change
Thanks that fixed both instances, one on a P4b the other on a B+
As humans we have been the same for a very very long time, technology changes how we do... not who we are as people.

gkaiseril
Posts: 683
Joined: Mon Aug 08, 2016 9:27 pm
Location: Chicago, IL

Re: Not being able to update properly

Wed Jul 10, 2019 10:12 pm

The date command will set both date and time. It is best to supply both when issuing the command.

For more information see the man page for date.

One can also use the timedatectl command to set the date and time.
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

Ahmed_Desoky
Posts: 2
Joined: Sat Mar 26, 2016 2:10 pm

Re: Not being able to update properly

Tue Nov 12, 2019 10:37 pm

DougieLawson wrote:
Tue Jul 09, 2019 9:44 pm
1305_A wrote:
Tue Jul 09, 2019 6:54 pm
That is indeed the case, as it displays the current date as June 20th. How do I fix this?
sudo date -s '9 Jul 2019 22:44'
Thank you,
you save me.
Thanks again.

Return to “Troubleshooting”