执行vi /etc/apt/sources.list
添加以下两行:
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
执行apt-get update
可能会出现以下错误:
Get:5 http://ftp.cc.uoc.gr/mirrors/linux/kali/kali kali-rolling InRelease [30.5 kB]
Err:5 http://ftp.cc.uoc.gr/mirrors/linux/kali/kali kali-rolling InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
Reading package lists... Done
W: GPG error: http://ftp.cc.uoc.gr/mirrors/linux/kali/kali kali-rolling InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
E: The repository 'http://http.kali.org/kali kali-rolling InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
我们需要执行:
gpg --keyserver pgpkeys.mit.edu --recv-key ED444FF07D8D0BF6
gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
然后继续update即可
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容