Search Unity

Resolved Keyring error

Discussion in 'Unity Hub' started by sagar_nayal, Jun 2, 2022.

  1. sagar_nayal

    sagar_nayal

    Joined:
    Feb 18, 2020
    Posts:
    1
    Hi there,
    i recently installed unity hub in Linux lite 6, and receiving this error when i am running sudo apt-get update i tried to solve it by some online search help but not working for me.

    Error: W: https://hub.unity3d.com/linux/repos/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

    Thanks for any future help, i will be grateful.
     
  2. fpirra

    fpirra

    Joined:
    Jul 19, 2022
    Posts:
    1
    Hey, I´ve just gone through the same error... and got the solution.

    Since the apt-key is deprecated, you need to use gpg instead:

    Code (CSharp):
    1.  
    2. wget -o- https://hub.unity3d.com/linux/keys/public
    3.  
    4. file public
    5.  
    6. gpg --no-default-keyring --keyring ./unity_keyring.gpg --import public
    7.  
    8. gpg --no-default-keyring --keyring ./unity_keyring.gpg --export > ./unity-archive-keyring.gpg
    9.  
    10. sudo mv ./unity-archive-keyring.gpg /etc/apt/trusted.gpg.d/
    11.  
    12. sudo apt update
    13.  
    14. sudo apt-get install unityhub
    15.  
    Basically, download the key, check the file, prepare to import the key, move the key, update the repositories, install the hub.

    Best,
    Fran
     
  3. arnoxar24

    arnoxar24

    Joined:
    Dec 19, 2022
    Posts:
    2
  4. rxmarccall

    rxmarccall

    Joined:
    Oct 13, 2011
    Posts:
    353
    Thank you, this worked for me on Linux Mint 21.1
     
  5. phong940253

    phong940253

    Joined:
    Feb 17, 2022
    Posts:
    1
    Thank you, this worked for me on Ubuntu 22
     
    ajvanegasv likes this.
  6. august20001012

    august20001012

    Joined:
    May 10, 2023
    Posts:
    1
  7. rodriguezdamien1677

    rodriguezdamien1677

    Joined:
    Jun 5, 2023
    Posts:
    1
    still working thx !!!