InRelease is not valid yet Updates for this repository will not be applied – chyba

By | 28/07/2022

Last Updated on 02/01/2024 by administrator

InRelease is not valid yet Updates for this repository will not be applied – chyba

Motivace:

Při použití příkazu apt upgrade nebo apt-get upgrade se objeví chyba: InRelease is not valid yet (invalid for another 169d 22h 6min 49s). Updates for this repository will not be applied.

user@ubuntu:~# sudo apt update                                                                                                                                       
Hit:1 http://cz.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://cz.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:4 http://cz.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Reading package lists... Done 
E: Release file for http://cz.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease is not valid yet (invalid for another 169d 22h 6min 49s). Updates for this repository will not be applied.
E: Release file for http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease is not valid yet (invalid for another 170d 3h 18min 12s). Updates for this repository will not be applied.
E: Release file for http://cz.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease is not valid yet (invalid for another 169d 22h 8min 8s). Updates for this repository will not be applied.

Pravděpodobně není synchronizovaný systémový čas, což se dá zjistit z příkazu:

date

Výstup příkazu date ukazuje špatný čas a datum.

Ne 26. prosince 2021, 16:43:50 CET

Řešení:

Synchronizace času se provede příkazem:

sudo hwclock -s

Ověření synchronizace času:

date

Výstup příkazu date ukazuje, že čas a datum byl synchronizován.

So 25. června 2022, 22:46:20 CET

Další článek:

Chybu – Could not get lock /var/lib/dpkg/lock-frontend, řeší tento článek.

Zdroj:

[1] https://askubuntu.com/questions/1096930/sudo-apt-update-error-release-file-is-not-yet-valid

Napsat komentář

Vaše e-mailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *