Install tor on debian 9 stretch

Add to source:
/etc/apt/sources.list.d/tor.list:

deb http://deb.torproject.org/torproject.org stretch main
deb-src http://deb.torproject.org/torproject.org stretch main

Now install keys and tor:

gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
apt-get install tor deb.torproject.org-keyring

Add backports repo.
Create /etc/apt/sources.list.d/backports:
deb http://httpredir.debian.org/debian 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
wget https://www.torproject.org/dist/tor-0.3.0.8.tar.gz
tar xvf tor-0.3.0.8.tar.gz
cd tor-0.3.0.8


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