You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

dreamuser098's avatar
dreamuser098
New member | Level 2
3 years ago

Debian Linux - Key is stored in legacy trusted.gpg keyring

When I run "sudo apt update" on my system I get an error about the Dropbox key being stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg) and apt-key being deprecated.  I searched google for an hour or so and tried multiple different solutions but can't find anything that works.  It seems that the public key needed to verify the "http://linux.dropbox.com/debian/dists/sid/Release.gpg" key is not available.  Any ideas?

  • dreamuser098's avatar
    dreamuser098
    3 years ago

    Thanks!  This worked.

     

    For others that run into this problem:

    Use a .zip/.tar/.rar extractor to open the .deb file and find the "postinst" file.  Open in text editor and copy from "-----BEGIN PGP PUBLIC KEY BLOCK-----" to "-----END PGP PUBLIC KEY BLOCK-----" and save as "dropbox.asc" into the /usr/share/keyrings/ directory.  Edit "/etc/apt/sources.list.d/dropbox.list" to read "deb [arch=i386,amd64 signed-by=/usr/share/keyrings/dropbox.asc] http://linux.dropbox.com/debian sid main" or whatever version of Debian you are using.  Run apt update.  It should not give you an error anymore.

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Hi dreamuser098,

    To be honest I'm not sure what is the exact problem. 'trusted.gpg' still work, despite being deprecated. Most probably this will stay so for the ongoing stable release. Of course, Dropbox is waiting for the application work stop completely and after that to do something, as always.

     


    dreamuser098 wrote:

    ... key is not available. ...


    The key should be there anyway! Did you install your application?! If not, do it. After that you should be able extract the key and install it anew, wherever you want. Don't forget to add a 'pointer' in /etc/apt/sources.list.d/dropbox.list so the proper key to be pointed and looked for. Skipping this step will make 'entire exercise' something meaningless.

    Another way get to the public key is extraction from the package itself (possible before actual install). The public key resides within 'postinst' script of the package. Open the package in an archiver of your choice and open the contained there postinst with a text editor of your choice again. You don't have to look for too much, just scroll little bit down. It's just there. Copy/Paste the text in properly named file; that's it. I'm pasting this text here for your convenience:

    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v1.4.9 (GNU/Linux)
    
    mQENBEt0ibEBCACv4hZRPqwtpU6z8+BB5YZU1a3yjEvg2W68+a6hEwxtCa2U++4d
    zQ+7EqaUq5ybQnwtbDdpFpsOi9x31J+PCpufPUfIG694/0rlEpmzl2GWzY8NqfdB
    FGGm/SPSSwvKbeNcFMRLu5neo7W9kwvfMbGjHmvUbzBUVpCVKD0OEEf1q/Ii0Qce
    kx9CMoLvWq7ZwNHEbNnij7ecnvwNlE2MxNsOSJj+hwZGK+tM19kuYGSKw4b5mR8I
    yThlgiSLIfpSBh1n2KX+TDdk9GR+57TYvlRu6nTPu98P05IlrrCP+KF0hYZYOaMv
    Qs9Rmc09tc/eoQlN0kkaBWw9Rv/dvLVc0aUXABEBAAG0MURyb3Bib3ggQXV0b21h
    dGljIFNpZ25pbmcgS2V5IDxsaW51eEBkcm9wYm94LmNvbT6JATYEEwECACAFAkt0
    ibECGwMGCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRD8kYszUESRLi/zB/wMscEa
    15rS+0mIpsORknD7kawKwyda+LHdtZc0hD/73QGFINR2P23UTol/R4nyAFEuYNsF
    0C4IAD6y4pL49eZ72IktPrr4H27Q9eXhNZfJhD7BvQMBx75L0F5gSQwuC7GdYNlw
    SlCD0AAhQbi70VBwzeIgITBkMQcJIhLvllYo/AKD7Gv9huy4RLaIoSeofp+2Q0zU
    HNPl/7zymOqu+5Oxe1ltuJT/kd/8hU+N5WNxJTSaOK0sF1/wWFM6rWd6XQUP03Vy
    NosAevX5tBo++iD1WY2/lFVUJkvAvge2WFk3c6tAwZT/tKxspFy4M/tNbDKeyvr6
    85XKJw9ei6GcOGHD
    =5rWG
    -----END PGP PUBLIC KEY BLOCK-----

     Hope this helps.

    • dreamuser098's avatar
      dreamuser098
      New member | Level 2

      Thanks!  This worked.

       

      For others that run into this problem:

      Use a .zip/.tar/.rar extractor to open the .deb file and find the "postinst" file.  Open in text editor and copy from "-----BEGIN PGP PUBLIC KEY BLOCK-----" to "-----END PGP PUBLIC KEY BLOCK-----" and save as "dropbox.asc" into the /usr/share/keyrings/ directory.  Edit "/etc/apt/sources.list.d/dropbox.list" to read "deb [arch=i386,amd64 signed-by=/usr/share/keyrings/dropbox.asc] http://linux.dropbox.com/debian sid main" or whatever version of Debian you are using.  Run apt update.  It should not give you an error anymore.

      • oscarmotaarq's avatar
        oscarmotaarq
        New member | Level 2

        It works on Ubuntu 22.04! Despite of the fact that in my terminal puts Ubuntu instead of Debian, but it's quite the same thing.

About Apps and Installations

Have a question about a Dropbox app or installation? Reach out to the Dropbox Community and get solutions, help, and advice from members.

Need more support

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!