package kaccounts-providers (not installed) failed to install/upgrade: trying to overwrite '/usr/share/accounts/providers/google.provider', which is also in package account-plugin-google 0.12+15.10.20150723-0ubuntu1

Bug #1488909 reported by Gene Soo
94
This bug affects 18 people
Affects Status Importance Assigned to Milestone
meta-telepathy
Fix Released
High
kaccounts-providers (Ubuntu)
Confirmed
High
Unassigned

Bug Description

Errors during kubuntu-desktop kubuntu-restricted-extras install after, successful ubuntu-desktop ubuntu-restricted-extras install on a Ubuntu Server 15.10 system.

ProblemType: Package
DistroRelease: Ubuntu 15.10
Package: kaccounts-providers (not installed)
ProcVersionSignature: Ubuntu 4.1.0-3.3-generic 4.1.3
Uname: Linux 4.1.0-3-generic x86_64
ApportVersion: 2.18-0ubuntu7
Architecture: amd64
Date: Tue Aug 25 18:00:45 2015
DuplicateSignature: package:kaccounts-providers:(not installed):trying to overwrite '/usr/share/accounts/providers/google.provider', which is also in package account-plugin-google 0.12+15.10.20150723-0ubuntu1
ErrorMessage: trying to overwrite '/usr/share/accounts/providers/google.provider', which is also in package account-plugin-google 0.12+15.10.20150723-0ubuntu1
InstallationDate: Installed on 2015-08-25 (0 days ago)
InstallationMedia: Ubuntu-Server 15.10 "Wily Werewolf" - Alpha amd64 (20150825)
RelatedPackageVersions:
 dpkg 1.18.2ubuntu2
 apt 1.0.9.10ubuntu6
SourcePackage: kaccounts-providers
Title: package kaccounts-providers (not installed) failed to install/upgrade: trying to overwrite '/usr/share/accounts/providers/google.provider', which is also in package account-plugin-google 0.12+15.10.20150723-0ubuntu1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
In , Jonathan Riddell (jr) wrote :

This file overlaps with a file in gnome's account-plugin-facebook
/usr/share/accounts/services/facebook-im.service

and kaccounts-providers has a file which overlaps with gnome's account-plugin-google
/usr/share/accounts/providers/google.provider

gnome and kde need to be co-installable so these files should be renamed to not overlap.

As a separate but related issue if ktp explodes because gnome accounts-plugins are installed that should also be gracefully delt with.

Reproducible: Always

Revision history for this message
In , Mklapetek (mklapetek) wrote :

It cannot be gracefully dealt with because Gnome uses different system for creating their (telepathy) accounts and KAccounts has no way of knowing which provider is for gnome and which is for kde. To KAccounts, all is the same.

The way gnome creates telepathy accounts is also incompatible with ktp, this _will_ result in user having invalid ktp accounts. I am working on making these compatible, but for now they aren't and will not be till 15.08. There's nothing that can make it compatible.

facebook-im.service will not be installed from 15.04.1 as facebook chat support is deprecated.

Simply renaming all the files is also not a good option, because if you'll have both packages installed, you will have duplicated entries, each doing different things.

I'm afraid these two simply aren't co-installable.

Revision history for this message
In , Jonathan Riddell (jr) wrote :

> I'm afraid these two simply aren't co-installable.
that's quite a big fail compared to the normal setup for linux desktops. if we can't install two applications from gnomey stuff and kdey stuff at the same time that breaks package install for an awful lot of people

Revision history for this message
In , Mklapetek (mklapetek) wrote :

Yes, well, apparently nobody has thought about that.

Quoting Accounts SSO developer:
"hi! I'd say that the problem is on the .provider files only, because the service files refer to a provider, so as long as that's a different one, they won't mess up

I admit I don't have a solution for the .provider files anyway...

one possibility is to play with environment variables, to instruct libaccounts-glib to look for its files in a different directory"

