welcome to the world of…

Looks like a small bulb used to indicate something unusual, like a malfunction.

Xubuntu upgrade to 13.10 with troubles

Filed under: Uncategorized — Tags: , , , , , — admin @ 2014-03-18 19:15

New (X)Ubuntu switched to systemd and it brought new challenges with upgrading. I use Xubuntu fork but this might affect others as well. I can’t turn off or hibernate the computer. Even after logout there are no buttons for powering off. And I can’t access NetworkManager.

This bug is known for several months and it is a big problem. Still no solution in the distribution. When you try to shutdown/hibernate/… then the only thing you get is an error message:

Failed to hibernate session
GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Operation not permitted

Usual stuff like playing with polkit settings does not work. Xubuntu 13.10 freshly installed in a VirtualBox works well. There must be something wrong in /etc. So I went step by step diffing “clean” and my /etc directory.

My first discovery was a missing package xubuntu-default-settings. But it only unified the login screen.

After a very long search on my disk and on the Internet I found this bug report. Adding session optional pam_systemd.so to a file /etc/pam.d/common-session just after a line with session required pam_unix.so fixes few things. But only that shutting down does not show any error dialog. It only logs me out to the lightdm manager.

Microsoft bought Canonical or what the hell is going on?

More googling… Another old and unsolved bug. Installing the package systemd-shim solves the “only log out” problem. Almost there but not yet. NetworkManager is inaccessible after waking up from a hibernation. Fix – create an executable script /etc/pm/sleep.d/network-manager-resume with following content:


# This script gets NetworkManager out of suspend.
case $1 in
    # No need to do anything here.
    nmcli nm sleep false

Is the new Canonical philosophy something like screw you upgraders (or everybody)???


  1. I had similar issues with lxde desktop – same thing with suspend. Network Manager wasn’t accessible at all from the applet (everything greyed out, no wireless indicator) although NM itself seemed to work. Killing and restarting the applet didn’t help. Reboots didn’t help. I also got weird permission denied errors when trying to run update-manager.

    I had the latest updates for everything – no broken dependencies, my /etc/pam.d/common-session already had the entry for systemd, systemd-shim was already installed and at latest version. But you gave me an idea. I found an /etc/pam.d/lxdm file and added the same line there as in common-session, rebooted. I still get an error when I log in about generating a report for a failed application but it doesn’t tell me what application. Suspend works, NM works from the applet. I can run update-manager as my user, but I can’t change anything. It used to ask me to authenticate for sudo access but that isn’t happening now. It simply won’t let me change anything. Will figure that out tomorrow. I’m guessing some other file needs to be updated.

    Comment by Thierry — 2014-03-21 @ 05:25

  2. Thierry: Hi! Thanks for sharing. I also experience multiple dialogs with reports about a failed application after every log in on another machine with *fresh* 13.10 Xubuntu installation :-/ Anyway I’m looking forward to your new results.

    Comment by admin — 2014-03-21 @ 08:14

  3. When I ran lxsession-edit and selected “PolicyKit Authentication Agent” it seemed to fix the problem.

    Comment by A. L. — 2014-06-25 @ 22:28

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.