Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

gedit Unable to init server: Could not connect: Connection refused in ubuntu WSL

$
0
0

I have installed WSL with ubuntu 18.04 . I want to use gedit which I have already installed . The problem is that whenever I run a command with gedit I get

Unable to init server: Could not connect: Connection refused(gedit:14177): Gtk-WARNING **: 20:09:43.143: cannot open display: 0:0

My issue is the same as https://stackoverflow.com/questions/60284542/wsl-gedit-unable-to-init-server-could-not-connect-connection-refused where I have followed the instructions but got the same result . In order I tried :

sudo apt-get upgradesudo apt-get updateexport DISPLAY=0:0gedit test.tcl //error hits

I have already downloaded and opened Xming and then tried the above commands and got same error

I also tried reverting back to WSL 1 from WSL 2 and it doesn't seem to me that the version has changed

enter image description here

I would apreciate your help


Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>