The signature is invalid after kali changes source

Article directory

1. Problem

After kali updates the source address, the apt-get update command prompts that there is no digital signature:

$ sudo apt-get update           
获取:1 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease [41.2 kB]
错误:1 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease
  下列签名无效: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
正在读取软件包列表... 完成
W: GPG 错误:http://mirrors.ustc.edu.cn/kali kali-rolling InRelease: 下列签名无效: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
E: 仓库 “http://mirrors.ustc.edu.cn/kali kali-rolling InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

Insert image description here

2. Solution

1. Download signature:

sudo wget archive.kali.org/archive-key.asc

Insert image description here

2. Add the downloaded signature (os: if there is an alarm message as shown below, you can ignore it)

sudo apt-key add archive-key.asc

Insert image description here3. Use sudo apt-get updateto update the index successfully:
Insert image description here

Guess you like

Origin blog.csdn.net/qq_36241539/article/details/131007139