can't run synaptic : gtk warning cannot open display 0:

Asked by mike1047 on 2018-04-14

when i try to open synaptic i got this message:

Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused

(synaptic:31943): Gtk-WARNING **: cannot open display: :0

what to do ?

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2018-04-16
Last reply:
2018-04-14

What is the output of:

lsb_release -a; uname -a; apt-cache policy synaptic

Thanks

Manfred Hampl (m-hampl) said : #2

What you see probably is caused by wayland that is not allowing to run applications as root with sudo.
see also Bug #1712089

mike1047 (mlambert004) said : #3

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful
Linux michel-p6740f 4.13.0-38-generic #43-Ubuntu SMP Wed Mar 14 15:20:44
UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
synaptic:
  Installed: 0.84.2
  Candidate: 0.84.2
  Version table:
 *** 0.84.2 500
        500 http://ca.archive.ubuntu.com/ubuntu artful/universe amd64
Packages
        100 /var/lib/dpkg/status

2018-04-15 10:47 GMT-04:00 Manfred Hampl <
<email address hidden>>:

> Your question #667933 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/667933
>
> Manfred Hampl posted a new comment:
> What you see probably is caused by wayland that is not allowing to run
> applications as root with sudo.
> see also Bug #1712089
>
> --
> You received this question notification because you asked the question.
>

--
Michel Lambert

Can you help with this problem?

Provide an answer of your own, or ask mike1047 for more information if necessary.

To post a message you must log in.