apt-get 无法覆盖另一个包中已经存在的文件

apt-get 无法覆盖另一个包中已经存在的文件

我在安装某些应用程序时遇到问题。unity-tweak-tool 我安装的程序在安装后崩溃了。我不知道该怎么办?

apt-get -f install
Reading package lists ... Completed
Creating hierarchies relationship
Reading state information ... Completed
Correcting dependencies between packages ... Completed
Will install the following additional packages.
  account-plugin-google
Install package * New * following.
  account-plugin-google
0 upgraded, install a new one, remove and 0 not upgraded to 0.
Install or remove, not one.
To download packages 0 B / 3,474 B.
After this operation, Require more disk space 68.6 kB.
Do you want to continue anyway? [Y / n] y
(Reading database ... 355310 files and directories currently installed.)
Preparing break ... / Account-plugin-google_0.12 + 15.04.20150415.1-0ubuntu2_all.deb ...
There are account-plugin-google (0.12 + 15.04.20150415.1-0ubuntu2) ...
dpkg: An error occurred while processing the archive. /var/cache/apt/archives/account-plugin-google_0.12+15.04.20150415.1-0ubuntu2_all.deb (--unpack):
 Trying to overwrite '/usr/share/accounts/services/google-im.service' Which is in the package. kde-config-telepathy-accounts 15.04.1-0ubuntu1 ~ ubuntu15.04 ~ ppa1 as well.
An error occurred while processing.
 /var/cache/apt/archives/account-plugin-google_0.12+15.04.20150415.1-0ubuntu2_all.deb
E: Sub-process / usr / bin / dpkg returned an error code (1).

答案1

我也遇到了同样的问题。我有一台 System76 笔记本电脑,上面安装了 Kubuntu 桌面。

apt-get 的问题在于它在这里试图变得有点太神奇了。您需要一些更低级的东西来删除依赖于提供冲突的软件包的 Ubuntu 软件包。我不使用 Unity,所以这对我来说很有效:

sudo dpkg -r \
  account-plugin-google unity-scope-gdrive unity-scope-gdocs
sudo apt-get -f install
sudo apt-get update && sudo apt-get ugrade

如果这对您有用,请告诉我!

相关内容