Error org.freedesktop.DBus.Error.TimedOut: Activation of org.freedesktop.PackageKit timed out

Bug #898891 reported by Raphael Gradenwitz
100
This bug affects 22 people
Affects Status Importance Assigned to Milestone
packagekit (Ubuntu)
Fix Released
Undecided
Matthias Klumpp

Bug Description

This message comes after every invokation of apt-get (update, upgrade, install)

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: packagekit 0.7.1-1 [modified: var/lib/PackageKit/transactions.db]
ProcVersionSignature: Ubuntu 3.1.0-2.3-generic 3.1.0
Uname: Linux 3.1.0-2-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.90-0ubuntu1
Architecture: amd64
Date: Fri Dec 2 02:23:30 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110727)
SourcePackage: packagekit
UpgradeStatus: Upgraded to precise on 2011-11-16 (15 days ago)

-----
=== Workaround for this bug until PK 0.7.2 is released ===
Just execute this command to remove the broken plugin:
sudo rm /usr/lib/packagekit-plugins/libpk_plugin-update-check-processes.so
This will disable the check for running processes before an update is done too, but usually this shouldn't be a problem.

Revision history for this message
Raphael Gradenwitz (raphael-gradenwitz) wrote :
Revision history for this message
Matthias Klumpp (ximion) wrote :

Hmm... What happens if you run "sudo killall packagekitd && sudo /usr/lib/packagekit/packagekitd --verbose" in a terminal?

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

For some reason, building PK on Ubuntu's buildd leads to a strange daemon crash (PkProc type is registered twice)
There is a workaround for this in PKs main development tree, as soon as PK 0.7.2 is out, it will work again (at least that's what I expect)
Could you maybe install the PackageKit package from Debian ( http://packages.debian.org/sid/packagekit ) and try it again with the binaries built for Debian?

Revision history for this message
Raphael Gradenwitz (raphael-gradenwitz) wrote :

Attached is the output of sudo killall packagekitd && sudo /usr/lib/packagekit/packagekitd --verbose
As you can see, there are some GLib Warnings and -CRITICALs:

(packagekitd:1876): GLib-GObject-WARNING **: cannot register existing type `PkProc'

(packagekitd:1876): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

(packagekitd:1876): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed

Hope that helps!

Revision history for this message
Raphael Gradenwitz (raphael-gradenwitz) wrote :

Matthias Klumpp (ximion) wrote:

> Could you maybe install the PackageKit package from Debian
>

I had to install the packagekit_0.7.1-2_amd64.deb and the packagekit-backend-aptcc_0.7.1-2_amd64.deb wich makes huge dependency garbage because it depends on libapt-pkg4.10 and precise uses libapt-pkg4.11.
After manualy copy the /usr/lib/libapt-pkg.so.4.10.1 (and symlink) from the apt_0.8.15.9_amd64.deb everything works fine (without warnings).

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

Okay. This is an issue with Ubuntu's build environment, unfortunately I wasn't able to find out why exactly this happens.
The new PK will contain a workaround for this issue, so it won't happen again.
If Ubuntu syncs the new PK version, you can workaround this issue by just removing the broken plugin:
"sudo rm /usr/lib/packagekit-plugins/libpk_plugin-update-check-processes.so"
Thank you for your test and your bug report! This bug will be fixed soon.

Changed in packagekit (Ubuntu):
assignee: nobody → Matthias Klumpp (ximion)
status: New → In Progress
Revision history for this message
Efrain Valles (effie-jayx) wrote :

I can confirm this bug. I am running ubuntu 12.04 alpha 1 with all updates up until today. Issue still here.

Revision history for this message
me (mr-tom-wheeler) wrote :

ditto. 12.04 updated through today, bug still present.

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

Just to provde an update: We are working on a sane solution for this in PackageKit 0.7.2, which will be present in Ubuntu Precise as soon as it is released.
For some reason this issue is Ubuntu-specific and does not appear on Debian or Fedora.
If you want to get PK working again very soon, you can do the workaround I described above.
Regards,
   Matthias

description: updated
Revision history for this message
Starbetrayer (starbetrayer) wrote :

I confirm this bug to present in kubuntu 12.04 alpha

Revision history for this message
freekiss (hopital9) wrote :

i confirm this bug in ubuntu 32 bit 11.10

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

Hi! :)
You don't need to confirm this bug anymore, it has been validated now. As soon as the new PackageKit is available, this bug will be gone. (Although it will be a workaround, since this could also be an issue with Ubuntu's toolchain, since Debian and Fedora don't have this problem)
You can be sure this bug will be fixed within the next months. (but I hope I can upload the new release next week)
Cheers,
   Matthias

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

This bug was fixed in the package packagekit - 0.7.2-1

---------------
packagekit (0.7.2-1) unstable; urgency=low

  * New upstream release: 0.7.2
    Highlights of this release (for Debian):
    - glib: Convert libpackagekit-glib2 from dbus-glib to GDBus
       (Richard Hughes)
    - apt: Reintroduce apt backend (Sebastian Heinlein)
    - aptcc: Add Multi-Arch support (Daniel Nicoletti)
    - aptcc: Fix crash on get-categories, backend does not support that
       (Matthias Klumpp)
    - aptcc: Support for InstallPackageFiles by using gdebi
       (Daniel Nicoletti) (Closes: #606131)
    - aptcc: Basic conffile support (Closes: #606025)
    - Add a new repair-system policy and use it by the corresponding
       RepairSystem method (Sebastian Heinlein)
    - Add a transaction_reset backend hook (Richard Hughes)
    - Add new roles SimulateRepairSystem and RepairSystem
       (Sebastian Heinlein)
    - Add possibility to connect/disconnect backend signals (Matthias Klumpp)
    - Add PropertiesChanged signals to the main and transaction
       interfaces (Richard Hughes)
    - Allow the Plasma version to be specified for
       PK_PROVIDES_ENUM_PLASMA_SERVICE (Kevin Kofler)
    - browser-plugin: Make it compile with newest xulrunner
       (Matthias Klumpp)
    - Fix a critical warning in the client tools when a simulation
       is cancelled (Richard Hughes)
    - Fix item-percentage call in the spawned backend (Sebastian Heinlein)
    - gtk-plugin: Fix name of GTK plugin schema file
       (Matthias Klumpp) (Closes: #649377)
    - Make PkProc part of the daemon (Matthias Klumpp) (LP: #898891)
    - Remove deprecated g_thread_init() on GLib < 2.31 (Per Øyvind Karlsen)
    - Set the frontend socket as environment variable in the
       spawned backend (Sebastian Heinlein)
  * Fix typo in package description (Closes: #655443)
  * Make backends depend on Python again
  * Remove patch 01_new_xulrunner: Applied upstream

 -- Matthias Klumpp <email address hidden> Tue, 17 Jan 2012 19:02:38 +0100

Changed in packagekit (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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