部署完毕后, 执行"sudo apt-get update",出现以下报错:
Get:1 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease [30.5 kB]
Err:1 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease
The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
Reading package lists... Done
W: GPG error: http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
E: The repository ‘http://kali.mirror.garr.it/mirrors/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.
?
原因为"repository key" 过期了,需要重新下载导入新的key文件,执行以下语句:
wget -q -O - https://archive.kali.org/archive-key.asc | sudo apt-key add
等结果出现"OK",即为执行成功;
然后执行以下命令进行升级,等待结束即可;
sudo apt-get upgrade