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)相关文章推荐
- ubuntu apt-get update特别慢更新不了
- Ubuntu 16.04配置国内高速apt-get更新源
- apt-get update 更新 ubuntu时出现Hash sum mismatch的原因及解决方法
- ubuntu12.10 源更新出错(sudo apt-get update)
- 关于Ubuntu 9.10 的apt-get update 一直无法更新源的点点滴滴
- ubuntu apt-get update 更新软件
- ubuntu16.04.4更新sudo apt-get update 时显示Unable to connect to 127.0.0.1:33349:
- apt-get update 更新源Ubuntu 10.10
- 为Linux配置apt-get的更新源
- sudo apt-get update 或者更新源阿里云源或中科大源错误 解决方法
- sudo apt-get update 更新出错
- sudo apt-get update更新错误
- ubuntu11.04 更新版本(其他的老版本都是相似的)(不能使用apt-get update)
- 关于Ubuntu 9.10 的apt-get update 一直无法更新源的点点滴滴
- ubuntu apt-get update 更新失败
- [置顶] apt-get update 更新失败----如何清除破损而且陈旧的PPA仓库 (W: Failed to fetch http://ppa.launchpad.net/jonathonf/pyt)
- ubuntu 源更新失败问题(sudo apt-get update)
- ubuntu更新apt-get update时的索引文件获取错误解决办法
- Ubuntu下的Ubuntu虚拟机--源配置问题:apt-get update 显示could not resolve 'mirrors.163.com'
- ubuntu 16.04 apt-get update无法更新