自 2022 年 11 月 19 日起,Debian 8 上的 apt-get 更新在运行 apt-get 更新时出现以下错误/警告:
W: GPG error: http://archive.debian.org jessie Release:
The following signatures were invalid: KEYEXPIRED 1587841717
Run Code Online (Sandbox Code Playgroud)
我的 /etc/apt/sources.list 的内容:
deb http://archive.debian.org/debian/ jessie main contrib non-free
deb http://deb.freexian.com/extended-lts jessie-lts main contrib non-free
Run Code Online (Sandbox Code Playgroud)
过期的密钥:
apt-key list
/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg
pub 4096R/2B90D010 2014-11-21 [expired: 2022-11-19]
uid Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>
/etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg
pub 4096R/C857C906 2014-11-21 [expired: 2022-11-19]
uid Debian Security Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>
Run Code Online (Sandbox Code Playgroud)
我安装了 debian-archive-keyring 软件包。
我尝试使用以下方法更新密钥:
gpg --keyserver keyring.debian.org …Run Code Online (Sandbox Code Playgroud)