🐧 Как исправить ошибку «repository is not valid yet»

by itisgood

Что значит Release file for […] is not valid yet (invalid for another […]). Updates for this repository will not be applied.“?

Сообщение об ошибке, указывающее, что файл релиза еще не действителен.

$ sudo apt update
Get:1 http://security.debian.org/debian-security buster/updates InRelease [39.1 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Reading package lists... Done                                        
E: Release file for http://security.debian.org/debian-security/dists/buster/updates/InRelease is not valid yet (invalid for another 28d 16h 59min 44s). Updates for this repository will not be applied.
E: Release file for http://deb.debian.org/debian/dists/buster/InRelease is not valid yet (invalid for another 28d 11h 11min 20s). Updates for this repository will not be applied.

Системное время.

$ timedatectl 
               Local time: Fri 2019-08-09 22:40:02 GMT
           Universal time: Fri 2019-08-09 22:40:02 UTC
                 RTC time: Fri 2019-08-09 22:40:03
                Time zone: GMT+0 (GMT, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

файл релиза

$ sudo head -14 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_InRelease
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Origin: Debian
Label: Debian
Suite: stable
Version: 10.1
Codename: buster
Changelogs: http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog
Date: Sat, 07 Sep 2019 09:51:20 UTC
Acquire-By-Hash: yes
Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
Components: main contrib non-free
Description: Debian 10.1 Released 07 September 2019
Обратите внимание на разницу во времени, мы сейчас в прошлом :-). Это может произойти, когда вы восстанавливаете систему из моментального снэпшота, поэтому индикация времени будет неправильной некоторое время.
Синхронизируйте время или подождите, пока система обновит его из удаленного источника.
$ timedatectl 
               Local time: Sun 2019-09-08 09:48:49 GMT
           Universal time: Sun 2019-09-08 09:48:49 UTC
                 RTC time: Fri 2019-08-09 22:40:33
                Time zone: GMT+0 (GMT, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no
Проблема решена
$ sudo apt update
Get:1 http://security.debian.org/debian-security buster/updates InRelease [39.1 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://security.debian.org/debian-security buster/updates/main Sources [41.9 kB]
Get:4 http://deb.debian.org/debian buster/main Sources [7,832 kB]    
Get:5 http://security.debian.org/debian-security buster/updates/main amd64 Packages [82.1 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 Packages [7,899 kB]
Fetched 15.9 MB in 7s (2,148 kB/s)                                                                                                                                                
Reading package lists... Done
Building dependency tree       
Reading state information... Done
107 packages can be upgraded. Run 'apt list --upgradable' to see them.

 

You may also like

Leave a Comment