更新了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 install

 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版本? 我不清楚如何解决这个问题。 帮助赞赏。 提前谢谢了

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

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

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