Running synaptic as root or sudo from CLI:

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Running synaptic as root or sudo from CLI:

Hedley Finger
Ubuntu 18.04.3 LTS Bionic Beaver

I can no longer run synaptic from the CLI with either the GNOME or Wayland desktop manager. This is the error I get:

~$ sudo synaptic
No protocol specified
Unable to init server: Could not connect: Connection refused

(synaptic:17889): Gtk-WARNING **: 19:48:19.457: cannot open display: :0

I cannot run synaptic from CLI as root even with

~$ xhost +si:localuser:root

Apparently there is a permanent fix by modifying synaptic <>:

If I'm not wrong, this is a design decision of wayland.
synaptic should really look at adding polkit support to gain the root  
privileges instead of running the full ui as root

I am not a programmer and am not comfortable with the CLI, so I have no idea what polkit is.


1/17 Glyndon Road, Camberwell VIC 3124, Australia
[hidden email]
Telephone 03 9836 4635
Mobile 0412 461 558 registered computer 576484 (course there are more Linux users than that!)

Synaptic-devel mailing list
[hidden email]