APT reports a Signed-By conflict when it sees multiple definitions of the same repository and distribution with inconsistent keyring settings. Correct the duplicate definitions before downloading or replacing keys.
Find the active definitions
Search /etc/apt/sources.list and the .list and .sources files in /etc/apt/sources.list.d for download.docker.com. Compare the repository URL, suite and keyring path. An older one-line entry can conflict with a newer deb822 entry.
Keep one documented definition
Back up the files you edit. Disable the redundant Docker entry and retain one definition for your supported distribution, using the keyring path from the corresponding Docker installation guide. Preserve entries for unrelated repositories.
Confirm the correct failure is gone
Run sudo apt update. A subsequent missing-key or permission error is a separate problem. Confirm that APT can read the configured keyring and that the repository suite matches your installation guide. Keep signature verification enabled.
References
Docker's Ubuntu repository setup
