问题描述
添加旧源:
vim /etc/apt/sources.list
末行追加:
deb http://old.kali.org/kali moto main non-free contrib
更新源:
apt-get update
报错:
Err:6 http://old.kali.org/kali moto 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://old.kali.org/kali moto InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
E: The repository 'http://old.kali.org/kali moto 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.
解决办法
执行:
wget -q -O - archive.kali.org/archive-key.asc | apt-key add
再次更新源:
apt-get update
成功:
2021.07.10更新:
可能还会遇见:
gpg: can't open `': No such file or directory
尝试:
wget -q https://archive.kali.org/archive-key.asc -O- | apt-key add -