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

相关内容