Enable Tor Package Repository in Debian returns errors for raspberry pi4

My first post meant as feedback.
I have a raspberry pi4 running on debian 12 (bookworm). I an error message after following the instructions on page enable Tor Package Repository in Debian, although the raspberry pi met all the requirements. dpkg --print-architecture says arm64 and lsb_release -c says bookworm. As suggested in action 2 . I created the file /etc/apt/sources.list.d/tor.list with the lines:

deb     [signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org <DISTRIBUTION> main
deb-src [signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org <DISTRIBUTION> main

where DISTRUBUTION was replaced by “bookworm”

When performing a sudo apt update I got the error:

Skipping acquire of configured file ‘main/binary-armhf/Packages’ as repository ‘Index of /torproject.org bookworm InRelease’ doesn’t support architecture ‘armhf’

I do not know what is causing this error for the raspberry pi4 is an arm64 and not a 32bit armhf. I can prevent this error when adding the architecture to both lines in file tor.list, like:

deb     [arch=arm64 signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main
deb-src [arch=arm64 signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main

I would like to addresses this to the maintainer of the web page Why and how I can enable Tor Package Repository in Debian? but I do not know how.

I have one remark to be added. I think you still can install a 32bit OS on the raspberry pi4. I installed a 64 bits version. So always check the architecture using command: dpkg --print-architecture.
I installed:
Release date: November 19th 2024
System: 64-bit
Kernel version: 6.6
Debian version: 12 (bookworm)
Size: 438MB

Hi I’m on Debian Bullseye on my Raspberry Pi 4 and I was not able to fix the repositories, what worked for me is I downloaded 2 files and installed them using dpkg:

https://ftp.debian.org/debian/pool/main/t/tor/
tor_0.4.8.12-1~bpo11+1_armhf.deb
tor-geoipdb_0.4.8.12-1~bpo11+1_all.deb

Executing dpkg --print-architecture results in armhf
and executing tor --version results in

Tor version 0.4.8.12.
This build of Tor is covered by the GNU General Public License (The GNU General Public License v3.0 - GNU Project - Free Software Foundation)
Tor is running on Linux with Libevent 2.1.12-stable, OpenSSL 1.1.1w, Zlib 1.2.11, Liblzma 5.2.5, Libzstd 1.4.8 and Glibc 2.31 as libc.
Tor compiled with GCC version 10.2.1

Hope this helps…

1 Like