Ubuntu – Pkexec on WSL Error

pkexecwindows-subsystem-for-linuxxfce

Launching pkexec synaptic in the below environment fails.

My PC specsare:

xfce desktop
ubuntu 18.04 on WSL
VcxSrv for X server


Here is the output:

~$ pkexec synaptic
Error getting authority: Error initializing authority: Could not connect: No such file or directory

Is this error expected? Any fix available?

Best Answer

Open Synaptic in WSL using the following command:

sudo -H synaptic &>/dev/null  

Note that you need to use sudo in order to give Synaptic root permissions that are required to install software , remove software , etc.

Related Question