Tor not up to date on Ubuntu

Hi!

I am trying to set up my first ever relay, and I am having trouble getting the latest version of Tor for it.

I have set up Tor on a fresh install of Ubuntu Focal Fossa (latest LTS) on a Raspberry Pi 3, and I have followed these guides to set it up:
https://community.torproject.org/relay/setup/guard/debian-ubuntu/
https://support.torproject.org/apt/tor-deb-repo/

cat /etc/apt/sources.list.d/tor.list:

deb     [arch=amd64 signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org focal main
deb-src [arch=amd64 signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org focal main

sudo apt update:

Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]                                                                                                                  
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [108 kB]                                                                                                                
Hit:4 [REDACTED]                                                                                                                       
Get:5 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB]              
Hit:6 https://deb.torproject.org/torproject.org focal InRelease                                 
Get:7 [REDACTED]    
Ign:8 [REDACTED]
Hit:9 [REDACTED]
Get:10 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 Packages [991 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 Packages [830 kB]
Fetched 2161 kB in 4s (490 kB/s)                           
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.

As you can see, apt is pulling updates directly from deb.torproject.org, so it should be getting the latest version.

sudo apt install tor:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
tor is already the newest version (0.4.2.7-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

But apt says that 0.4.2.7-1 is the newest version, which is obviously not true. I am also warned by Tor itself upon startup, that I should update to a newer version.

I have gone through the guides I listed above several times to see if I skipped a step, but as far as I can tell, I have done everything exactly as it asks me to.

Any help would be much appreciated!

Shouldn’t that be arm64 instead of amd64 for a Pi?

I have no experience with running tor on ARM hardware, but I can confirm you get the latest version of tor as described in the guide.

Here is one of my nodes running Ubuntu 20.04 LTS:

root@mine:~# uname -a
Linux gbt 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
root@mine:~# tor --version
Tor version 0.4.6.8.
Tor is running on Linux with Libevent 2.1.11-stable, OpenSSL 1.1.1f, Zlib 1.2.11, Liblzma 5.2.4, Libzstd 1.4.4 and Glibc 2.31 as libc.
Tor compiled with GCC version 9.3.0
2 Likes

You are right, I just needed to rename that entry to arm. Thank you so much for your help!

2 Likes