qt.qpa.xcb: could not connect to display
I am trying to run turtlesim_node
as shown below:
unix20p04p4@DESKTOP-RKF1B6O:~$ ros2 run turtlesim turtlesim_node
Unfortunately, I am getting the following result:
qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Please help.
What OS are you using? Are you using a virtual machine?
Did you ever fix this? I am struggling with the same problem...