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
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.