Ubuntu – “trying to overwrite ‘/usr/share/accounts/services/google-im.service’, which is also in package account-plugin-google 0.12+15.04.20150415.1-0ubuntu2”

aptdpkgsoftware installation

I'm trying to update and upgrade my kubuntu 15.04. After trying to install all upgrades, I got the following error message:

The following extra packages will be installed:
The following packages will be upgraded:
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/122 kB of archives.
After this operation, 1.948 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 626049 files and directories currently installed.)
Preparing to unpack .../kde-config-telepathy-accounts_15.04.0-0ubuntu1~ubuntu15.04~ppa1_amd64.deb ...
Unpacking kde-config-telepathy-accounts (15.04.0-0ubuntu1~ubuntu15.04~ppa1) over (0.9.0-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_15.04.0-0ubuntu1~ubuntu15.04~ppa1_amd64.deb (--unpack):
trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+15.04.20150415.1-0ubuntu2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
E: Sub-process /usr/bin/dpkg returned an error code (1)

How can I fix this problem?

Best Answer

Deleting the conflicting packages works around the issue, until it is properly fixed.

sudo apt-get purge -f unity-scope-gdrive account-plugin-google account-plugin-facebook
Related Question