It is currently Mon May 22, 2017 11:25 pm



Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!


Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: update-menu fails if synaptic is launched "synaptic-pkexec"
PostPosted: Sat Nov 19, 2016 10:05 am 
Offline

Joined: Thu Feb 09, 2012 7:29 am
Posts: 1136
auto-completion kicked in when I typed "synaptic" in Alt+F2 runbox tonight
(guessing my fat-fingered typing hit the tab key)
I wound up launching "synaptic-pkexec"

post-install error message reported "not all actions could be completed... not found, /usr/local/lib/desktop-menu/desktop-menu-apt-update line14"
that line reads:
Code:
        desktop-menu --write-out-global;

Works fine when "synaptic" is launched; consistently fails (repeatable) when "synaptic-pkexec" is used.

antix16 also ships a /usr/bin/gparted-pkexec file.
I haven't checked but am guessing that launching "gparted-pkexec" may cause similar problems.


Top
 Profile  
 
 Post subject: Re: update-menu fails if synaptic is launched "synaptic-pkex
PostPosted: Sun Nov 20, 2016 7:04 am 
Offline

Joined: Thu Jan 21, 2010 12:36 am
Posts: 1040
Does pkexec have local/bin in its path?

_________________
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown


Top
 Profile  
 
 Post subject: Re: update-menu fails if synaptic is launched "synaptic-pkex
PostPosted: Sun Nov 20, 2016 8:43 am 
Offline

Joined: Thu Feb 09, 2012 7:29 am
Posts: 1136
Coincidentally, in the past day, topic appeared in MX forum "antix 16: I can't run synaptic in a terminal?"
http://forum.mxlinux.org/viewtopic.php?f=40&t=40931

In case my earlier post was unclear, I'm accustomed to Alt+F2 typing synaptic. the "pkexec" bit happened by accident.

Contrary to what timkb4cq posted in the MX thread (topic title said antix16. He tested in antix, not MX?)
in my testing, synaptic-pkexec launched from terminal yields same (see screencap) menu-update error
Image


Top
 Profile  
 
 Post subject: Re: update-menu fails if synaptic is launched "synaptic-pkex
PostPosted: Sun Nov 20, 2016 8:52 am 
Offline

Joined: Thu Feb 09, 2012 7:29 am
Posts: 1136
Aha, declaring the absolute path to /usr/local/bin/desktop-menu
within the /usr/local/lib/desktop-menu/desktop-menu-apt-update script does resolve the issue.

Image


Top
 Profile  
 
 Post subject: Re: update-menu fails if synaptic is launched "synaptic-pkex
PostPosted: Sun Nov 20, 2016 5:15 pm 
Offline

Joined: Mon Apr 20, 2015 9:58 pm
Posts: 461
Location: Sheboygan, WI
Got curious

Code:
$ synaptic-pkexec
==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ===
Authentication is required to run the Synaptic Package Manager
Authenticating as: jim
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.


This did open synaptic, but ????
Code:
$ su
Password:
[email protected]:/home/jim# synaptic-pkexec

** (synaptic:18447): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files


Top
 Profile  
 
 Post subject: Re: update-menu fails if synaptic is launched "synaptic-pkex
PostPosted: Sun Nov 20, 2016 11:24 pm 
Offline

Joined: Thu Feb 09, 2012 7:29 am
Posts: 1136
Shay, your first case represents the predictable result when other than the expected password is entered.

The second, it's a low-grade PITA warning & isn't specific to pkexec nor synaptic.
Can avoid seeing that warning by installing 220kb "Accessibility Toolkit" debian package (at-spi2-core).
sudo dpkg-query -S org.a11y.Bus
^---} shows at-spi2-core as the provider of of the etc...org.a11y.Bus.service file


Top
 Profile  
 
 Post subject: Re: update-menu fails if synaptic is launched "synaptic-pkex
PostPosted: Mon Nov 21, 2016 3:18 am 
Offline

Joined: Mon Apr 20, 2015 9:58 pm
Posts: 461
Location: Sheboygan, WI
Well the correct password was used, but I prefer going the su route.
The PITA, well I can live with it for now.


Top
 Profile  
 
 Post subject: Re: update-menu fails if synaptic is launched "synaptic-pkex
PostPosted: Mon Nov 21, 2016 11:37 am 
Offline

Joined: Wed Jul 13, 2016 1:02 pm
Posts: 50
Location: Freiburg, Germany
For me "synaptic-pkexec" strangely enough runs fine on live CD. But with antiX-16 installed I at first got the same authentication error Shay did. Only after installing a graphical authentication agent was I able to successfully pass Policykit authentication (mate-polkit for instance does the job just fine).

As for the PITA (had to look that up :wink: ): It seems to occur with all, and only with, programs that run on GTK-3. Which GTK a program is based on can be checked with ldd:
Code:
$ ldd /usr/sbin/synaptic | grep gtk
   libgtk-3.so.0 => /usr/lib/i386-linux-gnu/libgtk-3.so.0 (0xb6cf3000)


Top
 Profile  
 
 Post subject: Re: update-menu fails if synaptic is launched "synaptic-pkex
PostPosted: Mon Nov 21, 2016 5:23 pm 
Offline

Joined: Mon Apr 20, 2015 9:58 pm
Posts: 461
Location: Sheboygan, WI
Code:
$ ldd /usr/sbin/synaptic | grep gtk
   libgtk-3.so.0 => /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 (0x00007f1fdebdc000)


32-64 bit difference it seems.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
suspicion-preferred