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.
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