LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 01-20-2019, 03:26 PM   #31
makarovnik
LQ Newbie
 
Registered: Nov 2018
Location: Northwest
Distribution: Lubuntu, Peppermint, AntiX
Posts: 15

Rep: Reputation: Disabled

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:

Code:
synaptic-pkexec
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.
 
Old 01-20-2019, 06:00 PM   #32
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 108

Rep: Reputation: 125Reputation: 125
Quote:
Originally Posted by makarovnik View Post
...
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.
PLease take a look at one of previous post: https://www.linuxquestions.org/quest...3/#post5950954
 
Old 01-20-2019, 06:27 PM   #33
makarovnik
LQ Newbie
 
Registered: Nov 2018
Location: Northwest
Distribution: Lubuntu, Peppermint, AntiX
Posts: 15

Rep: Reputation: Disabled
Thank you,

I did get this working for now by just reinstalling esudo. Unfortunately I got impatient towards the end and started throwing multiple solutions at the problem without thoroughly testing after each modification to the system (very naughty of me).

Also please look at my attached screenprint. Notice there is no option to add Policykit Authentication Agent in the startup settings. Does that mean it's not even installed??

Don't think I could have fixed this without all of you guys input. Thanks very much.

If after thorough testing I deem this fixed, is it appropriate for me to mark this thread "solved" being that I was not the OP?
Attached Thumbnails
Click image for larger version

Name:	screenshot_policykit.jpg
Views:	10
Size:	224.4 KB
ID:	29528  

Last edited by makarovnik; 01-20-2019 at 06:44 PM.
 
Old 01-21-2019, 05:27 AM   #34
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 108

Rep: Reputation: 125Reputation: 125
Quote:
Originally Posted by makarovnik View Post
...
Also please look at my attached screenprint. Notice there is no option to add Policykit Authentication Agent in the startup settings. Does that mean it's not even installed??

...
OK I am not sure if it is installed in a default install on BL 5.0 but anyways to get that in the startup settings you need:

Code:
sudo apt-get install policykit-1-gnome
As to marking solved I don't know if you can, in our old forums only the OP or a moderator could (I think anyway). I would just leave it as the conflict between policykit and esudo is a Bodhi problem on our end and at some point we need to do something different in the way esudo is installed or implemented.
 
Old 01-27-2019, 03:55 PM   #35
RonCam
Member
 
Registered: Dec 2008
Posts: 54

Rep: Reputation: 11
Exclamation Helpful suggestion.

Quote:
Originally Posted by rbtylee View Post
I think something borked your esudo install. Try

Code:
sudo apt-get upgrade
sudo apt-get install --reinstall esudo
Probably a good idea to edit the word upgrade to update?

Some poor soul, tired after work, is going to just look at this, type it into terminal, <Enter>, and not read through the thread for several posts until he or she comes across the correction.

I just entered this on my 5.0 installation, and then did the 'hold' step from a different post, in a different thread.

So, on my system, it's fixed, and with the 'hold' it should stay fixed. The 'hold' command was given without comment and so, is it OK to assume this only produces benefits, with no downside? Comments appreciated ...

It would be a good idea to put all of this (the corrected version, of course) including the 'hold' step, into a single entry in the Bodhi wiki.

Last edited by RonCam; 01-27-2019 at 03:56 PM. Reason: added title
 
1 members found this post helpful.
Old 01-27-2019, 04:04 PM   #36
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 108

Rep: Reputation: 125Reputation: 125
Quote:
Originally Posted by RonCam View Post
Quote:
Originally Posted by rbtylee View Post
I think something borked your esudo install. Try

Code:
sudo apt-get upgrade
sudo apt-get install --reinstall esudo
Probably a good idea to edit the word upgrade to update?
Right of course Ok for some reason it will not let me edit that. Not an admin or moderator here like I was on the old forum so I has no super powers

maybe there is a time limit on editing post cause I can edit post I did today. Oh well...
 
1 members found this post helpful.
Old 01-27-2019, 04:49 PM   #37
hemlocktree
Member
 
Registered: Aug 2018
Location: Northern Exposure
Distribution: Bodhi 5
Posts: 419

Rep: Reputation: 160Reputation: 160
now i am lost as to what is did - what i should do or need to do... maybe i wil find out when update and dist upgrade this week,
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems w/ Synaptic Muzzly Debian 4 04-23-2009 09:33 PM
problems with my synaptic paulrosenthal07 Linux - Newbie 1 09-16-2007 09:56 PM
Problems with Synaptic Clarence27 Linux - Newbie 3 07-30-2006 03:14 PM
synaptic problems canyon289 Linux - Software 1 07-09-2005 12:44 AM
problems with synaptic hey_fidel Linux - Software 1 11-13-2004 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration