DEV Community

Breno Viana
Breno Viana

Posted on • Updated on

Installing Unity Hub on Ubuntu 22.04

Introduction

There are two problems in the Unity Hub installation tutorial (Installing the Unity Hub on Linux):

  1. Ubuntu 22.04 uses OpenSSL 3 while Unity Editors use OpenSSL 1.0 (Workaround for libssl issue on Ubuntu 22.04);
  2. The second instruction uses the apt-key command, which is deprecated on Ubuntu 22.04 (apt-key Is Deprecated. How To Add OpenPGP Repository Signing Keys Without It).

Thus, I decided to provide this brief tutorial with the appropriate commands.

Tutorial

Downloading OpenSSL 1.0:

Installing OpenSSL 1.0:

sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.10_amd64.deb
Enter fullscreen mode Exit fullscreen mode

Adding the Unity3D repository:

sudo sh -c 'echo "deb https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list'
Enter fullscreen mode Exit fullscreen mode

Adding the public signing key:

wget -qO - https://hub.unity3d.com/linux/keys/public | sudo tee /etc/apt/trusted.gpg.d/unityhub.asc
Enter fullscreen mode Exit fullscreen mode

Installing the Unity Hub:

sudo apt update
sudo apt install unityhub
Enter fullscreen mode Exit fullscreen mode

Uninstalling the Unity Hub:

sudo apt remove unityhub
Enter fullscreen mode Exit fullscreen mode

Top comments (10)

Collapse
 
henriquecosta21 profile image
Henrique Costa

Super bro!
I would like to leave some comments here...if you're trying this tutorial after 27/04/2023 and maybe using something based on Ubuntu 22.04.2 LTS, you can find the right .deb here .

So, you need to run:
sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.22_amd64.deb

Doing it, you can follow the next steps using this nice tutorial.

This worked for me, so I hope to help someone too. :)

Collapse
 
ibrahim2588 profile image
Ibrahim2588

THANKS man. Two months that I struggle and you come to save my life. You are great man, I love you.

Collapse
 
brenomfviana profile image
Breno Viana • Edited

I'm glad I could help you :D

Collapse
 
thanin_akecherdchoosars_7 profile image
Thanin Akecherdchoosars

great solution thx very much.

Collapse
 
brenomfviana profile image
Breno Viana

I'm happy I could help you :D

Collapse
 
lucas256cmd profile image
Lucas256-cmd

after a few hours finally found something that actually worked, THANKS

Collapse
 
brenomfviana profile image
Breno Viana

I'm glad I could help you :D

Collapse
 
shitengineering profile image
Matheus Luis

Sup, my friend !

Do any these version work ?

  • libssl1.0.0_1.0.2n-1ubuntu5.11_amd64.deb
  • libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
Collapse
 
shitengineering profile image
Matheus Luis

unsuccess :/

Image description

Collapse
 
brenomfviana profile image
Breno Viana • Edited

First option should have worked. 🤔

Did you try this solution: stackoverflow.com/a/74073555?