在 Ubuntu 16.04 上更改为 KDE 后无法安装软件包

在 Ubuntu 16.04 上更改为 KDE 后无法安装软件包

在 Ubuntu 16.04 上安装 KDE 后,我无法再使用 unity,并且当尝试使用 apt-get 下载新软件时出现错误消息。

The following packages have unmet dependencies:
kde-telepathy-minimal : Depends: kde-config-telepathy-accounts (>=15.04.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

当我尝试时,sudo apt-get -f install我收到另一条错误消息。

0 upgraded, 1 newly installed, 0 to remove and 46 not upgraded.
2 not fully installed or removed.
Need to get 0 B/137 kB of archives.
After this operation, 825 kB of additional disk space will be used.
Do you want to continue? [J/n] j
(Reading database ... 445397 files and directories currently installed.)
Preparing to unpack .../kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb ...
Unpacking kde-config-telepathy-accounts (4:15.12.3-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+16.04.20160126-0ubuntu1
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Errors were encountered while processing:
/var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb                                                                 
E: Sub-process /usr/bin/dpkg returned an error code (1) 

我很确定我在这个过程中搞砸了一些东西,并且我在网上看到我必须删除损坏的包裹,但我真的不知道如何在不破坏我的系统的情况下做到这一点。

答案1

它所说的内容:安装 kde-config-telepathy-accounts 尝试(覆盖)写入文件/usr/share/accounts/services/google-im.service,该文件也在包 account-plugin-google 中。这是 unity / gnome 和 KDE 包之间的冲突。

您可以删除 account-plugin-google(sudo apt remove account-plugin-google)或者只删除文件(sudo rm /usr/share/accounts/services/google-im.service)并希望这两个包可以共存。

无论哪种情况,重新运行sudo apt-get -f install

相关内容