満たされていない依存関係と破損したパッケージエラーubuntu 22.04

満たされていない依存関係と破損したパッケージエラーubuntu 22.04

sudo apt update に次のエラーが表示されます。

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc-bin : Depends: libc6 (< 2.36) but 2.37-12 is installed
 libc6-dev : Depends: libc6 (= 2.35-0ubuntu3.6) but 2.37-12 is installed
             Depends: libc-dev-bin (= 2.35-0ubuntu3.6)
 locales : Depends: libc-bin (> 2.37)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

apt --fix-brokenインストールに次のエラーが表示され、破損したインストールを修正しようとすると、Synaptic Package Managerにも同じエラーが表示されます。

The following packages have unmet dependencies:
 libc-bin : Depends: libc6 (< 2.36) but 2.37-12 is installed
 libc6-dev : Depends: libc6 (= 2.35-0ubuntu3.6) but 2.37-12 is installed
             Depends: libc-dev-bin (= 2.35-0ubuntu3.6)
 locales : Depends: libc-bin (> 2.37)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

sudo dpkg --configure -a コマンドは、次のエラーを表示します。

dpkg: dependency problems prevent processing triggers for libc-bin:
 libc-bin depends on libc6 (<< 2.36); however:
  Version of libc6:amd64 on system is 2.37-12.

dpkg: error processing package libc-bin (--configure):
 dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
 libc-bin

sudo apt-get install -f は、次のエラーを表示します。

Correcting dependencies... failed.
The following packages have unmet dependencies:
 libc-bin : Depends: libc6 (< 2.36) but 2.37-12 is installed
 libc6-dev : Depends: libc6 (= 2.35-0ubuntu3.6) but 2.37-12 is installed
             Depends: libc-dev-bin (= 2.35-0ubuntu3.6)
 locales : Depends: libc-bin (> 2.37)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

インターネットでいくつかの方法を試しましたが、すべての項目に2〜3つのエラーのいずれかが表示されます。問題を解決するのに役立ちます。助けてください!ありがとう

適切なポリシーlibc6は、次の出力を示しています。

libc6:
  Installed: 2.37-12
  Candidate: 2.37-12
  Version table:
 *** 2.37-12 100
        100 /var/lib/dpkg/status
     2.35-0ubuntu3.6 500
        500 http://in.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
     2.35-0ubuntu3 500
        500 http://in.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

この問題を解決できますか?実際、Ubuntu 22.04システムにkatoolinをインストールしようとしましたが、システムがアップグレードされるまですべてがうまくいきました。アップグレードを開始すると、上記のエラーが表示されました。問題を解決するのに役立ちます。

libc6をダウングレードしようとしましたが、sudo apt install libc6 = "2.35-0ubuntu3.6"コマンドを実行すると、次のエラーが表示されます。

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc-dev-bin : Depends: libc6 (> 2.37) but 2.35-0ubuntu3.6 is to be installed
 libc6-dbg : Depends: libc6 (= 2.37-12) but 2.35-0ubuntu3.6 is to be installed
 libc6-dev : Depends: libc-dev-bin (= 2.35-0ubuntu3.6)
 locales : Depends: libc-bin (> 2.37)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

ベストアンサー1

libc6すべての関連パッケージを同時にダウングレードする必要があります。

sudo apt install libc6{,-dev-bin,-dbg,-dev,-bin}/jammy locales/jammy

不安定な Debian バージョンに部分的にアップグレードしたようです。他のパッケージも影響を受ける可能性があります。

おすすめ記事