From: Petter Reinholdtsen
Here is a short recipe for enabling this on your machine, by installing apt-transport-tor and replacing http and https -urls with tor+http and https, and using the hidden service instead of -the official Debian mirror site. I recommend installing +urls with tor+http and tor+https, and using the hidden service instead +of the official Debian mirror site. I recommend installing etckeeper before you start to have a history of the changes done in /etc/.