我尝试通过官方渠道更新 Kali Linux source_lists
,但更新sudo apt-get update
失败,提示W: Failed to fetch
“源列表如下”:-
in /etc/apt/sources.list:
#regular repositories
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
#sources respositories
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
安装一些软件包后的输出apt-get update
是:-
W: Failed to fetch http://http.kali.org/kali/dists/sana/InRelease
W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/InRelease Unable to find expected entry 'non-fre/source/Sources' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/main/source/Sources Unable to connect to security.kali.org:http:
W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/contrib/source/Sources Unable to connect to security.kali.org:http:
W: Failed to fetch http://http.kali.org/kali/dists/sana/Release.gpg Unable to connect to http.kali.org:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.
如果需要更新其他内容,请发布反馈
答案1
我今天也遇到了同样的情况。之前我能够更新我们的一台机器,但现在它几乎已经无法使用了。
我知道 forums.kali.org 受 Sucuri 云代理保护。我可以手动浏览 http.kali.org 的大部分内容,但偶尔会出现错误。我想知道该域的其余部分是否也受其保护。
当我输入这段文字时,我正在观察一台刚刚能够通过 apt-get 更新但在尝试获取软件包时超时了的机器。
0% [Connecting to http.kali.org (192.99.200.113)]
希望我能提供更多的帮助,而不仅仅是确认……这不是你的机器。