无法使用 apt-get update:存储库...没有发布文件

无法使用 apt-get update:存储库...没有发布文件

我在我的 acer predator helios 300 和 Windows 10 上安装了 kali。我无法通过登录屏幕,因为它在输入凭据后卡住了。所以我用谷歌搜索,发现问题出在一些图形驱动程序上,所以我在登录屏幕上按 ctrl+alt+f2 编辑并得到了一个终端。我的sources.list文件是这样的

#deb cdrom:[Debian GNU/Linux 2018.4 _Kali-rolling -  Official Snapshot amd64 LIVE/INSTALL Binary 20181016-16:07] kali-last-snapshot contrib main non-free
#This system was installed using small removable media
#(e.g. netinst, live or single CD). The matching "deb cdrom"
#entries were disabled at the end of the installation process
#For information about how to configure apt package sources
#see the sources.list(5) manual

所以我将这一行添加到sources.list文件中以更新apt并安装Nvidia驱动程序。

deb http://http.kali.org/kali/dists/kali-rolling main contrib non-free

当我运行 apt-get update 时它说

Ign:1 http://http.kali.org/kali/dists/kali-rolling main InRelease
Err:2 http://http.kali.org/kali/dists/kali-rolling main Release
 404 Not Found [IP: 192.99.200.113 80]
Reading package lists... Done
E: The repository 'http://http.kali.org/kali/dists/kali-rolling main Release' does not have a release file.
N: Updating from suck 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

你会想读05. 使用 Kali Linux / Kali resources.list 存储库,它为您的文件提供了正确的条目sources.list

deb http://http.kali.org/kali kali-rolling main non-free contrib

相关内容