debian10添加kali官方源

执行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
喜欢就支持以下吧
点赞13赞赏
分享
评论 抢沙发

请登录后发表评论