#!/bin/bash apt install apt-transport-https curl gnupg2 source /etc/os-release curl https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/deb.torproject.org-keyring.gpg >/dev/null cat < /etc/apt/sources.list.d/tor.list deb [signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org $VERSION_CODENAME main deb-src [signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org $VERSION_CODENAME main EOF apt update apt install deb.torproject.org-keyring echo -e "Done, now you can \e[1mapt install tor\e[0m or something"