Sublime Forum

Unable to save files which require sudo. (/usr/bin/pkexec failed)

#1

Hi,

I have issue when trying to save file which requires root privileges.
My sublime build is: Sublime Text Build 3143
My pkexec version is 0.105

Here is my OS info:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION=“Ubuntu 16.04.3 LTS”
NAME=“Ubuntu”
VERSION=“16.04.3 LTS (Xenial Xerus)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=“Ubuntu 16.04.3 LTS”
VERSION_ID=“16.04”
HOME_URL=“http://www.ubuntu.com/
SUPPORT_URL=“http://help.ubuntu.com/
BUG_REPORT_URL=“http://bugs.launchpad.net/ubuntu/
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

Thank you for your time!
Best,
Kec

0 Likes

#2

Hi, any input would be appreciated, could someone direct me to proper way how to fix this issue?

0 Likes

#3

I would assume it is an issue with the configuration on your machine. Have you tried invoking pkexec yourself from a terminal to see if it works properly?

0 Likes

#4

Hello, sorry for taking my time to reply.
I’ve reinstalled ubuntu 16.04 and this error showed again.

After investigation I understood that there is a bug; /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 is not being started when my computer starts.

I managed to solve it by starting it when my computer starts.

Since I use i3wm, here is solution which worked for me:
Add line:
exec /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
in
/home/jk/.config/i3/config

1 Like