Sorry for my late reply and thank you for reminding me to check whether X11 can run or not @jsulm . I found that I couldn't start Ubuntu's virtual desktop properly. I first ran Xlaunch under Windows and then executed sudo startxfce4 in WSL with the following output:
/usr/bin/startxfce4: X server already running on display localhost:0 xrdb: Connection refused xrdb: Can't open display ':0' Unable to init server: Could not connect: Connection refused xfce4-session: Cannot open display: . Type 'xfce4-session --help' for usage.I execute the xclock command and the output is as follows:
Error: Can't open display: :0
I wonder if there is a problem with my Ubuntu installation, how can I fix it?