gpg error for dropbox

I got this frustrating errors

W: http://linux.dropbox.com/ubuntu/dists/disco/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

After over an hour of googling and back and forth with gpt4, this one as below resolved it temporarily.

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.

I am guessing that dropbox key for Ubuntu 22.04 Jammy is invalid somehow. Keep getting

W: GPG error: http://linux.dropbox.com/ubuntu jammy Release: The following signatures were invalid: BADSIG FC918B335044912E Dropbox Automatic Signing Key <linux@dropbox.com>

even trying to import key multiple times with the following

sudo gpg --keyserver keyserver.ubuntu.com --recv-keys FC918B335044912E

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *