在修改源后使用
sudo apt-get update
显示
W: GPG error: https://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: The repository 'https://mirrors.ustc.edu.cn/kali kali-rolling InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
首先按其他博客的方法使用
hetang@LAPTOP-A1:~$ gpg --keyserver pgp.mit.edu --recv-keys ED444FF07D8D0BF6
gpg: directory '/home/hetang/.gnupg' created
gpg: keybox '/home/hetang/.gnupg/pubring.kbx' created
gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file