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

相關內容