Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Tor repo correctly on Debian strech #32

Open
GeorgeTasop opened this issue Jul 4, 2019 · 1 comment
Open

Adding Tor repo correctly on Debian strech #32

GeorgeTasop opened this issue Jul 4, 2019 · 1 comment

Comments

@GeorgeTasop
Copy link

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?

@Sixdsn
Copy link

Sixdsn commented Sep 29, 2019

fixed here: Sixdsn#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants