How do I upgrade/downgrade tor for my relay?

Hello,
I am a novice relay-operator who just set up a relay but after setting it up, the logs tell me to upgrade from version 0.4.2.7
I installed tor using the default “apt install tor” command and I am not sure how to upgrade it since this package is supposed to be the latest stable version. Can anyone help me?

What’s your operating system?

If you’re running Raspbian, check out this topic: Running a bridge on a raspberry pi 4

For other operating systems, you can follow the Tor relay guide.

1 Like

I forgot to mention, I’m on Ubuntu 20.04 focal
I followed the steps from the guide that you have linked but the step where I need to configure the packages for tor never works and it always ends up showing me this even tough i follow the steps correctly:-

E: Unable to locate package deb.torproject.org-keyring
E: Couldn't find any package by glob 'deb.torproject.org-keyring'

Please follow these steps:

  1. Create or edit your sources.list.d/tor.list file to look like this:
deb     [arch=amd64] https://deb.torproject.org/torproject.org focal main
deb-src [arch=amd64] https://deb.torproject.org/torproject.org focal main
  1. Then, run this command as root (and not as sudo):
wget -O- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/tor-archive-keyring.gpg >/dev/null
  1. Finally, update and install Tor
   # apt update
   # apt install tor deb.torproject.org-keyring
1 Like