![libc:amd64 已安裝一半並阻止其他內容升級或安裝](https://rvso.com/image/1070931/libc%3Aamd64%20%E5%B7%B2%E5%AE%89%E8%A3%9D%E4%B8%80%E5%8D%8A%E4%B8%A6%E9%98%BB%E6%AD%A2%E5%85%B6%E4%BB%96%E5%85%A7%E5%AE%B9%E5%8D%87%E7%B4%9A%E6%88%96%E5%AE%89%E8%A3%9D.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