I'm trying to install the latest KDE Plasma here but I'm getting

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 (>= 0.9.0) but it is not installed
E: Unmet dependencies. Try using -f.

and when I sudo apt-get -f install as specified and I say Y to getting 122KB of archives I get:

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) ...
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/facebook-im.service', which is also in package account-plugin-facebook 0.12+15.04.20150415.1-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_15.04.0-0ubuntu1~ubuntu15.04~ppa1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

And whenever I try to install any other package now I get the same thing. What should I do?

up vote 86 down vote accepted

Fixed it by:

sudo dpkg -P unity-scope-gdrive account-plugin-google account-plugin-facebook
sudo apt-get install -f

This removes the packages listed in the first command and thus resolves the package conflict.

  • 5
    This worked, thanks – Micor Jun 5 '15 at 17:12
  • 7
    Worked for Ubuntu 16 Xenial – Ganesh Krishnan Feb 18 '16 at 12:20
  • 2
    Worked for 16.04 but first try the other answer which is potentially better. – rfabbri May 24 '16 at 10:32
  • 3
    Worked for me (Ubuntu 16.04 Xenial Xerus)! – Eofla May 30 '16 at 16:49

By default, the package manager refuses to overwrite files that also appear in other installed packages (whether the file is actually there or not), which is a sane decision to not inadvertently corrupt packages. In your case, this means, that the packages are incompatible. I can see that one seems to come from a PPA, so you should write to the maintainer of that PPA to investigate the issue.

Meanwhile, since the conflicting file is only and icon, it's pretty safe to override the package manager's decision with --force-overwrite:

cd /tmp
apt-get download kde-config-telepathy-accounts
sudo dpkg -i --force-overwrite kde-config-telepathy-accounts_*.deb
sudo apt-get install -f

I solved with the following:

  1. Find the deb that is causing the problems:

    sudo find /var/cache -name "kde-config-telepathy-accounts*"
    

    In my case the package was at

    /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb
    
  2. Install it with --force-overwrite:

    sudo dpkg -i --force-overwrite /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb
    

    The command will complete with errors anyway

  3. Fix the installation

    sudo apt-get -f install
    
  • 1
    That worked for me. Thanks! – Jorge Arévalo Sep 13 '16 at 7:06
  • Solved the issue, thanks! Seems a lot of setting up was needed after entering sudo apt-get install kubuntu-desktop [16.04] – David your friend Sep 26 '16 at 23:37

protected by Community May 25 '16 at 14:20

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.