This problem has been a thorn in my side also. After a fresh Bodhi install I then installed Synaptic and it would launch fine from the menu. After installing Bodhi printer support and my Brother printer/scanner, Synaptic would no longer launch from the menu. I would get the following error:
Code:
Moksha was unable to start the application: synaptic-pkexec
If I open a terminal and type:
I get this:
Code:
==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ===
Authentication is required to run the Synaptic Package Manager
Authenticating as: mike,,, (mike)
Password:
When I enter my user password I get:
Code:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized
This incident has been reported.
When I type: gksudo synaptic it starts fine.
So I could just edit synaptic.desktop and change the exec= to “gksudo synaptic” but I don’t think that is the right way to do it. I looked in the settings panel to see if polkit was in the startup applications section and there was no option for any policy kit. Why is that?
So I opened a terminal and typed:
Code:
ps axu | grep -v grep | grep policykit
and it returned this:
Code:
root 666 0.0 0.1 314488 11920 ? Ssl 10:18 0:00 /usr/lib/policykit-1/polkitd --no-debug
Shouldn’t it be running twice; one instance under root and another instance under my user name?
I’m pretty sure that when I installed my printer scanner it changed some privileges/permissions somewhere and messed up pkexec. I also tried typing:
Code:
sudo synaptic-pkexec
and it asked for my user password then started fine. So I am not authorized to run pkexec unless I use sudo.
Next I typed:
Code:
ls -l /usr/lib/policykit-1/polkit-agent-helper-1
and it returned this:
Code:
-rwsr-xr-x 1 root root 14328 Jan 15 05:18 /usr/lib/policykit-1/polkit-agent-helper-1
Does that look correct as far as privileges and permissions are concerned?
If anyone would please look this over and help me to get pkexec working properly again I would sure appreciate it. Its going to take someone smarter than me to figure this out. If anyone wants to try to reproduce this I found out the hard way you can try to install minstick (which will install but not work properly) then try to start Synaptic from the menu and you should get the same errors. Thanks in advance for you consideration and help.