Eveyrtime when I'm trying to run any graphical software as root it won't work (i.e Synaptic, gedit) and I get this error :
No protocol specified
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
(synaptic:32380): Gtk-WARNING **: cannot open display: :0`
I also tried running sudo -H
and I get the same error, I executed export DISPLAY=:0
again, absolutely nothing.
I tried using gksudo
instead of sudo
too, no result.
I was thinking in reinstalling Mir, but how? I'm using Ubuntu 16.04
0 Answers