synaptic No protocol specified!! error

I have a problem , i can't open synaptic >:(

root@dopeboy:~# synaptic
No protocol specified
** (synaptic:6940): WARNING **: Could not open X display
No protocol specified
(synaptic:6940): Gtk-WARNING **: cannot open display: :1

I have try to Re-install it but is not working, any idea how to fix?! VPS Ubuntu 14.04 LTS.


Solution 1:

Even root does not have the privileges to open a GUI application in your personal X session. Log out of the root account and start synaptic with your own privileges, perhaps using gksudo.

root@dopeboy# exit
you@dopeboy$ gksudo synaptic &