Unable to install keyring.gpg on Debian 12

Hi all,

I’m trying to install Tor on Debain 12 bookworm. I following this guide.

When I try to perform Step 3:

wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/deb.torproject.org-keyring.gpg >/dev/null

I get since 3 days this:

**tee: /usr/share/keyrings/deb.torproject.org-keyring.gpg: Permission denied**

Maybe a super stupid question…and ideas.

Thanks a lot

placed a sudo in fornt of the tee and works. Maybe this can be updated in the docs

Cheers

Did you try to run tee with sudo?

… | sudo tee /usr/share/keyrings/deb.torproject.org-keyring.gpg >/dev/null

1 Like

ref. Why and how I can enable Tor Package Repository in Debian? | Tor Project | Support

Note: The symbol # refers to running the code as root. This means you should have access to a user account with system administration privileges, i.e. your user should be in the sudo group.


3. Then add the gpg key used to sign the packages by running the following command at your command prompt:

  # wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/deb.torproject.org-keyring.gpg >/dev/null

Yes, this whole command needs to be run as a root user. :slight_smile:

1 Like

Thanks for your support!

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