当前位置: 首页>>技术教程>>正文


apt – “试图覆盖‘/usr/share/accounts/services/google-im.service’,它也在包 account-plugin-google 0.12+15.04.20150415.1-0ubuntu2 中”

, ,

问题描述

我正在尝试更新和升级我的 kubuntu 15.04。尝试安装所有升级后,我收到以下错误消息:

The following extra packages will be installed:
kde-config-telepathy-accounts
The following packages will be upgraded:
kde-config-telepathy-accounts
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)

我该如何解决这个问题?

最佳方案

删除冲突的软件包可以解决该问题,直到它被正确修复。

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

次佳方案

我看到了 Alisson Silveira 的答案,它很接近,但 apt 在那之后仍然被打破。我发现解决它的唯一方法是:

sudo apt remove unity-scope-gdrive account-plugin-google account-plugin-facebook kde-telepathy-minimal kde-telepathy

真是一团糟!

第三种方案

通过使用 Synaptic 包管理器删除 kde-telepathy 解决了该问题,现在更新和升级功能再次起作用。

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/13091.html,未经允许,请勿转载。