'RStudio is showing blank display on Ubuntu 20.04.3 LTS on Windows 10 x86_64

I am trying to open RStudio on Ubuntu 20.04.3 LTS on Windows 10 x86_64. I installed WSL2 on windows 10 ( Version 20H2, OS build 19042.1415). R base is installed and working smooth in WSL2 but RStudio is opening with a blank display.

This is my terminal when rstudio is opened: This is my terminal when rstudio is opened



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source