Kali Linux apt 更新失败

Kali Linux apt 更新失败

我正在运行 Azure Linux VM,每次我尝试时sudo update都会出现这样的错误(其中的空格http. kali.or仅供我的代表使用):

E: Failed to fetch http://http. kali.org/kali/pool/main/....2-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http. kali.org/kali/pool/main/....2-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http. kali.org/kali/pool/main/....2-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http. kali.org/kali/pool/main/....2-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http. kali.org/kali/pool/main/....2-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http. kali.org/kali/pool/main/....7-3_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http. kali.org/kali/pool/main/....7-3_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http. kali.org/kali/pool/main/....1-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http. kali.org/kali/pool/main/....1-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http. kali.org/kali/pool/main/....1-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http. kali.org/kali/pool/main/....1-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http. kali.org/kali/pool/main/...0kali1_all.deb 404 Not Found [IP: 192.99.200.113 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

答案1

检查您的/etc/apt/sources.list(以及具有相似名称的目录)。

看来您编辑了一些文件,但您忘记了它。如果您在编辑文件时进行测试会简单得多,这样您就知道错误的原因(并且您还应该写在问题中)。

在这种情况下,似乎http://http. kali.org/kali/是复制/粘贴错误。你确定地址吗?在问题中,您在点后添加了一个空格,可能您应该使用https:(有些软件现在抱怨不使用安全连接)。并检查三个点中的内容。您可以在浏览器上检查 URL(也许您使用的是过时版本,该版本在您的本地镜像上不再可用)。

并且在以下情况下不会显示此类错误update(更新不会下载 .deb 软件包)。您是否感到困惑updateupgrade因此您是否使用第二个命令而不使用第一个命令?

相关内容