Avogadro error Cannont conect to X server

I’m running Ubuntu in windows. I’ve installed gromacs and avogadro.
When i try to run the command avogadro I get the next error message
avogadro: cannot connect to X server
I’ve seen this error message here and there and I’ve tried several proposed solutions, but none worked.
I’d like to know if any of you knew a solution to this problem in this regard.