-
Notifications
You must be signed in to change notification settings - Fork 68
Description
I used the script to bootstrap a Tor Relay on a Debian stretch server and the adding of the Official Tor repository in /etc/apt/sources.list failed as well as the actual installation of Tor.
When trying to add Tor repo with:
gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
It outputs this:
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr
gpg: WARNING: nothing exported
gpg: no valid OpenPGP data found.
When updating it fails with:
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://deb.debian.org/debian stretch Release
Get:5 https://deb.torproject.org/torproject.org stretch InRelease [4,965 B]
Ign:5 https://deb.torproject.org/torproject.org stretch InRelease
Get:7 https://deb.torproject.org/torproject.org stretch/main amd64 Packages [3,496 B]
Fetched 8,461 B in 1s (7,273 B/s)
Reading package lists... Done
W: GPG error: https://deb.torproject.org/torproject.org stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 74A941BA219EC810
W: The repository 'https://deb.torproject.org/torproject.org stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Finally when trying to install the Tor packages with:
apt-get install -y deb.torproject.org-keyring tor tor-arm tor-geoipdb
It fails with:
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
geoip-database libevent-2.0-5 libgeoip1 libzstd1 python-geoip python-torctl torsocks
Suggested packages:
geoip-bin mixmaster torbrowser-launcher socat apparmor-utils obfs4proxy
The following NEW packages will be installed:
deb.torproject.org-keyring geoip-database libevent-2.0-5 libgeoip1 libzstd1 python-geoip python-torctl tor tor-arm tor-geoipdb torsocks
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,100 kB of archives.
After this operation, 22.7 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
deb.torproject.org-keyring tor tor-geoipdb
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
Failed to stop tor.service: Unit tor.service not loaded.
I followed the official Tor guide to install the latest version of Tor on Debian Stretch and I thought it can be easily added to this script.
The guide: https://2019.www.torproject.org/docs/debian.html.en#ubuntu
Should I add the changes to a fork and then pull a request?