kali更新報錯An error occurred during the signature verification的解決方案

0x00 Kali環境

uname -a
Linux localhost.localdomain 4.7.0-kali1-amd64 #1 SMP Debian 4.7.5-1kali3 (2016-09-29) x86_64 GNU/Linux

0x01 update報錯

root@localhost:~# apt-get update
Get:1 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease [30.5 kB]
Err:1 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
Hit:2 https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://mirrors.ustc.edu.cn/kali kali-rolling InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
W: Failed to fetch http://mirrors.ustc.edu.cn/kali/dists/kali-rolling/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
W: Some index files failed to download. They have been ignored, or old ones used instead.

0x02 解決方法

清理key

LZ之前的錯誤信息不是NO_PUBKEY ED444FF07D8D0BF6 而是EXPKEYSIG CDFB5FA52007B954。把CDFB5FA52007B954刪掉後轉換成了此問題。

sudo apt-key del ED444FF07D8D0BF6

更新key

root@localhost:~# wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
OK

重新update

root@localhost:~# apt-get update
Hit:1 https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease
Get:2 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease [30.5 kB]
Get:3 http://mirrors.ustc.edu.cn/kali kali-rolling/contrib Sources [61.2 kB]
Get:4 http://mirrors.ustc.edu.cn/kali kali-rolling/main Sources [13.0 MB]
Get:5 http://mirrors.ustc.edu.cn/kali kali-rolling/non-free Sources [124 kB]                                                                                                    
Get:6 http://mirrors.ustc.edu.cn/kali kali-rolling/main amd64 Packages [16.5 MB]                                                                                                
Get:7 http://mirrors.ustc.edu.cn/kali kali-rolling/non-free amd64 Packages [195 kB]                                                                                             
Get:8 http://mirrors.ustc.edu.cn/kali kali-rolling/contrib amd64 Packages [99.4 kB]                                                                                             
Fetched 30.0 MB in 39s (762 kB/s)                                                                                                                                               
Reading package lists... Done

0x03 一些可用的kali源

vim /etc/apt/sources.list

可以自行算則一部分

#中科大
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
#阿里雲
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
#清華大學
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
#163
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib
#東軟大學
deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
#官方源
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

0x04 參考文獻

https://blog.csdn.net/henuyh/article/details/90145600

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章