I met up with the same problem recently. I'm a newbie, so I don't know whether this can solve your problem, but here is my solution.

  1. find out which desktop environment I'm using

    ps -A | egrep -i "gnome|kde|mate|cinnamon|lx|xfce|jwm"
    
  2. search for the corresponding policykit package and install it.

    sudo apt search policykit
    sudo apt install policykit-1-gnome
    

    my desktop environment is GNOME

  3. (I don't know whether this step is necessary)

    exec /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
    

and then my problem had gone.

Answer from ShanaAE on askubuntu.com
🌐
Ubuntu
manpages.ubuntu.com › xenial › man(8)
Ubuntu Manpage: polkit - Authorization Framework
Applications that do not run under a desktop environment (for example, if launched from a ssh(1) login) may not have have an authentication agent associated with them. Such applications may use the PolkitAgentTextListener type or the pkttyagent(1) helper so the user can authenticate using a ...
🌐
Ubuntu MATE Community
ubuntu-mate.community › support & help requests
Who or what is "polkit" - Support & Help Requests - Ubuntu MATE Community
March 20, 2022 - For the last week or so, when I start my computer a mysterious request appears that a /bin/sh process requests root privileges and would I please authenticate. Not even for my best friend. A little investigation found this is coming from polkit-mate authentication-agent.
🌐
OneUptime
oneuptime.com › home › blog › how to set up polkit rules for privilege escalation on ubuntu
How to Set Up Polkit Rules for Privilege Escalation on Ubuntu
March 2, 2026 - Understanding Polkit lets you grant specific elevated permissions to users or groups without giving them unrestricted sudo access. ... If required, it presents an authentication dialog (or returns a denial for non-interactive sessions) ...
🌐
Ask Ubuntu
askubuntu.com › questions › 1499981 › polkit-service-running-but-getting-authorization-protocol-specified
gnome - polkit.service running, but getting authorization protocol specified - Ask Ubuntu
January 13, 2024 - /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 (polkit-gnome-authentication-agent-1:832242): polkit-gnome-1-WARNING **: 20:21:56.976: Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Unit polkit.service is masked.
🌐
Snapcraft
forum.snapcraft.io › snapd
Enabling polkitd on Ubuntu Core - snapd - snapcraft.io
August 15, 2022 - There has been some interest in using polkit on Ubuntu Core devices, and since we got this working for the Ubuntu Core Desktop prototype builds I thought I’d go over what I think would be needed to get it working in regu…
Find elsewhere
🌐
GitHub
github.com › orgs › regolith-linux › discussions › 1030
3.2 on Ubuntu 24.04: Polkit dialog not working? · regolith-linux · Discussion #1030
July 9, 2024 - Here's what I do on ubuntu 23.10 when needing to authenticate via policy-kit... In a terminal window, run the following to start the policy-kit agent · sudo /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
🌐
GitHub
github.com › polkit-org › polkit
GitHub - polkit-org/polkit: polkit (formerly PolicyKit) is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes. · GitHub
polkit (formerly PolicyKit) is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes. - polkit-org/polkit
Starred by 222 users
Forked by 82 users
Languages   C 93.5% | Meson 2.5% | Shell 2.5% | JavaScript 0.9% | Python 0.6% | Perl 0.0%
🌐
Readthedocs
policykit.readthedocs.io › en › latest › gettingstarted.html
Installation and Getting Started — PolicyKit documentation
On this page, we will take you through the process of setting up PolicyKit, both for local development and on an Ubuntu server.
🌐
Reddit
reddit.com › r/i3wm › polkit, ubuntu and i3
r/i3wm on Reddit: Polkit, Ubuntu and i3
July 15, 2016 - You can install lxpolkit which is lxde lightweight polkit manager. This will handle polkit requests with a GUI... ... Use gksudo for GUI apps that require root privileges. For example, hit mod+d, type in ...
🌐
ArchWiki
wiki.archlinux.org › title › Polkit
polkit - ArchWiki
Polkit operates on top of the existing permissions systems in Linux – group membership, administrator status – it does not replace them. The .rules files designate a subset of users, refer to one (or more) of the actions specified in the actions files, and determine with what restrictions these actions can be taken by those users.
🌐
LinuxConfig
linuxconfig.org › home › introduction to polkit: navigating authorization frameworks in linux
Introduction to Polkit: Navigating Authorization Frameworks in Linux
March 7, 2024 - Explore Polkit authorization on Linux with our detailed guide on Polkit and D-Bus, and learn how to use pkaction, pkcheck, and pkexec utilities.
🌐
Michaelheap
michaelheap.com › start-policykit-on-ubuntu
Start PolicyKit on Ubuntu | michaelheap.com
October 10, 2013 - #linux #ubuntu AIL: 0 · 10 Oct 2013 in TIL · As I run vanilla xmonad, I don't get nice things started for me when I boot up. Though I normally install packages with dpkg -i package.deb, sometimes I want to use the software centre and I need to start PolicyKit by hand. The error I get starts with org.freedesktop.PolicyKit.Error.Failed, and the command to start policykit is as follows: bash · /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 ·
🌐
Gentoo Wiki
wiki.gentoo.org › wiki › Polkit
polkit - Gentoo wiki
Daemons come with polkit action files, which offer some function and define who is authorized. This can be any user, either the active or inactive user. Also they can specify that the user needs to authenticate by entering a password as himself or as admin.
🌐
Ubuntu
ubuntu.com › security › cve-2021-4034
CVE-2021-4034 | Ubuntu
January 25, 2022 - The pkexec application is a setuid tool designed to allow unprivileged users to run commands as privileged users according predefined policies. The current version of pkexec doesn't handle the calling parameters ...
🌐
Ubuntu
manpages.ubuntu.com › noble › man(8)
Ubuntu Manpage: polkit - Authorization Manager
The system architecture of polkit is comprised of the Authority (implemented as a service on the system message bus) and an Authentication Agent per user session (provided and started by the user's graphical environment). Actions are defined by applications.
🌐
Ubuntu
ubuntu.com › security › notices › USN-8173-1
USN-8173-1: polkit vulnerabilities | Ubuntu security notices | Ubuntu
April 14, 2026 - Pavel Kohout discovered that the polkit polkit-agent-helper-1 utility incorrectly handled long input. A local attacker could possibly use this issue to cause polkit to crash, resulting in a denial of service.
🌐
Ubuntu
ubuntu.com › security › notices › USN-5252-1
USN-5252-1: PolicyKit vulnerability | Ubuntu security notices | Ubuntu
January 25, 2022 - Ubuntu is an open source software operating system that runs from the desktop, to the cloud, to all your internet connected things.