我尝试执行 apt-get update,结果出现这些错误,尝试了各种方法,但无法解决。我需要帮助解决这个错误。
Get:1 http://http.kali.org/kali kali-rolling InRelease [18.3 kB]
Err:1 http://http.kali.org/kali kali-rolling 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-rolling/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://http.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.
结果ls
是/etc/apt/apt.conf.d
:
00aptitude 00trustcdrom 02autoremove-postgresql 50command-not-found 70debconf
00CDMountPoint 01autoremove 50apt-file.conf 50kali 80debtags
我的 Kali 是 MacOS 硅版的虚拟机。输出cat /etc/os-release
:
{PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
VERSION="2022.4"
VERSION_ID="2022.4"
VERSION_CODENAME="kali-rolling"
ID=kali
ID_LIKE=debian
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"
ANSI_COLOR="1;31"}
结果cat /etc/apt/sources.list
:
{# See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/
deb http://http.kali.org/kali kali-rolling main contrib non-free
# Additional line for source packages
deb-src http://http.kali.org/kali kali-rolling main contrib non-free}
ls
什么/etc/apt/sources.list.d
也没显示。