Unable to install Hub from Debian repository ("unable to locate package unityhub")

I am following the official instructions at Install the Unity Hub | Unity Hub | 3.0 to install Unity Hub on Ubuntu. When I execute this command (after succesfully executing the ones before it) I get an error:

$ sudo apt-get install unityhub
Reading package lists…
Building dependency tree…
Reading state information…
E: Unable to locate package unityhub

It seems the package just doesn’t exist in the repository currently? Please help.

I don’t seem to be the only one, here’s someone else reporting the same issue on Reddit a few weeks ago: Reddit - Dive into anything

And another one: Unity Hub 3.4 for Linux?

OK, managed to resolve this! Apparently the issue was on my end: I was trying to install Unity Hub in the context of Docker on an arm64 machine, and the unityhub package doesn’t exist on that platform. When building my Docker image in an x86_64-based environment it installed properly.

Hello I have same issue I know you fixed it but I don’t know how u did

please help your brother out

Same issue

I just use

$ wget -qO - https://hub.unity3d.com/linux/keys/public | sudo apt-key add -

instead of

$ wget -qO - https://hub.unity3d.com/linux/keys/public | gpg --dearmor | sudo tee /usr/share/keyrings/Unity_Technologies_ApS.gpg > /dev/null

And unityhub installed correctly on kubuntu 20.04.

2 Likes

what are you exactly adding after the command, could you please share the whole command

If you encounter a problem after specifying its command in the terminal, delete the last character ‘-’ and re-enter it, the problem is in the copied text initially it is copied with the wrong last character, then enter the command " sudo sh -c ‘echo “deb [signedby=/usr/share/keyrings/Unity_Technologies_ApS.gpg] https://hub.unity3d.com/linux/repos/deb stable main” > /etc/apt/sources.list.d/unityhub.list’ " and then “sudo apt update”, after entering all commands, if there are no problems, enter “sudo apt-get install unityhub”

2 Likes