在 15.10 上安装 kubuntu-desktop 失败并破坏 APT

在 15.10 上安装 kubuntu-desktop 失败并破坏 APT

我没有使用 KDE 的 PPA,只是使用原始版本。我尝试安装 kubuntu-desktop,但失败,并显示以下信息:

Unpacking kde-config-telepathy-accounts (4:15.08.2-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.08.2-0ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+15.10.20150723-0ubuntu1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.08.2-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1) code here

我无法再更新、安装或删除任何软件包。所有操作都会导致错误:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
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
unity-scope-gdrive : Depends: account-plugin-google but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

运行“apt-get -f install”只会导致上述原始错误。

我看到有人建议使用 synaptic 强制删除 account-plugin-google 包,但我没有安装 synaptic,而且据我所知,现在显然无法安装它。这是“apt-get install synaptic”的结果:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
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
synaptic : Depends: libept1.4.16 but it is not going to be installed
        Depends: libvte-2.90-9 (>= 1:0.27.2) but it is not going to be installed
        Recommends: libgtk2-perl (>= 1:1.130) but it is not going to be installed
        Recommends: rarian-compat but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

答案1

在阅读了有关 APT 的一些资料后,我能够完成 kubuntu-desktop 安装(apt-get install -f),并使 APT 再次正常运行。我不得不强制删除 account-plugin-google 及其依赖项 unity-scope-drive:

dpkg --remove --force-remove-reinstreq account-plugin-google unity-scope-gdrive

我还没有尝试重新安装这些软件包,所以我不知道这是否是一个真正的“修复”,但它至少让 APT 再次工作了。

相关内容