首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >apt update 升级debian jessie KEYEXPIRED 1587841717?

apt update 升级debian jessie KEYEXPIRED 1587841717?

提问于 2024-01-06 19:27:34
回答 2关注 0查看 128

解决方法

1、查看过期信息

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>

2、修改系统时间,时间小于上面最小过期时间2019-05-07即可

date -s "20180101 18:30:00"

3、root@debian:/opt# apt-get update --allow-unauthenticated

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

成功

4、修改回系统时间即可

网上提到的方法试过了,无效

1、修改源为网易 /etc/apt/sources.list

deb [trusted=yes] http://mirrors.163.com/debian-archive/debian/ jessie main non-free contrib

2、设置 /etc/apt/apt.conf

APT::Install-Recommends "false";

Get::AllowUnauthenticated true;

Acquire::Check-Valid-Until false;

3、更新 apt update仍然出现

W: GPG error: http://mirrors.163.com jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717

相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档