Apt 未满足依赖关系 account-plugin-facebook 和 google

Apt 未满足依赖关系 account-plugin-facebook 和 google

我正在运行 Kubuntu 16.04,我决定尝试 mate(我想我一定是安装了默认的安装包,但我不确定)。它运行良好,直到今天我安装了 ubuntu-mate-desktop。由于 KDE 档案中已经存在文件,安装崩溃了。我不关心 google 插件,我也没有 Facebook,所以我真的不介意。

但我无法再运行 apt-get 命令。apt-get install -f 返回以下内容:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  account-plugin-facebook account-plugin-google
The following NEW packages will be installed:
  account-plugin-facebook account-plugin-google
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/6 222 B of archives.
After this operation, 58,4 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 314495 files and directories currently installed.)
Preparing to unpack .../account-plugin-facebook_0.12+16.04.20160126-0ubuntu1_all.deb ...
Unpacking account-plugin-facebook (0.12+16.04.20160126-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/account-plugin-facebook_0.12+16.04.20160126-0ubuntu1_all.deb (--unpack):
 trying to overwrite '/etc/signon-ui/webkit-options.d/www.facebook.com.conf', which is also in package kaccounts-providers 4:15.12.3-0ubuntu1
Preparing to unpack .../account-plugin-google_0.12+16.04.20160126-0ubuntu1_all.deb ...
Unpacking account-plugin-google (0.12+16.04.20160126-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/account-plugin-google_0.12+16.04.20160126-0ubuntu1_all.deb (--unpack):
 trying to overwrite '/usr/share/accounts/providers/google.provider', which is also in package kaccounts-providers 4:15.12.3-0ubuntu1
Errors were encountered while processing:
 /var/cache/apt/archives/account-plugin-facebook_0.12+16.04.20160126-0ubuntu1_all.deb
 /var/cache/apt/archives/account-plugin-google_0.12+16.04.20160126-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我怎样才能让它再次工作?

谢谢

答案1

我在另一个帖子中找到了解决方案:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/account-plugin-facebook_0.12+16.04.20160126-0ubuntu1_all.deb /var/cache/apt/archives/account-plugin-google_0.12+16.04.20160126-0ubuntu1_all.deb
sudo apt-get install -f

相关内容