![libc:amd64 が半分インストールされており、他のもののアップグレードやインストールを妨げています](https://rvso.com/image/1070931/libc%3Aamd64%20%E3%81%8C%E5%8D%8A%E5%88%86%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%95%E3%82%8C%E3%81%A6%E3%81%8A%E3%82%8A%E3%80%81%E4%BB%96%E3%81%AE%E3%82%82%E3%81%AE%E3%81%AE%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89%E3%82%84%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%82%92%E5%A6%A8%E3%81%92%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99.png)
アップグレードが中断された後、いくつか問題が発生しています。 を実行した後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