[SOLVED] Problem with polkit in testing MATE

News and discussion about development of the Debian OS itself

[SOLVED] Problem with polkit in testing MATE

Postby dcihon » 2018-07-01 17:07

This seems to be a general problem with several packages.
I know this is a testing problem but I haven't been able to find a solution so I thought I would look for some help here.
Here is a sample of the issue:
Code: Select all
cihonm@cihonm:~/Downloads$ synaptic-pkexec
==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ===
Authentication is required to run the Synaptic Package Manager
Authenticating as: cihonm,,, (cihonm)
Password:
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.


if i run it like this it works so that is what I have been doing.
But I would like to get my menu shortcuts working.
Code: Select all
sudo synaptic-pkexec
Last edited by dcihon on 2018-07-03 10:33, edited 2 times in total.
dcihon
 
Posts: 225
Joined: 2012-09-23 16:18

Re: Problem in testing

Postby Head_on_a_Stick » 2018-07-01 18:23

https://bugs.debian.org/cgi-bin/bugrepo ... bug=841878

See also viewtopic.php?f=30&t=47078

You don't mention which desktop environment (or window manager) you are using but try
Code: Select all
# apt install policykit-1-gnome

Then add `/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &` to your autostart configuration.
Charlie don't hack
User avatar
Head_on_a_Stick
 
Posts: 7635
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Problem in testing

Postby dcihon » 2018-07-01 23:52

Thanks hoas
I will read through all of that. I am sure my answer is there.
I am using MATE.

Code: Select all
root@cihonm:~ # /usr/lib/x86_64-linux-gnu/polkit-gnome-authentication-agent-1
su: /usr/lib/x86_64-linux-gnu/polkit-gnome-authentication-agent-1: not found
127|root@cihonm:~ # apt install policykit-1-gnome
Reading package lists... Done
Building dependency tree       
Reading state information... Done
policykit-1-gnome is already the newest version (0.105-7).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
dcihon
 
Posts: 225
Joined: 2012-09-23 16:18

Re: Problem in testing

Postby tynman » 2018-07-02 02:45

your call to polkit-gnome-authentication-agent-1...
root@cihonm:~ # /usr/lib/x86_64-linux-gnu/polkit-gnome-authentication-agent-1

First, apparently it's not in the /usr/lib/x86_64-linux-gnu/ directory.
More likely it's in the /usr/lib/policykit-1-gnome/ directory (as per hoas' suggestion), but you can check that easily enough.
Second, I wouldn't think you would want to call it from root. (root doesn't "need" it?) Typically you call it from your "normal" user.
tynman
 
Posts: 74
Joined: 2016-05-03 19:48
Location: British Columbia, Canada

Re: Problem in testing

Postby Head_on_a_Stick » 2018-07-02 05:00

^ +1

It's probably also worth mentioning that using Synaptic with testing/unstable is unwise, the command line provides far more information and allows far more control (IMO).
Charlie don't hack
User avatar
Head_on_a_Stick
 
Posts: 7635
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Problem in testing

Postby dcihon » 2018-07-02 10:19

I generally don't use it but I do once in a while along with gdebi-gtk.
I use cli for all my updates and dist-upgrades
dcihon
 
Posts: 225
Joined: 2012-09-23 16:18

Re: Problem in testing

Postby Head_on_a_Stick » 2018-07-02 20:11

So does calling the correct path for the polkit agent fix the problem?

If so, please change the thread title to something more descriptive and add [SOLVED}, thanks!
Charlie don't hack
User avatar
Head_on_a_Stick
 
Posts: 7635
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Problem in testing

Postby dcihon » 2018-07-03 10:32

I had 2 problems I think.
I made the change you guys found and it wasn't in my Startup Applications so I added the command:
Code: Select all
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1

to the startup Applications and it works now.
Thanks guys for all the help.
dcihon
 
Posts: 225
Joined: 2012-09-23 16:18


Return to Debian Development

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable