libdbus 更新中断

libdbus 更新中断

在最近对我的精确安装进行更新时,包管理器似乎陷入了困境。

cat /var/log/apt/history.log

Start-Date: 2014-07-10  16:17:22
Upgrade: libdbus-1-3:amd64 (1.4.18-1ubuntu1.4, 1.4.18-1ubuntu1.5), libdbus-1-3:i386              (1.4.18-1ubuntu1.4, 1.4.18-1ubuntu1.5), dbus:amd64 (1.4.18-1ubuntu1.4, 1.4.18-1ubuntu1.5),   flashplugin-installer:amd64 (11.2.202.378ubuntu0.12.04.1, 11.2.202.394ubuntu0.12.04.1), dbus-x11:amd64 (1.4.18-1ubuntu1.4, 1.4.18-1ubuntu1.5)
Error: Sub-process /usr/bin/dpkg returned an error code (2)
End-Date: 2014-07-10  16:17:41

apt-get update 的输出

You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies.
libdbus-1-3 : Breaks: libdbus-1-3:i386 (!= 1.4.18-1ubuntu1.4) but 1.4.18-1ubuntu1.5   is installed
libdbus-1-3:i386 : Breaks: libdbus-1-3 (!= 1.4.18-1ubuntu1.5) but 1.4.18-1ubuntu1.4   is installed
E: Unmet dependencies. Try using -f.

apt-get -f 安装

dpkg: error processing libdbus-1-3 (--configure):
libdbus-1-3:amd64 1.4.18-1ubuntu1.4 cannot be configured because libdbus-1-3:i386 is   in a different version (1.4.18-1ubuntu1.5)
dpkg: error processing libdbus-1-3:i386 (--configure):
libdbus-1-3:i386 1.4.18-1ubuntu1.5 cannot be configured because libdbus-1-3:amd64 is   in a different version (1.4.18-1ubuntu1.4)
Errors were encountered while processing: libdbus-1-3 libdbus-1-3:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)

我猜 i386 版本由于某种原因不再与 x86_64 版本匹配?我不清楚如何解决这个问题。非常感谢您的帮助。提前致谢

答案1

运行sudo dpkg --remove libdbus-1-3:i386.dpkg可能会抱怨未满足的依赖关系。然后,运行sudo apt-get install libdbus-1-3 libdbus-1-3:i386以升级amd64包(如果需要)并安装i386包。

答案2

基于这个答案,以下说明帮助我解决了类似的问题:

dpkg --add-architecture i386
apt-get update
apt-get install libdbus-1-3:i386
apt-get -f install

相关内容