Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

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

Discussion in 'Linux' started by exiguous, Jun 3, 2023.

  1. exiguous

    exiguous

    Joined:
    Nov 21, 2010
    Posts:
    1,749
    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:
    Code (csharp):
    1.  
    2. wget -qO - https://hub.unity3d.com/linux/keys/public | gpg --dearmor | sudo tee /usr/share/keyrings/Unity_Technologies_ApS.gpg > /dev/null
    3. 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'
    4. sudo apt update
    5.  
    Then I receive the following error (translated since I have it localized):
    Code (csharp):
    1.  
    2. Get:7 https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local stable InRelease [2.739 B]
    3. Error:7 https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local stable InRelease
    4.   The following signatures could not be verified, because their public key is not available: NO_PUBKEY BE3E6EA534E8243F
    5.  
    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
     
  2. sfjohansson

    sfjohansson

    Joined:
    Mar 12, 2013
    Posts:
    370
    Was testing on a virtual machine with Ubuntu 2023.04 the other day and also got an error.
    Some googling gave me this:

    Code (bash):
    1. wget -qO - https://hub.unity3d.com/linux/keys/public | gpg --dearmor | sudo tee /usr/share/keyrings/Unity_Technologies_ApS.gpg > /dev/null
    2. 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'
    3. sudo apt update
    4. sudo apt-get install unityhub
     
    exiguous likes this.
  3. exiguous

    exiguous

    Joined:
    Nov 21, 2010
    Posts:
    1,749
    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.
     
  4. sfjohansson

    sfjohansson

    Joined:
    Mar 12, 2013
    Posts:
    370
    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".
     
    Last edited: Jun 4, 2023
    exiguous likes this.
  5. exiguous

    exiguous

    Joined:
    Nov 21, 2010
    Posts:
    1,749
    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.
     
    Last edited: Jun 4, 2023
    sfjohansson likes this.