As I’ve been struggling to make Unity Hub work in my recently installed Ubuntu 22.04, and saw that it was a common issue, I decided to share how I fixed it. Hope it works for all of you
First we add the repository
sudo sh -c 'echo "deb https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list'
Now we get the key. As apt-key is deprecated, we will use a different command from the unity tutorial.
wget -qO - https://hub.unity3d.com/linux/keys/public | sudo tee /etc/apt/trusted.gpg.d/myrepo.asc
Its time to update the package cache
sudo apt update
We need to install a dependency, libssl1.1 that we have to download and install manually
Even after following your instructions I’m still not having any luck launching unityhub.
I did the 3.1.0 version too.
I run “unityhub” from a terminal and see this:
$ unityhub
♥
Checking for update
Error: Error: ENOENT: no such file or directory, open '/opt/unityhub/resources/app-update.yml'
(electron) Security Warning: A WebContents was just created with both webviewTag and contextIsolation enabled. This combination is fundamentally less secure and effectively bypasses the protections of contextIsolation. We strongly recommend you move away from webviews to OOPIF or BrowserView in order for your app to be more secure
a window opens with a blue “sign in” button. When I click that, another window opens and a browser tab opens. But the other window disappears with no warning or error. The browser tab is blank.
I thought maybe something about my account (the URL mentions a challenge) but no email and I can log into unity3d.com normally in a browser no problem.
Though ultimately I seem to have just gone with a Windows VM, instead of the Linux VM I was trying to setup. I got Unity working in an Amazon ECS g4dn instance, but my shader ran 3 times slower than on my Macbook Air. I tried a Windows g4ad instance, which uses an AMD gpu instead of an nvidia gpu, and on that my shader ran twice as fast as my Mac. Since the nvidia gpu is likely the better gpu, I concluded that the linux Unity doesn’t really have the TLC that it needs to work well.
the new link to 4 step package is http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
just paste it in your browser and it will download the file
you need to install this manually , you can do that by
command :-
cd Downloads #(or wherever you downloaded the file)
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb #(package file name)