我的 Kali Linux 版本出现了一些问题。请帮我解决。请参阅下面的错误信息。
# sudo apt update
Hit:3 https://download.sublimetext.com apt/dev/ InRelease
Get:1 http://kali.download/kali kali-bleeding-edge InRelease [565 B]
Err:1 http://kali.download/kali kali-bleeding-edge InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Hit:4 https://packages.microsoft.com/repos/code stable InRelease
Get:2 http://kali.download/kali kali-experimental InRelease [562 B]
Err:2 http://kali.download/kali kali-experimental InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Reading package lists... Done
E: Failed to fetch http://http.kali.org/kali/dists/kali-bleeding-edge/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://http.kali.org/kali kali-bleeding-edge 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.
E: Failed to fetch http://http.kali.org/kali/dists/kali-experimental/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://http.kali.org/kali kali-experimental 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
该 repos 现在无法正常工作,请尝试此命令
sudo vi /etc/apt/sources.list
(或者如果你不知道如何使用 vi,可以使用 gedit 或 gnome-text-editor)并像这样注释掉原始 repo
#deb http://http.kali.org/kali kali-rolling main contrib non-free
并添加
deb http://http.kali.org/kali kali-last-snapshot main contrib non-free
然后sudo apt update
再工作。