I’m having a problem where I followed the tutorial on the unity website to install unity hub for Linux (Install the Unity Hub | Unity Hub | 3.0) on my Ubuntu 22.04 based computer. The instructions seemed to work except for this error message that appears every time I reattempt the install:
chmod: cannot access ‘/opt/unityhub/chrome-sandbox’: No such file or directory
I did some research online and found that chrome-sandbox or chromium (Chromium Docs - Sandbox) is apparently some type of security software that creates a separate part of the computer within which the app can run and it seems like unity uses this feature. I tried running --no-sandbox along with the install and also when running unity hub straight through the terminal with sudo unityhub --no-sandbox but none of those options worked.
I also looked in the /opt/unityhub directory and couldn’t find any folder or file named chrome-sandbox. I also tried using the app image but had some issues with that so what I would prefer doing is fixing this install. This might be a noob question or problem but I hope its not, does anyone know what I can do about this to get it to work? I’ve been trying to solve it for like a month intermittently and I’m starting to feel very dumb.
I had this issue for a couple of days now, and it was driving me crazy. I followed the guide on the unity website, and it didn’t work. Tried plenty of “fixes”, but nothing seemed to help.
Eventually, i came up with this solution:
Install unity the normal way, and get the chrome-sandbox not found
Once done, create a directory in opt/unityhub named chrome-sandbox
Next, Run command: sudo chmod 4755 /opt/unityhub/chrome-sandbox
Lastly, Run command: sudo apt-get install unityhub 3.0.0
When you install 3.0.0 version unityhub, it should install alot of dependencies. For me it was around 3gb. Once all of that is done, run unityhub, and it should open as normal.
Make sure you do not uninstall your original unity installation after you manually create the chrome-sandbox directory, otherwise it will remove opt/unityhub, and you wont have the chrome-sandbox directory
I was in a similar situation and was trying to test Unity Editor on Ubuntu gnome and ran into this issue. The error message you are getting can be ignored and I like you was looking into that error but the underlying issue was not at all related. Please follow the answer by Gitkraken not working Ubuntu 22.04 - Ask Ubuntu Brandon Moretz, the issue is prolly that Ubuntu 22.02 is missing openssl 1.1. Though mind you I tried to bunch a stuff and this fixed it, but I haven’t tested the solution on a clean ubuntu which means there might have been other variables.
P.S. also you will need to look at Unity - Manual: Manual license activation since the licensing currently is broken on 3.1.1