Ubuntu – Update broken on libdbus

aptdependenciesupdates

On a recent update to my precise install the package manager seems to have got itself into a twist.

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

Output from 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)

I guess the i386 version no longer matches the x86_64 version for some reason? I'm unclear how to resolve this. Help appreciated. Many thanks in advance

Best Answer

Run sudo dpkg --remove libdbus-1-3:i386. dpkg will likely complain about unmet dependencies. Then, run sudo apt-get install libdbus-1-3 libdbus-1-3:i386 to upgrade the amd64 package (if needed) and install the i386 package.

Related Question