Install tor on debian 9 stretch

Add to source:

deb stretch main
deb-src stretch main

Now install keys and tor:

gpg --keyserver --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
apt-get install tor

Add backports repo.
Create /etc/apt/sources.list.d/backports:
deb jessie-backports main contrib non-free
Now update apt cache:
sudo apt-get update
So that failed
Installing from source:
apt-get install libevent-dev
tar xvf tor-
cd tor-

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.