[Solved] NO_PUBKEY A8580BDC82D3DC6C remains

New debian (lxqt) installation. Following Installing Brave on Linux #release-channel-installation (stable) notes there …

# apt-get update
...
Get:5 https://brave-browser-apt-release.s3.brave.com stable InRelease [7,547 B]
Err:5 https://brave-browser-apt-release.s3.brave.com stable InRelease
  The following signatures couldn\'t be verified because the public key is not
 available: NO_PUBKEY A8580BDC82D3DC6C
Reading package lists... Done
W: GPG error: https://brave-browser-apt-release.s3.brave.com stable InRelease:
The following signatures couldn\'t be verified because the public key is not available:
NO_PUBKEY A8580BDC82D3DC6C
E: The repository 'https://brave-browser-apt-release.s3.brave.com stable InRelease'
is not signed.

This brought no joy:

# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A8580BDC82D3DC6C#
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead
(see apt-key(8)).
Executing: /root/tmp/apt-key-gpghome.eIXrxEI5ZK/gpg.1.sh --keyserver
keyserver.ubuntu.com --recv-keys A8580BDC82D3DC6C
gpg: key 0BB75829C2D4E821: 2 duplicate signatures removed
gpg: key 0BB75829C2D4E821: "Brave Software <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

System:

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
# uname -a
Linux testw8760wq-GB 6.1.0-18-amd64
#1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux

What is the correct way to import the key used in the repository, and could the instructions on that web page be corrected, please?

And … could the page at Brave Signing Keys be updated to note the command to import the key?
[I expect many are like myself … these sorts of commands are needed so seldom, prior experience figuring out such fiddly bits is long lost.]
- I expect such manual installation will always be currently correct, regardless of the key(s) or keyserver changes between the expiry of the post, and the time a subsequent reader searches for this same answer.

Per (apt) Update fails no public key?
In /etc/apt/sources.list.d/brave-browser-release.list:

# Replacing:
deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg]
  https://brave-browser-apt-release.s3.brave.com/ stable main
# With:
deb [arch=amd64]
  https://brave-browser-apt-release.s3.brave.com/ stable main
# Or even just:
deb https://brave-browser-apt-release.s3.brave.com/ stable main

resolved the issue. Only the contents between ‘[’ and ‘]’ changed / was removed. [Trusting apt(-get) to only used signed repositories, regardless. (?)]

Could the page at Installing Brave on Linux #release-channel-installation be so updated, please?

It would save much time wastage and teeth-gnashing.

And, as above:

… could the page at Brave Signing Keys be updated to note the command to import the key?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.