So for now the only solution is to rename and use different install dir and use an env variable (I'm not sure which one yet).

Revision history for this message
Gene Soo (genesoo77072) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kaccounts-providers (Ubuntu):
status: New → Confirmed
Changed in kaccounts-providers (Ubuntu):
importance: Undecided → High
Revision history for this message
PatrickSCarroll (patrickscarroll) wrote :

How do you fix this issue? I can't update anything because this package won't install.

Revision history for this message
Michael Hofmann (michael-hofmann) wrote :

I would like to know a fix as well.
Seems this issue has been 'confirmed' for over a month now, with no fix, nor anyone assigned to it.
This is not OK, since it tends to break users' systems.

Revision history for this message
Andrei Marinescu (iandrei-marinescu) wrote :

I'm also looking for a fix for this. I did a apt-get install kubuntu-desktop this morning and it busted my package manager. I expect that if I try to reboot the machine it's going to fail, since it failed midway in installing KDE.

Any workarounds, or at least rollback instructions available?

Revision history for this message
Gene Soo (genesoo77072) wrote : Re: [Bug 1488909] Re: package kaccounts-providers (not installed) failed to install/upgrade: trying to overwrite '/usr/share/accounts/providers/google.provider', which is also in package account-plugin-google 0.12+15.10.20150723-0ubuntu1
Download full text (4.2 KiB)

I don't know that I would have made the assumption that the installation
would be broken if you rebooted. I would agree that if you rebooted while
not successfully completing the software installation that you were doing
might cause things not to work right.

There have been many times where I received Network errors that failed to
contact. For Example, when it goes through the list of modules to install,
an error accessing the repository will fail that component from updating on
that instance of Update/install. I go back and repeat the same command
whether I was installing and App or Update, Upgrade, Dist-Upgrade or -F
Install to correct dependency problems(Net comment here is to repeat prior
command). Doing this, the apt-get process picks up with incomplete updates
and reattempts. I have even have a script which will perform the steps to
clear the package locking used to serialize updating. This is needed when
the update fails catastrophically and does not clean up the locking. Your
updates will be blocked if that locking is not cleared. If you are doing
this on a mission critical system then you may want to be careful about
having good backups before performing updates but most of my testing is on
Virtual Box throw away Guests. I regularly update my base platforms and
have not performed a distribution upgrade since Ubuntu 14.04. Since 16.04
just came out, I will be looking at doing that for my base level systems.

Final most systems that I perform maintenance on, I will keep driving to
completion successful installation of the target I was trying to install
before attempting to reboot.
Some things are not fixable.. Case in point the current Daily Builds for
16.04 Xenial have a Systemd bug that freezes the boot process. I could not
find any workarounds and until the development team promotes corrective
code to the nightly distribution, I cannot test those distributions.

Gene

On Mon, Nov 2, 2015 at 1:15 PM, Andrei Marinescu <
<email address hidden>> wrote:

> I'm also looking for a fix for this. I did a apt-get install kubuntu-
> desktop this morning and it busted my package manager. I expect that if
> I try to reboot the machine it's going to fail, since it failed midway
> in installing KDE.
>
> Any workarounds, or at least rollback instructions available?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1488909
>
> Title:
> package kaccounts-providers (not installed) failed to install/upgrade:
> trying to overwrite '/usr/share/accounts/providers/google.provider',
> which is also in package account-plugin-google
> 0.12+15.10.20150723-0ubuntu1
>
> Status in kaccounts-providers package in Ubuntu:
> Confirmed
>
> Bug description:
> Errors during kubuntu-desktop kubuntu-restricted-extras install after,
> successful ubuntu-desktop ubuntu-restricted-extras install on a Ubuntu
> Server 15.10 system.
>
> ProblemType: Package
> DistroRelease: Ubuntu 15.10
> Package: kaccounts-providers (not installed)
> ProcVersionSignature: Ubuntu 4.1.0-3.3-generic 4.1.3
> Uname: Linux 4.1.0-3-generic x86_64
> ApportVersion: 2.18-0ubuntu7
> Architectu...

Read more...

Revision history for this message
Andrei Marinescu (iandrei-marinescu) wrote :

It actually wasn't broken, so you're right. The reason I made this assumption is that I was also switching the login manager during this installation process, and I just guessed that something would be left in an intermediary state. While that was partially true, I was able to reboot and continue using my default ubuntu desktop (albeit with a kubuntu boot screen).

Thanks, in any case, for your answer, Gene. Your comments are spot on and I totally agree.

For me, this was basically a case of trying to give Kubuntu Desktop a quick install and then go on with my daily tasks. The installation failed (for the reason mentioned in the description of this bug), apt-get install -f was failing constantly with the same error and I felt basically stuck. I did manage to repair my distro and things are back to normal.

Revision history for this message
segin (segin2005) wrote :

For a temporary workaround, run (as root):

dpkg -r account-plugin-google unity-scope-gdrive

This will remove the conflicting account-plugin-google package and the unity-scope-gdrive package that depends on it (as trying to remove via 'apt-get' will fail)

Then, run (as root):

apt-get -f install

which will finish the installation of kubuntu-desktop.

Revision history for this message
In , Scarlett Gately Moore (scarlettmoore) wrote :

We still have a growing number of bug reports piling up on launchpad in regards to this bug.
I expect it is because many ubuntu users will have gnome stuff..
https://bugs.launchpad.net/kubuntu-ppa/+bug/1451728

Any progress?
Scarlett

Revision history for this message
In , Mklapetek (mklapetek) wrote :

One possible solution is adding an env variable and patching the install prefix.

That's the only solution we have right now.

Revision history for this message
fabtagon (fabtagon) wrote :

This only relocates the problem to the next upcoming conflict:

# LANG=C dpkg -i /var/cache/apt/archives/kaccounts-providers_4%3a15.08.2-0ubuntu1_all.deb
(Reading database ... 319061 files and directories currently installed.)
Preparing to unpack .../kaccounts-providers_4%3a15.08.2-0ubuntu1_all.deb ...
Unpacking kaccounts-providers (4:15.08.2-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/kaccounts-providers_4%3a15.08.2-0ubuntu1_all.deb (--install):
 trying to overwrite '/etc/signon-ui/webkit-options.d/www.facebook.com.conf', which is also in package account-plugin-facebook 0.12+15.10.20150723-0ubuntu1
Errors were encountered while processing:
 /var/cache/apt/archives/kaccounts-providers_4%3a15.08.2-0ubuntu1_all.deb

For me, this does not only prevent a successful installation of KDE, it leaves me with a blank (actually non-working plasma-something) screen upon reboot. Keep in mind that not all users are able to recover their system via a terminal; for the less familiar this means they have to reinstall their system.

Revision history for this message
Device (devices) wrote :

I tried to install kubuntu-desktop and also got similar error.

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)

I see this bug has been reported in august. I hope I'm not left with a broken package manager for 4 months. It would be bad to not be able to install software or security updates.

Revision history for this message
Julian Alarcon (julian-alarcon) wrote :

This bug (or very similar) is already reported in Kubuntu PPA
https://bugs.launchpad.net/kubuntu-ppa/+bug/1451728

Changed in meta-telepathy:
importance: Unknown → High
Revision history for this message
In , Flames_in_Paradise (ellisistfroh-deactivatedaccount) wrote :

This is a real blocker - so... Multi-Desktop environment (still recommended?) puts interested peoples desktop in a unsecure state as it blocks APT then.

If there is no other solution we will have to ask to remove Telepathy from Kubuntu-meta or _not_ to recommend a mixed Desktop-Environment any longer & put up a warning. May sound harsh, but...

This error covers two release + a third that's in current development.

A possible solution to get at least APT back into it's shoes again was posted in askubuntu:

https://askubuntu.com/questions/618389/error-upgrading-kde-telepathy-kubuntu-15-04

Revision history for this message
john casanova (pcgamer2426) wrote :

any updates on this ? i just got stuck with this bug and cannot get updates. The workaround failed.

Revision history for this message
In , Mklapetek (mklapetek) wrote :

Git commit 0b2bbbb1ca9266e8e2c9b685d4d44f1d69822b03 by Martin Klapetek.
Committed on 18/01/2016 at 19:55.
Pushed by mklapetek into branch 'master'.

Disable the KCM if AG_PROVIDERS and/or AG_SERVICES are empty

M +112 -0 src/kaccounts.cpp

http://commits.kde.org/kaccounts-integration/0b2bbbb1ca9266e8e2c9b685d4d44f1d69822b03

Revision history for this message
In , Mklapetek (mklapetek) wrote :

Git commit 0ba1dde28cfacff71b264bba1b43a3f6e5992406 by Martin Klapetek.
Committed on 18/01/2016 at 19:55.
Pushed by mklapetek into branch 'master'.

Force the installation of providers and services to $CMAKE_INSTALL_PREFIX/share/kaccounts

Because distros are unable to solve this file conflict, this will now
force all providers and services to be installed in own directory to
which libaccounts-glib needs to be pointed by env vars. Things won't
work without those env vars.
FIXED-IN: 16.04.0

M +18 -42 src/lib/cmake/FindAccountsFileDir.cmake

http://commits.kde.org/kaccounts-integration/0ba1dde28cfacff71b264bba1b43a3f6e5992406

Changed in meta-telepathy:
status: Unknown → Fix Released
Revision history for this message
Jason Hines (jasonehines) wrote :

I originally installed the default Ubuntu 15.10. Then installed Xubuntu desktop. While in the Xubuntu desktop I installed Kubuntu-desktop. I got this error during the installation. Hope that's helpful.

Revision history for this message
Flames_in_Paradise (ellisistfroh-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

This particular bug has already been reported and is a duplicate of bug 1451728, so it is being marked as such.

Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report.

Feel free to continue to report any other bugs you may find.

Revision history for this message
Maverick (rpfly0818) wrote :

Same as Jason, I have this bug when I install Kubuntu-desktop on Ubuntu 15.10.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.