我尝试在 WSL Kali linux 上执行 sudo apt update && sudo apt Upgrade 。但我会得到这个。
sudo apt update
Get:1 http://wlglam.fsmg.org.nz/kali kali-rolling InRelease [30.5 kB]
Err:1 http://wlglam.fsmg.org.nz/kali kali-rolling InRelease
The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
Fetched 30.5 kB in 2s (13.8 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://wlglam.fsmg.org.nz/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.
我试过这个回答已经并且不起作用了。具体来说
wget -q -O -https://archive.kali.org/archive-key.asc| apt-key 添加
我尝试过的所有其他方法都会导致此结果(无论有或没有 sudo)
E:gnupg、gnupg2和gnupg1似乎没有安装,但此操作需要其中之一
如果我尝试安装 gnupg,则会出现错误 404 not found,
Err:7 http://http.kali.org/kali kali-rolling/main amd64 gnupg-l10n all 2.2.9-1
404 Not Found [IP: 192.99.200.113 80]
Err:8 http://http.kali.org/kali kali-rolling/main amd64 gnupg-utils amd64 2.2.9-1
404 Not Found [IP: 192.99.200.113 80]
Err:9 http://http.kali.org/kali kali-rolling/main amd64 libsqlite3-0 amd64 3.24.0-1
404 Not Found [IP: 192.99.200.113 80]
Err:10 http://http.kali.org/kali kali-rolling/main amd64 gpg amd64 2.2.9-1
404 Not Found [IP: 192.99.200.113 80]
Err:11 http://http.kali.org/kali kali-rolling/main amd64 gpg-agent amd64 2.2.9-1
404 Not Found [IP: 192.99.200.113 80]
Err:12 http://http.kali.org/kali kali-rolling/main amd64 gpg-wks-client amd64 2.2.9-1
404 Not Found [IP: 192.99.200.113 80]
Err:13 http://http.kali.org/kali kali-rolling/main amd64 gpg-wks-server amd64 2.2.9-1
404 Not Found [IP: 192.99.200.113 80]
Err:14 http://http.kali.org/kali kali-rolling/main amd64 gpgsm amd64 2.2.9-1
404 Not Found [IP: 192.99.200.113 80]
Err:15 http://http.kali.org/kali kali-rolling/main amd64 gnupg all 2.2.9-1
404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/liba/libassuan/libassuan0_2.5.1-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/r/readline/libreadline7_7.0-5_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gnupg2/gpgconf_2.2.9-1_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/libk/libksba/libksba8_1.3.5-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/n/npth/libnpth0_1.6-1_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gnupg2/dirmngr_2.2.9-1_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gnupg2/gnupg-l10n_2.2.9-1_all.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gnupg2/gnupg-utils_2.2.9-1_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/s/sqlite3/libsqlite3-0_3.24.0-1_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gnupg2/gpg_2.2.9-1_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gnupg2/gpg-agent_2.2.9-1_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gnupg2/gpg-wks-client_2.2.9-1_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gnupg2/gpg-wks-server_2.2.9-1_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gnupg2/gpgsm_2.2.9-1_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gnupg2/gnupg_2.2.9-1_all.deb 404 Not Found [IP: 192.99.200.113 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
我无法提供完整的日志,因为由于 cmd 我无法向上滚动。
卡利版本=2018.3
答案1
更新 kali-archive-keyring 包
wget http://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2022.1_all.deb && sudo apt install ./kali-archive-keyring*.deb
文件名kali-archive-keyring_*_all.deb
可能会更改,您应该在此处找到最新的文件名http://http.kali.org/kali/pool/main/k/kali-archive-keyring/