Unity Hub and (X)ubuntu 24.04 not starting Workaround

I tried sudo /usr/bin/unityhub and got this:
[0525/211423.912756:FATAL:electron_main_delegate.cc(293)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
So I tried sudo /usr/bin/unityhub --no-sandbox
and got this:
[252758:0525/211924.283016:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are “tcp” and on UNIX “unix”)
[252758:0525/211924.283302:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are “tcp” and on UNIX “unix”)
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
[252964:0525/211924.297081:ERROR:angle_platform_impl.cc(43)] Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[252964:0525/211924.297201:ERROR:gl_display.cc(508)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[252964:0525/211924.297250:ERROR:gl_display.cc(920)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
Authorization required, but no authorization protocol specified
[252964:0525/211924.297433:ERROR:angle_platform_impl.cc(43)] Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[252964:0525/211924.297493:ERROR:gl_display.cc(508)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[252964:0525/211924.297537:ERROR:gl_display.cc(920)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[252964:0525/211924.297582:ERROR:gl_ozone_egl.cc(23)] GLDisplayEGL::Initialize failed.
[252964:0525/211924.305297:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization

Neither for me on Ubuntu 24.04 LTS. Please can you address Unity?

This worked for me! Thank you

worked for me also!.. but as i have checked here we are running the unity unconfined which means if unity or unity related components compromised system can be compromised by doing this unconfined profile for unity. if my understanding is wrong.pls correct me. else we need to search for a more secure way to let unity create sandbox

YOU ARE A GOD

1 Like

How to solve Unity Version Control in Ubuntu 24.04?

Awesome solution, works perfectly. Thanks!

1 Like

copy /opt/google/chrome/chrome-sandbox to unityhub directory
and “chmod +s chrome-sandbox”
It works fine without security problems.

2 Likes

At: Debian -- Package Download Selection -- chromium-sandbox_128.0.6613.84-1_amd64.deb Download A new Chrome-sandbox, insert into Directory, e.g. sudo mv ~/Downloads/chrome-sandbox /opt/unityhub/
Rename it to chrome-sandbox. You need to make sure that /opt/unityhub/chrome-sandbox is owned by root and has mode 4755.

For me, This fixed it I’m using the newest ubuntu

Still works on Ubuntu 24.04… Great solution!!