Issue installing Tor relay

Can someone please fix this issues

root@myserver~# apt update
Hit:1 http://deb.debian.org/debian bookworm-backports InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://security.debian.org bookworm-security InRelease
Get:5 https://deb.torproject.org/torproject.org bookworm InRelease [2816 B]
Err:5 https://deb.torproject.org/torproject.org bookworm InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 74A941BA219EC810
Reading package lists... Done
W: GPG error: https://deb.torproject.org/torproject.org bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 74A941BA219EC810
E: The repository 'https://deb.torproject.org/torproject.org bookworm InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

This time i managed to fix this issues by using deb [trusted=yes] in /etc/apt/sources.list.d/ named tor.list
Last time i did another workaround but i don’t remember now

1 Like

Have you followed the steps of adding Tor package repository?

1 Like

I started with that :slight_smile:

  1. Why and how I can enable Tor Package Repository in Debian? | Tor Project | Support
  2. Tor Project | Debian/Ubuntu
  3. error that i received in the 1st post in the latest 4 relay installs

Are you using Ubuntu or Debian? And which version?
If Debian, I just created this very simple shell script to add the repository:

After reviewing the script code, you can run: bash tor_debian_installer.sh or ./tor_debian_installer.sh.

2 Likes

Debian 12

/etc/apt/sources.list.d/tor.list in order to bypass the repo issue

deb     [trusted=yes] https://deb.torproject.org/torproject.org bookworm  main
deb-src [trusted=yes] https://deb.torproject.org/torproject.org bookworm  main
1 Like

This script is very good. Just installed a new relay now using it and with this ocasion i found the other workaround i used in the past to overcome the initial post error

" gpg --dearmor | sudo tee /usr/share/keyrings/tor-archive-keyring.gpg > /dev/null

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