libc:amd64 が半分インストールされており、他のもののアップグレードやインストールを妨げています

libc:amd64 が半分インストールされており、他のもののアップグレードやインストールを妨げています

アップグレードが中断された後、いくつか問題が発生しています。 を実行した後sudo apt update、実行したところsudo apt upgrade、次の結果が得られました。

dpkg: error processing package libc6:amd64 (--configure):
 package libc6:amd64 is not ready for configuration
 cannot configure (current status 'half-installed')

それで、私は走った

sudo apt-get --fix-broken install

出力は次のようになりました。

dpkg: error processing package libc6:amd64 (--configure):
 package libc6:amd64 is not ready for configuration
 cannot configure (current status 'half-installed')

実行しようとするとsudo apt install --reinstall libc6次のようになります:

dpkg: error processing package libc6:amd64 (--configure):
 package libc6:amd64 is not ready for configuration
 cannot configure (current status 'half-installed')`

試してみるsudo apt install --reinstall libc-binと次のようになります:

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 locales : Depends: libc-bin (> 2.33)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

つまり、「最新バージョン」を持っているのですが、それよりも新しいバージョンが必要なのでしょうか?

答え1

私も同様の問題を抱えていましたが、次の方法で解決しました:

sudo dpkg -i /var/cache/apt/archives/libc6_2.32-0ubuntu3_amd64.deb
sudo apt --fix-broken install

関連情報