# Cannot install Tor from Tor Package Repository in Debian

**URL:** https://forum.torproject.org/t/cannot-install-tor-from-tor-package-repository-in-debian/9863
**Category:** Core Tor
**Created:** [October 22, 2023, 8:56am UTC](https://forum.torproject.org/t/cannot-install-tor-from-tor-package-repository-in-debian/9863 "2023-10-22T08:56:01Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![persian85](https://forum.torproject.org/user_avatar/forum.torproject.org/persian85/32/1957_2.png) [@persian85](https://forum.torproject.org/u/persian85)
#### Post date: [October 22, 2023, 8:56am UTC](https://forum.torproject.org/t/cannot-install-tor-from-tor-package-repository-in-debian/9863/1 "2023-10-22T08:56:01Z")

</div>

So I want to install latest Tor (standalone not browser) into my Ubuntu jammy but following the instruction by this link [https://support.torproject.org/apt/tor-deb-repo/](https://support.torproject.org/apt/tor-deb-repo/) when I run this command

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

```

I get error “gpg: no valid OpenPGP data found” !

What can I do about this error? Is there another way to add this gpg key?

---

<div class="post-metadata">

### Author: ![gus](https://forum.torproject.org/user_avatar/forum.torproject.org/gus/32/16_2.png) [@gus](https://forum.torproject.org/u/gus)
#### Post date: [October 22, 2023, 1:51pm UTC](https://forum.torproject.org/t/cannot-install-tor-from-tor-package-repository-in-debian/9863/2 "2023-10-22T13:51:11Z")

</div>

Are you running that command as root?

---

<div class="post-metadata">

### Author: ![Handbrake7185](https://forum.torproject.org/letter_avatar_proxy/v4/letter/h/ac91a4/32.png) [@Handbrake7185](https://forum.torproject.org/u/Handbrake7185)
#### Post date: [October 23, 2023, 12:34am UTC](https://forum.torproject.org/t/cannot-install-tor-from-tor-package-repository-in-debian/9863/3 "2023-10-23T00:34:41Z")

</div>

That # is hinting OP is indeed running that chain as root. Although it might just be a copy-paste from the support site.

I’d simply go with Fedora and set up dnf-automatic, as the Tor package is kept up to date there.

---

<div class="post-metadata">

### Author: ![persian85](https://forum.torproject.org/user_avatar/forum.torproject.org/persian85/32/1957_2.png) [@persian85](https://forum.torproject.org/u/persian85)
#### Post date: [October 23, 2023, 6:59am UTC](https://forum.torproject.org/t/cannot-install-tor-from-tor-package-repository-in-debian/9863/4 "2023-10-23T06:59:32Z")

</div>

Yes I get this error with root mode

---

<div class="post-metadata">

### Author: ![persian85](https://forum.torproject.org/user_avatar/forum.torproject.org/persian85/32/1957_2.png) [@persian85](https://forum.torproject.org/u/persian85)
#### Post date: [October 23, 2023, 7:03am UTC](https://forum.torproject.org/t/cannot-install-tor-from-tor-package-repository-in-debian/9863/5 "2023-10-23T07:03:01Z")

</div>

Well I cannot easily move to Fedora so I prefer to find a way to resolve this problem. For now I just add trusted=yes into my repository to skip checking of gpg.

---

<div class="post-metadata">

### Author: ![gus](https://forum.torproject.org/user_avatar/forum.torproject.org/gus/32/16_2.png) [@gus](https://forum.torproject.org/u/gus)
#### Post date: [October 23, 2023, 11:23am UTC](https://forum.torproject.org/t/cannot-install-tor-from-tor-package-repository-in-debian/9863/6 "2023-10-23T11:23:59Z")

</div>

Can you visit [this URL](http://deb.torproject.org/torproject.org) with your regular browser without Tor/VPN/proxy? Or [torproject.org](http://torproject.org) is blocked in your Internet provider?

---

<div class="post-metadata">

### Author: ![persian85](https://forum.torproject.org/user_avatar/forum.torproject.org/persian85/32/1957_2.png) [@persian85](https://forum.torproject.org/u/persian85)
#### Post date: [October 23, 2023, 11:32am UTC](https://forum.torproject.org/t/cannot-install-tor-from-tor-package-repository-in-debian/9863/7 "2023-10-23T11:32:19Z")

</div>

Any URL related to torproject is blocked in my country but I use proxychains in my terminal to pass the censorship. This is not the matter. I saw this kind of error from other guys that their internet provider dosent block tor urls.

---

<div class="post-metadata">

### Author: ![gus](https://forum.torproject.org/user_avatar/forum.torproject.org/gus/32/16_2.png) [@gus](https://forum.torproject.org/u/gus)
#### Post date: [October 23, 2023, 11:36am UTC](https://forum.torproject.org/t/cannot-install-tor-from-tor-package-repository-in-debian/9863/8 "2023-10-23T11:36:09Z")

</div>

Can you run this command and see the output?

```auto
wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc

```

---

<div class="post-metadata">

### Author: ![persian85](https://forum.torproject.org/user_avatar/forum.torproject.org/persian85/32/1957_2.png) [@persian85](https://forum.torproject.org/u/persian85)
#### Post date: [October 23, 2023, 11:42am UTC](https://forum.torproject.org/t/cannot-install-tor-from-tor-package-repository-in-debian/9863/9 "2023-10-23T11:42:46Z")

</div>

it returns lots of symbolic characters like "ط�s��z��P]������_Ƹ�&S  
�’���B ��m݉"�q��b����4�e���P��h�2�Xy��C�{�P_�p��\<����Sp��K�c�(�NM��0�R7�$'7"o�{������:в��8�cٳ�þs�xT�+��5N’��s��-8y��r�`����Dx�nuoİ� ��\_n�q&/o��L�A��R�B�/n��o�\_ �i���氁���A���(ջ��HY�1��K��z/hc|�ʓ$�\_yQg�k~O$jB��#�,2\<�+��’�8Ҥ3p�y~�Nѹ  
"

---

<div class="post-metadata">

### Author: ![scccccccccc](https://forum.torproject.org/user_avatar/forum.torproject.org/scccccccccc/32/5608_2.png) [@scccccccccc](https://forum.torproject.org/u/scccccccccc)
#### Post date: [September 13, 2024, 8:43am UTC](https://forum.torproject.org/t/cannot-install-tor-from-tor-package-repository-in-debian/9863/10 "2024-09-13T08:43:26Z")

</div>

I met absolutly the same issue of urs QAQ  
Im behind proxychains and failed to load tor’s public gpg with “wget -qO- [https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc](https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc)” in the cape2.sh script, when im configuring CAPEv2 sandbox
