root@debian:/opt# apt-key list | grep expired -A1
pub 4096R/46925553 2012-04-27 [expired: 2020-04-25]
uid Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>
pub 4096R/65FFB764 2012-05-08 [expired: 2019-05-07]
uid Wheezy Stable Release Key <debian-release@lists.debian.org>
date -s "20180101 18:30:00"
Ign http://mirrors.163.com jessie InRelease
Get:1 http://mirrors.163.com jessie Release.gpg [2,420 B]
Hit http://mirrors.163.com jessie Release
...
Fetched 2,420 B in 11s (217 B/s)
Reading package lists... Done
成功
deb [trusted=yes] http://mirrors.163.com/debian-archive/debian/ jessie main non-free contrib
APT::Install-Recommends "false";
Get::AllowUnauthenticated true;
Acquire::Check-Valid-Until false;
W: GPG error: http://mirrors.163.com jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717
相似问题