Maybe you need to run first the 'xhost' script:
https://bugs.launchpad.net/ubuntu/+source/synaptic/+bug/1712089/comments/8
Maybe you need to run first the 'xhost' script:
https:/ /bugs.launchpad .net/ubuntu/ +source/ synaptic/ +bug/1712089/ comments/ 8