私はkali linux 2017.1 64ビットを使用しており、flutterの互換性の問題を解決するためにlib32stdc ++ 6というパッケージをインストールしています。問題は、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/downloaddeb 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開発者はKaliのaptをサポートしていないため、これらのエラーが発生します。一般的な使用に適した他のディストリビューション(Debian、Ubuntu、Fedora、Trisquelなど)に切り替えます。個人的には、初心者にはTrisquel(またはハードウェアの問題が発生したくない場合はUbuntu)をお勧めします。