11

I just installed Ubuntu 17.10. Everything seems to be working quite okay, except that I'm unable to use Synaptic. I installed it with (apparently) no problems, but when I click its icon, nothing happens.

Trying from the terminal this is the error I get:

No protocol specified
Unable to init server: Could not connect: Connection refused
(synaptic:3572): Gtk-WARNING **: cannot open display:

Any idea what this means?

Thanks in advance for the support.

muru
  • 197,895
  • 55
  • 485
  • 740
Rarda
  • 377

2 Answers2

20

You can use Synaptic (or any other application that needs to run as root) under Wayland by first entering this command in the terminal:

xhost +si:localuser:root
Foxtrot
  • 201
8

You probably logged in using the default Wayland session. Wayland does not allow gui applications to run in superuser mode like Synaptic. If you really want to use this tool you have to login using the Xorg session.

  • I am already logged in using the Xorg session – Rarda Oct 11 '17 at 07:39
  • 1
    It is not about superuser access to desktop and other BS. You can't run graphical program from any other user not just root. Wayland developers simply didn't thought about multi user desktop environment and found an excuse that they care about security and root access. – ZAB Jan 07 '18 at 14:26