Install the Unity Hub on Linux
Install Unity Hub on Ubuntu, RHEL, or CentOS, and manage updates via package repositories.
Read time 3 minutesLast updated 7 hours ago
To install the Unity Hub on an Ubuntu Linux distribution, add the Unity Hub repository and the public signing key to verify the integrity of the packages.
-
To add the public signing key, run the following command:
sudo install -d /etc/apt/keyringscurl -fsSL https://hub.unity3d.com/linux/keys/public | sudo gpg --dearmor -o /etc/apt/keyrings/unityhub.gpg
-
To add the Unity Hub repository (x86_64/amd64 only) you need an entry in . Run the following command to add the Unity Hub repository:
/etc/apt/sources.list.decho "deb [arch=amd64 signed-by=/etc/apt/keyrings/unityhub.gpg] https://hub.unity3d.com/linux/repos/deb stable main" | sudo tee /etc/apt/sources.list.d/unityhub.list -
Update the package cache and install the package:
sudo apt updatesudo apt install unityhub
- The directory exists.
/etc/apt/keyrings - The user or group installing the Hub has write permissions to the directory.
/etc/apt/keyrings - The user or group installing Hub has at least read permissions to the resulting file .
/etc/apt/keyrings/unityhub.gpg
sudo apt remove unityhub
Install a beta version of the Unity Hub on Linux
Unity distributes the Unity Hub beta versions 3.0 and higher for Linux through the same repository but under a different distribution.-
Add the public signing key:
sudo install -d /etc/apt/keyringscurl -fsSL https://hub.unity3d.com/linux/keys/public | sudo gpg --dearmor -o /etc/apt/keyrings/unityhub.gpg
-
Add a beta repository entry to your folder:
/etc/apt/sources.list.d/:echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/unityhub.gpg] https://hub.unity3d.com/linux/repos/deb unstable main" | sudo tee /etc/apt/sources.list.d/unityhub-beta.list -
Update the package cache and install the package:
sudo apt updatesudo apt install unityhub=<version>
<version>3.4.1-beta.1Install the Hub on Red Hat Enterprise Linux (RHEL) or CentOS
To install the Unity Hub on Red Hat Enterprise Linux (RHEL) or CentOS, use the following commands.
To install the latest version of the Unity Hub:
To install beta versions of the unity Hub:sudo sh -c 'echo -e "[unityhub]\nname=Unity Hub\nbaseurl=https://hub.unity3d.com/linux/repos/rpm/stable\nenabled=1\ngpgcheck=1\ngpgkey=https://hub.unity3d.com/linux/repos/rpm/stable/repodata/repomd.xml.key\nrepo_gpgcheck=1" > /etc/yum.repos.d/unityhub.repo'
Then update the package cache and install the package:sudo sh -c 'echo -e "[unityhub-beta]\nname=Unity Hub Beta\nbaseurl=https://hub.unity3d.com/linux/repos/rpm/unstable\nenabled=1\ngpgcheck=1\ngpgkey=https://hub.unity3d.com/linux/repos/rpm/unstable/repodata/repomd.xml.key\nrepo_gpgcheck=1" > /etc/yum.repos.d/unityhub_beta.repo'
sudo apt updatesudo apt install unityhub
Auto Update of Unity Hub on Linux
Once you've configured the Unity Hub repositories in your package managers, the Hub automatically checks for a new version periodically based on the configurations defined in the operating system settings. You might receive the following popups from your Software Manager when a new version is available.Debian / Ubuntu

Update Notification on Ubuntu
sudo apt update
RHEL / CentOS

Update Notification on Centos
sudo yum check-updatesudo yum update unityhub
Linux installation troubleshooting
Only the beta version displays if you have both and repositories configured. By default, the command lists the latest version of the package. To install the stable version of the Unity Hub, you can do the following:Install the stable version of the Unity Hub in Debian:
STABLEUNSTABLEapt-
Disable the beta repository.
sudo mv /etc/apt/sources.list.d/unityhub-beta.list /etc/apt/sources.list.d/unityhub-beta.list.baksudo apt updatesudo apt-get install unityhub
-
Query the specific version of the Hub.
sudo apt-get install unityhub=3.x.x
-
Disable the beta repository.
sudo mv /etc/yum.repos.d/unityhub_beta.repo /etc/yum.repos.d/unityhub_beta.repo.baksudo yum check-updatessudo yum install unityhub
-
Query the specific version of the Hub.
sudo yum list unityhubsudo yum install unityhub-<version info>
This can happen when doesn't exist or you don't have access to create the file. To fix this error, manually create the folder and an empty file with the following commands:
sources.list.dunityhub.listsudo mkdir /etc/apt/sources.list.dsudo touch /etc/apt/sources.list.d/unityhub.list
If you receive a lock file error, an associated process number should also display. In this example, the process number is . with the process number that your device displays.
4076If this error displays, use the following command to stop the process. In the command, replaceE: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 4076
4076If you remove the Unity Hub after you perform this command and this error shows up, follow the instructions in the command line to fix it.sudo kill -9 4076
sudo apt-get remove unityhubE: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. ubuntity@ubuntu:~$ sudo dpkg --configure -a