11

I can't change any settings nor install anything using the xfce GUI on my xubuntu 14.04. Some setting-windows have that unlock button you usually click to enter your password to gain root privileges, but nothing happens if I click on them:

enter image description here

When starting up that machine, it asks for the installation of language stuff. When I try to install that, I get this error:

err image

How can I fix this?

EDIT:
I just tried to start /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 as suggested here but it fails:

xubuntu-pool-1 vm-admin # /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 

(polkit-gnome-authentication-agent-1:3863): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed

(polkit-gnome-authentication-agent-1:3863): polkit-gnome-1-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

EDIT2:
Actually, it doesn't seem to fail. It doesn't return to the bash prompt but the unlock and install doesn't work anyway.

Edit3:
I also made sure that "PolicyKit Authentication Agent" is checked in startup.

Update:
I just found out, that this issue only happens when logged in via xrdp. If I'm on the local vmware console (this machine is virtual), it works just fine. So the issue must have something to do with xrdp.

Output of that polkit command using normal user:

$ /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1

** (polkit-gnome-authentication-agent-1:4540): WARNING **: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Cannot register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject

This output is the same for the command being run without and with sudo.

tabby.sl
  • 124
  • 8
wullxz
  • 2,716
  • 4
  • 26
  • 38
  • Is PolicyKit Authentication Agent checked in Startup Programs? SImple but it can create the problem. – Hastur Oct 05 '15 at 17:29
  • Try the command in your EDIT with `sudo`. – harrymc Oct 05 '15 at 20:06
  • @Hastur yes, it is. – wullxz Oct 05 '15 at 21:37
  • @harrymc I did that as root as you can see by the "#"-sign in my bash prompt. – wullxz Oct 05 '15 at 21:37
  • Yes, I should have. You problem is exactly the same as in [this thread](http://askubuntu.com/questions/371362/error-when-trying-to-install-remove-programs-after-upgrade-to-ubuntu-13-10), although for Ubuntu 13.10. Could you try and report on the suggestions mentioned in there? – harrymc Oct 06 '15 at 08:00
  • @harrymc I've updated my question. As it's working on local console, I don't think reinstalling would help. There must be some config difference between the xrdp and local session. – wullxz Oct 08 '15 at 12:51
  • When you run network settings manually via `gksu nm-connection-editor`, does it work? – kenorb Oct 08 '15 at 13:01
  • Can you edit `/etc/NetworkManager/NetworkManager.conf` and set `managed=true`, then `sudo killall NetworkManager` as per [this](http://askubuntu.com/a/120652/78223)? – kenorb Oct 08 '15 at 13:04
  • yes, the gksu command does work. I get asked for the password right after typing the command and can then edit the connection. – wullxz Oct 08 '15 at 13:14
  • whats ur output while running **sudo apt-get update** ,note : Close "software center" and 'update manager' if they are running, before you run the above command. paste the log over here – BlueBerry - Vignesh4303 Oct 12 '15 at 04:12
  • i can run `sudo apt-get update` over any terminal just fine. it's only the gui over xrdp that has problems. – wullxz Oct 12 '15 at 15:30

2 Answers2

0

It might be a bug and I'm not sure how to reverse that, but here's an idea: Perhaps you can create a new administrator account, verify your settings are working properly and port your data over to the new account, gaining access that way. I've been locked out my OS's in the past, that trick has worked sometimes and I'm not the only one apparently:

Ubuntu Forums

It may not work, but if you have no other option, might be worth trying. Best of luck in any case.

xCare
  • 797
  • 3
  • 6
  • 18
0

I think your link from your first edit is promising. pleas do NOT start it as root! And start it FROM AN X environment like xterm (not from the text console!).

echo DISPLAY=$DISPLAY

should at first normally output "localhost:0". Then try it again:

/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1

also check, whether the suid bit or so is set on it:

ls -l /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1

should perhaps result in some "s" flags instead of x perhaps like this "srwxr-xr-" i guess...

  • 2
    I found out that this issue only happens when remotely connected via xrdp. It works fine when I'm on the vmware console (like beeing local - it's a vm). Any Idea? I also ran the polkit command again on xterm in a xrdp session - I'll add the output in my question. – wullxz Oct 08 '15 at 12:50