Cannot install UnityHub on MX-Linux because of missing signature key

I’m on MX-Linux currently and I know it is not officially supported. But maybe there is an “inofficial” solution for my problem anyway.

When I follow the instructions I’m asked to type the following:

wget -qO - https://hub.unity3d.com/linux/keys/public | gpg --dearmor | sudo tee /usr/share/keyrings/Unity_Technologies_ApS.gpg > /dev/null
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'
sudo apt update

Then I receive the following error (translated since I have it localized):

Get:7 https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local stable InRelease [2.739 B]
Error:7 https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local stable InRelease
  The following signatures could not be verified, because their public key is not available: NO_PUBKEY BE3E6EA534E8243F

Then it complains that the depot is not signed and it refuses to install from an unsafe source.
I verified that both file are there (/usr/share/keyrings/Unity_Technologies_ApS.gpg, /etc/apt/sources.list.d/unityhub.list). To me it appears some key is missing. Maybe it got changed and the keyfile was not updated? Maybe I did a mistake?
I appreciate any hints or suggestions. I wanted to try the new ECS and am pretty stuck now. I downloaded the editor itself but it refuses to start because of missing licence file (why can this not be managed in the Editor itself?). And I read that using package manager is not the best choice because of such issues. Maybe AppImage, Flatpack or Snap could be reconsidered? And it would be great if some more “widespread” and up-to-date distros would be supported. Linux support seems a little left behind.
Anyway. I hope someone has an idea. Many thanks in advance.

Edit: Formatting

Was testing on a virtual machine with Ubuntu 2023.04 the other day and also got an error.
Some googling gave me this:

wget -qO - https://hub.unity3d.com/linux/keys/public | gpg --dearmor | sudo tee /usr/share/keyrings/Unity_Technologies_ApS.gpg > /dev/null
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/Unity_Technologies_ApS.gpg] https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list'
sudo apt update
sudo apt-get install unityhub
1 Like

Thanks for your response sfjohansson,

I could be mistaken but as far as I can see this is exactly what I tried (what is on the install page). Did you get it working? As the error message implies that some public key is missing in the file. If it works for you the problem must be something else. MX-Linux is based on Debian too (like Ubuntu). And it said that the key management via apt-key is deprecated because it’s “unsafe”. But I guess it should still work or the error would be more like “not supported”.

Anyway. My experience with these package manager internals is pretty limited. So I still hope someone has an idea. Thanks nevertheless.

Yes, it worked…I followed the install page at first and got the error…then I just copy-pasted that and it worked…so didn’t have to dig into it and see what the actual difference was.

The actual search on that occasion was done inside the virtual machine so don’t have the browser history here…but this looks like it:

https://askubuntu.com/questions/1395684/unity3d-installation-issues-gpg-error-repository-not-signed

Looking at it again it seems to point out a small but important difference in the code, “signedby” should actually be “signed-by”.

1 Like

Thank you so much sfjohansson, it works now. The issue was the wrong instruction on the Unity docs. Adding the minus sign works as expected. Unity should definitely update this. In the meantime maybe this thread helps other users with the same problem.
Unfortunately I can only like your post once. Receive some virtual good feelings from me ;).
Thanks again.

Edit: Marked the thread as resolved. And writing a Feedback-post in the Documentation forum now. Maybe this gets the “officials” to change it.

1 Like