Install failure: trying to overwrite '/usr/share/dbus-1/services/org.freedesktop.PackageKit.service', which is also in package gnome-packagekit-session 3.14.2-0ubuntu2

Bug #1544471 reported by Iain Lane
48
This bug affects 7 people
Affects Status Importance Assigned to Milestone
gnome-software (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

laney@raleigh> sudo apt install gnome-software
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  gnome-software-common libappstream-glib8
The following NEW packages will be installed
  gnome-software gnome-software-common
The following packages will be upgraded:
  libappstream-glib8
1 to upgrade, 2 to newly install, 0 to remove and 264 not to upgrade.
Need to get 2,782 kB of archives.
After this operation, 5,337 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 gnome-software-common all 3.19.5+git20160211.e8cfba4-0ubuntu5 [2,505 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 libappstream-glib8 amd64 0.5.8-1ubuntu4 [91.4 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 gnome-software amd64 3.19.5+git20160211.e8cfba4-0ubuntu5 [185 kB]
Fetched 2,782 kB in 41s (66.5 kB/s)
Selecting previously unselected package gnome-software-common.
(Reading database ... 745898 files and directories currently installed.)
Preparing to unpack .../gnome-software-common_3.19.5+git20160211.e8cfba4-0ubuntu5_all.deb ...
Unpacking gnome-software-common (3.19.5+git20160211.e8cfba4-0ubuntu5) ...
Preparing to unpack .../libappstream-glib8_0.5.8-1ubuntu4_amd64.deb ...
Unpacking libappstream-glib8:amd64 (0.5.8-1ubuntu4) over (0.5.0-0ubuntu3) ...
Selecting previously unselected package gnome-software.
Preparing to unpack .../gnome-software_3.19.5+git20160211.e8cfba4-0ubuntu5_amd64.deb ...
Unpacking gnome-software (3.19.5+git20160211.e8cfba4-0ubuntu5) ...
dpkg: error processing archive /var/cache/apt/archives/gnome-software_3.19.5+git20160211.e8cfba4-0ubuntu5_amd64.deb (--unpack):
 trying to overwrite '/usr/share/dbus-1/services/org.freedesktop.PackageKit.service', which is also in package gnome-packagekit-session 3.14.2-0ubuntu2
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for libc-bin (2.21-0ubuntu5) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for bamfdaemon (0.5.2~bzr0+16.04.20151217-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/gnome-software_3.19.5+git20160211.e8cfba4-0ubuntu5_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Matthias Klumpp (ximion) wrote :

The easiest way to fix this would be upgrading your PackageKit and GNOME-PackageKit packages ;-)
I wonder why this issue happens at all though, since GS has a Breaks/Replaces relation: gnome-packagekit-session (<< 3.16.0-2~)

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in gnome-software (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthias Klumpp (ximion) wrote :

Looks like Robert Ancell dropped the transition packages from GS - bad mistake ;-)
GS implements the PackageKit session interface now, while it was dropped from GNOME-PackageKit in recent releases, so the transitional packages must be in place, especially (obviously) if GPK is updated in Ubuntu.

I have no idea how these interfaces work when GS is installed without PackageKit - afterall, the possibility to disable PK in GS was introduced to GS only to be able to xdg-app-sandbox it, and not to actually use it without PK.
Maybe the session interface will still work though, and just use your aptd stuff...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-software - 3.19.5+git20160211.e8cfba4-0ubuntu7

---------------
gnome-software (3.19.5+git20160211.e8cfba4-0ubuntu7) xenial; urgency=medium

  * debian/patches/ubuntu-provenance.patch:
    - Mark packages from official Ubuntu repositories (LP: #1544558)

 -- Robert Ancell <email address hidden> Fri, 12 Feb 2016 11:19:46 +1300

Changed in gnome-software (Ubuntu):
status: Confirmed → Fix Released
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.