Public bug reported:
If dbus is not running (e.g. in my karmic chroot environment), I get
this nasty error message on each apt operation:
# apt-get update
...
Failed to open connection to "system" message bus: Failed to connect to socket
/var/run/dbus/system_bus_socket: No such file or directory
E: Problem executing scripts APT::Update::Post-Invoke-Success
'/usr/bin/dbus-send --system --dest=org.freedesktop.PackageKit
--type=method_call /org/freedesktop/PackageKit
org.freedesktop.PackageKit.StateHasChanged string:'cache-update''
E: Sub-process returned an error code
A simple fix is, to check if dbus is running in
/etc/apt/apt.conf.d/20packagekit, before doing the dbus call
Trivial patch is attached
** Affects: packagekit (Ubuntu)
Importance: Undecided
Status: New
--
Don't fail if dbus is not running
https://bugs.launchpad.net/bugs/388623
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs