Kali Linux使用apt-get更新报错密钥过期解决 GPG错误 KEYEXPIRED 1425567400
问题描述
Kali Linux由于太长时间未更新,而出现GPG错误 KEYEXPIRED 1425567400。经检查源未出现问题可以解析,deb也不冲突,就是密钥过期了。
好久没有更新kali了,今天趁着更新了虚拟机,便打开想要跟新一下这个系统,结果没想到遇到了如图的问题。
先是使用GUI来更新出现了404错误,然后使用apt-get则报错密钥过期。
好吧,无论如何,这不是deb冲突,也不是源无法解析,你需要做的是更新密钥。
使用下面的一条命令来将新的密钥添加进你的apt-keyring
apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
然后在执行 “apt-get update”即可。
这样再次更新软件列表就不会出现GPG错误了,也不会再出现404问题。
我使用内核3.12-Kali-AMD 64运行版本1.0.9 64位,并在尝试使用APT-GET更新时获取错误
首先尝试命令行接口,得到错误。下面是控制台输出,gpg键和源列表。
在过去的两天里,我更新了2台台式机,没有问题。我遇到麻烦的机器是ThinkPad X1碳。
使用软件更新gui会出现“未能处理请求”错误:
E: Error http://http.kali.org/kali/ kali/main linux-image-3.14-kali1-amd64 amd64 3.14.5-1kali2 404 Not Found
XXX@kali:~$ sudo apt-get update Hit http://dl.google.com stable Release.gpg Hit http://dl.google.com stable Release Hit http://dl.google.com stable/main amd64 Packages Get:1 http://repo.kali.org kali-bleeding-edge Release.gpg [836 B] Hit http://ppa.launchpad.net lucid Release.gpg Get:2 http://repo.kali.org kali-bleeding-edge Release [11.0 kB] Err http://repo.kali.org kali-bleeding-edge Release Hit http://ppa.launchpad.net lucid Release Ign http://dl.google.com stable/main Translation-en_US Get:3 http://http.kali.org kali Release.gpg [836 B] Ign http://dl.google.com stable/main Translation-en Hit http://ppa.launchpad.net lucid/main amd64 Packages Get:4 http://security.kali.org kali/updates Release.gpg [836 B] Get:5 http://http.kali.org kali Release [21.1 kB] Err http://http.kali.org kali Release Get:6 http://security.kali.org kali/updates Release [11.0 kB] Err http://security.kali.org kali/updates Release Ign http://ppa.launchpad.net lucid/main Translation-en_US Ign http://ppa.launchpad.net lucid/main Translation-en Fetched 2,511 B in 2s (922 B/s) Reading package lists... Done W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.kali.org kali-bleeding-edge Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://http.kali.org kali Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.kali.org kali/updates Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 W: Failed to fetch http://repo.kali.org/kali/dists/kali-bleeding-edge/Release W: Failed to fetch http://http.kali.org/kali/dists/kali/Release W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/Release W: Some index files failed to download. They have been ignored, or old ones used instead. XXX@kali:~$ gpg --list-keys /home/XXX/.gnupg/pubring.gpg --------------------------------- [snip] pub 4096R/7D8D0BF6 2012-03-05 [expires: 2018-02-02] uid Kali Linux Repository <devel@kali.org> sub 4096R/FC0D0DCB 2012-03-05 [expires: 2018-02-02] XXX@kali:~$ cat /etc/apt/sources.list # # deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130905-07:57]/ kali contrib main non-free deb http://http.kali.org/kali kali main non-free contrib deb-src http://http.kali.org/kali kali main non-free contrib ## Security updates deb http://security.kali.org/kali-security kali/updates main contrib non-free # Bleeding Edge deb http://repo.kali.org/kali kali-bleeding-edge main # XXX added this block on 05April2014 ---> NOTE 3-5-2015 commenting the line below out does not help my apt-get upgrade issue!!! # Repository for tlp power management deb http://ppa.launchpad.net/linrunner/tlp/ubuntu lucid main
点击链接加入群聊三群:751529538
点击链接加入群聊二群:376877156
点击链接加入群聊【路由器交流群:622891808已满】
本站附件分享,如果附件失效,可以去找找看
饿了么红包
于2021-06-25发布