Posts: 1,445
skidoo
Joined: 09 Feb 2012
#1
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: Select all

        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.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#2
Does pkexec have local/bin in its path?
Posts: 1,445
skidoo
Joined: 09 Feb 2012
#3
Coincidentally, in the past day, topic appeared in MX forum"antix 16: I can't run synaptic in a terminal?"

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://forum.mxlinux.org/viewtopic.php?f=40&t=40931"
linktext was:"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
Posts: 1,445
skidoo
Joined: 09 Feb 2012
#4
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
Posts: 521
Shay
Joined: 20 Apr 2015
#5
Got curious

Code: Select all

$ 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: Select all

$ su
Password: 
root@antix16:/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
Posts: 1,445
skidoo
Joined: 09 Feb 2012
#6
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
Posts: 521
Shay
Joined: 20 Apr 2015
#7
Well the correct password was used, but I prefer going the su route.
The PITA, well I can live with it for now.
Posts: 64
reverseDog
Joined: 13 Jul 2016
#8
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 __{{emoticon}}__ ): 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: Select all

$ ldd /usr/sbin/synaptic | grep gtk
    libgtk-3.so.0 => /usr/lib/i386-linux-gnu/libgtk-3.so.0 (0xb6cf3000)
Posts: 521
Shay
Joined: 20 Apr 2015
#9

Code: Select all

$ 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.