修改sources.list后无法更新Kali Linux上的软件包

修改sources.list后无法更新Kali Linux上的软件包

修改后来源.list然后在安装任何软件时也会遇到问题。

root@afaque:~/Desktop# apt-get update
Err:1 http://repo.kali.org/kali kali-rolling InRelease
  403  Forbidden [IP: 144.217.77.182 80]
Reading package lists... Done
E: Failed to fetch http://repo.kali.org/kali/dists/kali-rolling/InRelease  403  Forbidden [IP: 144.217.77.182 80]
E: The repository 'http://repo.kali.org/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.

答案1

Kali Linux 的正确sources.list使用方法如Kali resources.list 存储库文档

根据该文档, 的内容sources.list应该是(对于当前版本的 Kali Linux,自 Kali 2016.1 发布以来)

deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free

文档还说

添加到 Kalisources.list文件中的任何其他存储库很可能会破坏您的 KALI LINUX 安装。

有关的:为什么 Kali Linux 这么难设置?为什么人们不帮助我?

相关内容