How do I upgrade/downgrade tor for my relay?

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
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
E: Couldn't find any package by glob ''

Please follow these steps:

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