W 校验数字签名时出错。此仓库未被更新,所以仍然使用此前的索引文件。GPG 错误:httpmirrors.ustc.edu.cnkali kali-rolling
报错如下
┌──(root💀kali)-[~]
└─# sudo apt-get update 2 ⚙
获取:1 http://kali.download/kali kali-rolling InRelease [41.2 kB]
错误:1 http://kali.download/kali kali-rolling InRelease
下列签名无效: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
已下载 41.2 kB,耗时 3秒 (15.7 kB/s)
正在读取软件包列表... 完成
W: 校验数字签名时出错。此仓库未被更新,所以仍然使用此前的索引文件。GPG 错误:http://kali.download/kali kali-rolling InRelease: 下列签名无效: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
W: 无法下载 http://http.kali.org/kali/dists/kali-rolling/InRelease 下列签名无效: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
┌──(root💀kali)-[~]
└─# wget archive.kali.org/archive-key.asc 2 ⚙
--2023-02-26 06:31:16-- http://archive.kali.org/archive-key.asc
正在解析主机 archive.kali.org (archive.kali.org)... 192.99.45.140
正在连接 archive.kali.org (archive.kali.org)|192.99.45.140|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:3155 (3.1K) [application/octet-stream]
正在保存至: “archive-key.asc”
archive-key.asc 100%[===============================>] 3.08K 1.46KB/s 用时 2.1s
2023-02-26 06:31:20 (1.46 KB/s) - 已保存 “archive-key.asc” [3155/3155])
┌──(root💀kali)-[]]
└─# apt-key add archive-key.asc 2 ⚙
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
┌──(root💀kali)-[
└─# sudo apt-get update 2 ⚙
获取:1 http://kali.download/kali kali-rolling InRelease [41.2 kB]
获取:2 http://kali.download/kali kali-rolling/main amd64 Packages [19.5 MB]
获取:3 http://kali.download/kali kali-rolling/main amd64 Contents (deb) [45.4 MB]
获取:4 http://kali.download/kali kali-rolling/contrib amd64 Packages [116 kB]
获取:5 http://kali.download/kali kali-rolling/contrib amd64 Contents (deb) [172 kB]
获取:6 http://kali.download/kali kali-rolling/non-free amd64 Packages [222 kB]
获取:7 http://kali.download/kali kali-rolling/non-free amd64 Contents (deb) [931 kB]
已下载 66.3 MB,耗时 49秒 (1,360 kB/s)
正在读取软件包列表… 完成
解决方法如下
wget archive.kali.org/archive-key.asc //下载签名
apt-key add archive-key.asc //安装签名