Kali-Linux apt-get update不了,换源要安装KEY,安装KEY要安装gnupg,安装gnupg要apt-get update,死循环啊
执行sudo apt-get update后,Kali报错:
Get:1 http://mirrors.neusoft.edu.cn/kali kali-rolling InRelease [30.6 kB]
Err:1 http://mirrors.neusoft.edu.cn/kali kali-rolling InRelease
The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
Fetched 30.6 kB in 1s (20.7 kB/s)
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.neusoft.edu.cn/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.
这个时候需要安装一个key。
可以浏览器访问:https://http.kali.org/kali/pool/main/k/kali-archive-keyring/然后看里面文件名是什么。现在是 kali-archive-keyring_2022.1_all.deb 这个名字可能过几天会变得
执行下面命令:
wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2022.1_all.deb --no-check-certificate
然后:
sudo apt install ./kali-archive-keyring_2022.1_all.deb
愉快的 sudo apt update 去吧