问题如图
本质上是Ubuntu23.04默认支持Wayland,但他提供了Xorg。
Geant4-v11.2目前未适配Wayland,所以要先使用X11环境(虽然Wayland是趋势)
先要确认工作环境是否是Wayland
详情查看Checking Whether the Display Server Is Xorg or Wayland | Baeldung on Linux
确认之后给出两种解决方案,
1.注销账户,在登陆界面选择Ubuntu on xorg
修改成功后
显示成功
2.Geant4 OGL visualiztion in Ubuntu 23.04 - #2 by drvijayraj - Recording, Visualizing and Persisting Data - Geant4 Forum修改值为 XDG_SESSION_TYPE = x11