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 (2)

Collapse
 
lucas256cmd profile image
Lucas256-cmd

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

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.

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.