Kali Linuxはapt-getアップグレードの依存関係を満たしていません。

Kali Linuxはapt-getアップグレードの依存関係を満たしていません。

私はCaliLinuxを使用しています。実行するたびに、apt-get upgrade次のエラーが発生します。私は努力したapt --fix-broken install。動作しません。

apt-get upgrade                                                                                           

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 autopsy : Depends: binutils but it is not installed
 clang-11 : Depends: binutils but it is not installed
 clang-9 : Depends: binutils but it is not installed
 dpkg-dev : Depends: binutils but it is not installed
 gcc-10 : Depends: binutils (>= 2.35.1) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

私はこれを出力として取得します。

After this operation, 16.2 MB of additional disk space will be used. Do you want to continue? [Y/n] y 
Err:1 http.kali.org/kali kali-rolling/main amd64 gcc-12-base amd64 12.2.0-11 404 Not Found [IP: 192.99.200.113 443]

同様の言葉を23回もした。するとこういう言葉が出る

E: Failed to fetch http.kali.org/kali/pool/main/g/gcc-12/… 404 Not Found [IP: 192.99.200.113 443]
                                                                                      

ベストアンサー1

Kaliのインストールが中断されている可能性があります。 (DebianやUbuntuではありませんが、Linuxベースのシステムに精通しているプロフェッショナル侵入テスター用に設計された非常に具体的なディストリビューションです。)

google-chrome.listから削除してみてください/etc/apt/sources.d。運が良くてKaliディストリビューションをあまり使用していない場合は、これら2つのコマンドを使用して正しい方向に戻ることができます。

apt update
apt full-upgrade

文脈を見るには、Kaliの独自のドキュメントを読んでください。リポジトリ特に「Non-Kali Repositories」というセクションは、

[...] Kaliに別のオペレーティングシステムのストレージを追加すると(たとえば、KaliにUbuntuをインストールしようとすると)、インストールが中断されます。これがKali Linuxシステムクラッシュの最も一般的な理由です。

おすすめ記事