Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Problem with polkit in testing MATE

User discussion about Debian Development, Debian Project News and Announcements. Not for support questions.
Post Reply
Message
Author
dcihon
Posts: 279
Joined: 2012-09-23 16:18
Been thanked: 3 times

[SOLVED] Problem with polkit in testing MATE

#1 Post by dcihon »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Problem in testing

#2 Post by Head_on_a_Stick »

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

See also http://forums.debian.net/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.
deadbang

dcihon
Posts: 279
Joined: 2012-09-23 16:18
Been thanked: 3 times

Re: Problem in testing

#3 Post by dcihon »

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.

tynman
Posts: 131
Joined: 2016-05-03 19:48
Location: British Columbia, Canada
Been thanked: 1 time

Re: Problem in testing

#4 Post by tynman »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Problem in testing

#5 Post by Head_on_a_Stick »

^ +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).
deadbang

dcihon
Posts: 279
Joined: 2012-09-23 16:18
Been thanked: 3 times

Re: Problem in testing

#6 Post by dcihon »

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

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Problem in testing

#7 Post by Head_on_a_Stick »

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!
deadbang

dcihon
Posts: 279
Joined: 2012-09-23 16:18
Been thanked: 3 times

Re: Problem in testing

#8 Post by dcihon »

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.

Post Reply