VirtualBox中Ubuntu 20.04.6无法打开显示的问题求助
VirtualBox中Ubuntu 20.04.6无法打开显示的问题求助
各位大佬好,我现在碰到个棘手的问题,想请教下有没有解决思路:
我的主系统是Windows 7,在VirtualBox里装了Ubuntu 20.04.6,最近在学习ROS基础内容,运行命令 rosrun turtlesim turtlesim_node 时,弹出了一堆错误:
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.
我谷歌搜了不少解决方案挨个尝试,比如重装Qt相关依赖、检查xcb插件路径等,但都没解决问题。而且我怀疑这不是Qt本身的问题,而是虚拟机的显示配置出了状况——因为我试着执行以下命令:
sudo apt-get install x11-apps xeyes
得到的错误几乎如出一辙:
Error: Can't open display:
有没有大佬遇到过同样的情况?或者能指点下我该从哪个方向排查吗?万分感谢!
备注:内容来源于stack exchange,提问作者IanGraham
相关产品推荐
相关产品推荐

