#853165 policykit-1: Synaptic fails to start; do not show pop-up for root password

Package:
policykit-1
Source:
policykit-1
Description:
transitional package for polkitd and pkexec
Submitter:
kznrsa
Date:
2025-03-31 23:30:02 UTC
Severity:
important
#853165#5
Date:
2017-01-30 12:16:43 UTC
From:
To:
Package: policykit-1
Version: 0.105-17
Severity: important

#853165#10
Date:
2017-02-06 13:02:21 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where
appropriate ***

   * What led up to the situation?
Could not start synaptic via the LXDE menu (nothing happens); try to
start it from the command line using:
$ synaptic-pkexec
==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ===
Authentication is required to run the Synaptic Package Manager
Authenticating as: root
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.

Others authentication problems exist:
when trying to mount an internal partition from pcmanfm/lxde, a error
message is displayed "not authorized to perform operation" (should ask
for the root password).

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

#853165#15
Date:
2025-03-31 21:37:15 UTC
From:
To:
Dear Maintainer,


    * What led up to the situation?
         I don't know what led to the situation, but it was working a
few months
ago. The problem seems to be happening randomly to some people, as a
search on
the net shows.
    * What exactly did you do (or not do) that was effective (or
ineffective)?
         I tried a few things that people suggest without success, like
reinstalling related packages:
         sudo  apt install --reinstall gir1.2-polkit-1.0 libpolkit-agent-1-0
policykit-1-gnome

         I don't know where do I read the following but I confirmed it with
chatgpt. The user needs to be in sudo or admin group so that pkexec works.

         So I checked in which groups my user was:
         $ groups
         <$USER here> dialout plugdev users docker libvirt libvirt-qemu

         Then I added my user to sudo with:
         $ sudo usermod -aG sudo $USER

         I don't know if a reboot or a logout/login is need but, it is
working
now.

    * What was the outcome of this action?
         pkexec is showing the dialog requesting for the root password.

#853165#20
Date:
2025-03-31 23:25:53 UTC
From:
To:
In general, my advice is to report new bugs for apparently new issues
especially when the bug you want to reply to is very old and you are
running Debian Testing or Unstable. In your new bug, you are welcome
to include links to bugs you think may be related.
…

This sounds at least somewhat similar to
https://bugs.debian.org/1101748 except that you're using LXDE instead
of Cinnamon. Could you either report a new bug against pkexec or
comment on that bug?

Thank you,
Jeremy Bícha