Error installing Tor gpg key in Debian 12 `-bash: gpg: command not found`

I’m trying to set up the Tor repo on Debian 12 following the guide but I’m getting an error message when attempting to add the gpg key used to sign the packages. How can I make this work?

root@debian-12:/etc/apt/sources.list.d# wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/deb.torproject.org-keyring.gpg >/dev/null
-bash: gpg: command not found
apt-get install gpg
2 Likes

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