问题描述
在执行 apt-get update 命令时,产生如下错误:
Hit:1 https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease Get:2 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease [30.5 kB] Hit:3 http://repo.steampowered.com/steam precise InRelease Hit:4 https://packages.microsoft.com/ubuntu/16.04/mssql-server xenial InRelease Hit:5 https://packages.microsoft.com/repos/vscode stable InRelease Err:2 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org> Hit:6 http://repository.spotify.com stable InRelease Hit:7 http://repo.yandex.ru/yandex-browser/deb beta InRelease Hit:8 https://repo.skype.com/deb stable InRelease Ign:9 http://dl.google.com/linux/chrome/deb stable InRelease Hit:10 http://dl.google.com/linux/chrome/deb stable Release Hit:12 https://deb.opera.com/opera-stable stable InRelease Reading package lists... Done W: GPG error: http://mirrors.ustc.edu.cn/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org> E: The repository 'http://mirrors.ustc.edu.cn/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.
问题原因
密钥过期,需要重新添加。
解决办法
wget -q -O - archive.kali.org/archive-key.asc | apt-key add
参考文献
Unsigned repository for Kali Linux so I can’t update. Kind of stuck and need some help here