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

pi@raspberrypi:~ $ 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: 3454
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: 36105
Joined: Sun Jun 16, 2013 11:19 pm
Location: 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: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
Mettauk
Posts: 237
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: 3454
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: 237
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: 650
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.

Return to “Troubleshooting”