您的位置:首页 > 运维架构 > Linux

kali linux 2.0配置更新源后apt-get update 报错

2019-04-09 14:54 92 查看

kali linux 2.0配置更新源后apt-get update 报错

仅作个人笔记之用,更多干货请移步微信公众号“网络铅笔头”

这是我设置的清华镜像源:

deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free

配置好之后apt-get update报错如下:

root@kali:~# apt-get update 
Ign:1 cdrom://[Debian GNU/Linux 2017.3 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20171109-13:49] kali-rolling InRelease
Err:2 cdrom://[Debian GNU/Linux 2017.3 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20171109-13:49] kali-rolling Release
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign:3 http://mirrors.neusoft.edu.cn/kali kali-rolling/main InRelease
Get:4 http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling InRelease [30.5 kB]
Get:5 http://mirrors.zju.edu.cn/kali kali-rolling InRelease [30.5 kB]          
Err:6 http://mirrors.neusoft.edu.cn/kali kali-rolling/main Release             
  404  Not Found [IP: 219.216.128.25 80]
Err:4 http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling InRelease          
  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
Err:5 http://mirrors.zju.edu.cn/kali kali-rolling InRelease
  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
Reading package lists... Done
E: The repository 'cdrom://[Debian GNU/Linux 2017.3 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20171109-13:49] kali-rolling Release' does not have a Release file.
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.
E: The repository 'http://mirrors.neusoft.edu.cn/kali kali-rolling/main Release' does not have a Release file.
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.
W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
E: The repository 'http://mirrors.tuna.tsinghua.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.

执行如下命令即可解决:

apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6

再次apt-get update就没问题了。

![](https://img-blog.csdnimg.cn/20190409145159716.jpg)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: