Page 1 of 1

Not being able to update properly

Posted: Tue Jul 09, 2019 1:03 am
by 1305_A

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.

Re: Not being able to update properly

Posted: Tue Jul 09, 2019 1:08 am
by plugwash
Looks like your system's clock is wrong.

Re: Not being able to update properly

Posted: Tue Jul 09, 2019 6:54 pm
by 1305_A
That is indeed the case, as it displays the current date as June 20th. How do I fix this?

Re: Not being able to update properly

Posted: Tue Jul 09, 2019 9:44 pm
by DougieLawson
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'

Re: Not being able to update properly

Posted: Tue Jul 09, 2019 11:51 pm
by Mettauk
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



Re: Not being able to update properly

Posted: Wed Jul 10, 2019 1:02 am
by plugwash
sudo apt-get update --allow-releaseinfo-change

Re: Not being able to update properly

Posted: Wed Jul 10, 2019 8:18 pm
by 1305_A
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

Re: Not being able to update properly

Posted: Wed Jul 10, 2019 9:04 pm
by Mettauk
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+

Re: Not being able to update properly

Posted: Wed Jul 10, 2019 10:12 pm
by gkaiseril
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.