我正在使用 kali linux 2017.1 64 位,我正在安装一个名为 lib32stdc++6 的软件包来解决 flutter 兼容性问题。问题是 apt-get install 无法处理这个问题,我得到以下输出:
After this operation, 306 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Err:1 http://http.kali.org/kali kali-rolling/main amd64 libc6-i386 amd64 2.26-2
404 Not Found
Err:2 http://http.kali.org/kali kali-rolling/main amd64 lib32stdc++6 amd64 7.2.0-18
404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/g/glibc/libc6-i386_2.26-2_amd64.deb 404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gcc-7/lib32stdc++6_7.2.0-18_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
所以我尝试了 --fix-missing 标志,我得到:
After this operation, 306 MB disk space will be freed.
Do you want to continue? [Y/n] y
Err:1 http://http.kali.org/kali kali-rolling/main amd64 libc6-i386 amd64 2.26-2
404 Not Found
Err:2 http://http.kali.org/kali kali-rolling/main amd64 lib32stdc++6 amd64 7.2.0-18
404 Not Found
Unable to correct missing packages.
E: Failed to fetch http://http.kali.org/kali/pool/main/g/glibc/libc6-i386_2.26-2_amd64.deb 404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gcc-7/lib32stdc++6_7.2.0-18_amd64.deb 404 Not Found
E: Aborting install.
我在互联网和堆栈溢出中特别进行了搜索,但没有找到有效的答案。我发现了一篇关于在 64 位 Linux 上安装 32 位软件包的帖子,它说我应该运行以下命令:
dpkg --add-architecture i386
apt-get update
apt-get install lib32gcc1
这给了我同样的输出:
After this operation, 306 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Err:1 http://http.kali.org/kali kali-rolling/main amd64 libc6-i386 amd64 2.26-2
404 Not Found
Err:2 http://http.kali.org/kali kali-rolling/main amd64 lib32stdc++6 amd64 7.2.0-18
404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/g/glibc/libc6-i386_2.26-2_amd64.deb 404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gcc-7/lib32stdc++6_7.2.0-18_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
我也检查了这个链接https://packages.debian.org/stretch/amd64/lib32stdc++6/download并按照此说明deb http://ftp.de.debian.org/debian stretch main
在文件 /etc/apt/sources.list 的 和 处添加并运行:
apt-get update
apt-get install lib32stdc
并得到:
After this operation, 306 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Err:1 http://http.kali.org/kali kali-rolling/main amd64 libc6-i386 amd64 2.26-2
404 Not Found
Err:2 http://http.kali.org/kali kali-rolling/main amd64 lib32stdc++6 amd64 7.2.0-18
404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/g/glibc/libc6-i386_2.26-2_amd64.deb 404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gcc-7/lib32stdc++6_7.2.0-18_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
答案1
这是因为Kali Linux仅用于渗透目的,而不是一般用途。看为什么 Kali Linux 这么难设置?为什么人们不帮助我?。 Kali 的 apt 不受 Kali 开发人员的支持,这就是您遇到此类错误的原因。请切换到另一个适合一般使用的发行版(例如 Debian、Ubuntu、Fedora、Trisquel)。就我个人而言,我推荐新手使用 Trisquel(如果你不想遇到硬件问题,可以使用 Ubuntu)。