Debian 7.11无法绕过GPG校验进行软件包重装/更新的问题求助
Debian 7.11无法绕过GPG校验进行软件包重装/更新的问题求助
我正在一台Debian 7.11(Wheezy)机器上重装一些软件包,我知道这个版本已经不再官方支持了,但归档仓库应该还能正常使用对吧?
先贴一下我的系统信息:
# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.11 (wheezy) Release: 7.11 Codename: wheezy
我把/etc/sources.list更新成了下面这一行:
deb http://archive.debian.org/debian wheezy main
操作过程中一切都正常,直到系统开始检查已过期的GPG签名。我试过添加各种命令行选项来绕过签名验证,但不管怎么操作,都没法跳过GPG检查去重装我需要的包。
最头疼的问题是:--allow-unauthenticated选项完全不起作用,安装/更新还是会失败。
我还尝试过在sources.list里直接添加信任标识,比如:
deb [trusted=yes] http://examplemachine/debian wheezy main
之后执行更新命令的输出如下:
# apt-get --allow-unauthenticated update Get:1 http://archive.debian.org wheezy Release.gpg [2,373 B] Hit http://archive.debian.org wheezy Release Ign http://archive.debian.org wheezy Release Ign http://archive.debian.org wheezy/main i386 Packages/DiffIndex Hit http://archive.debian.org wheezy/main Translation-en Hit http://archive.debian.org wheezy/main i386 Packages Ign http://archive.debian.org wheezy/main Translation-en_US Fetched 2,373 B in 3s (680 B/s) Reading package lists... Done W: GPG error: http://archive.debian.org wheezy Release: The following signatures were invalid: KEYEXPIRED 1587841717 KEYEXPIRED 1668891673 KEYEXPIRED 1557241909
备注:内容来源于stack exchange,提问作者msacks
相关产品推荐
相关产品推荐

