How to add Tor Repo to DPup Stretch?

Using applications, configuring, problems
Post Reply
Message
Author
s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

How to add Tor Repo to DPup Stretch?

#1 Post by s243a »

I'm trying to add the Tor Repo to dpup stretch. I followed the instructions from

/usr/local/petget/README-add-repo.htm, which might be slightly out of date.

Anyway, in

Code: Select all

/root/.packages/REPOS_COMPAT_REPOS
I added an entry to the end of PKG_DOCS_DISTRO_COMPAT for the tor repo

Code: Select all

PKG_DOCS_DISTRO_COMPAT="
z|http://http.us.debian.org/debian/dists/${DISTRO_COMPAT_VERSION}/main/binary-${DBIN_ARCH}/Packages.${DDB_COMP}|Packages-debian-${DISTRO_COMPAT_VERSION}-main
z|http://http.us.debian.org/debian/dists/${DISTRO_COMPAT_VERSION}/non-free/binary-${DBIN_ARCH}/Packages.${DDB_COMP}|Packages-debian-${DISTRO_COMPAT_VERSION}-non-free
z|http://http.us.debian.org/debian/dists/${DISTRO_COMPAT_VERSION}/contrib/binary-${DBIN_ARCH}/Packages.${DDB_COMP}|Packages-debian-${DISTRO_COMPAT_VERSION}-contrib
z|http://deb-multimedia.org/dists/${DISTRO_COMPAT_VERSION}/main/binary-${DBIN_ARCH}/Packages.${DDB_COMP}|Packages-debian-${DISTRO_COMPAT_VERSION}-multimedia
z|https://deb.torproject.org/torproject.org/dists/${DISTRO_COMPAT_VERSION}/main/binary-${DBIN_ARCH}/Packages.${DDB_COMP}|Packages-Tor-debian-${DISTRO_COMPAT_VERSION}
"
and also to the end of REPOS_DISTRO_COMPAT

Code: Select all

REPOS_DISTRO_COMPAT="
z|http://http.us.debian.org/debian|Packages-debian-${DISTRO_COMPAT_VERSION}-*
z|http://deb-multimedia.org|Packages-debian-${DISTRO_COMPAT_VERSION}-multimedia
z|http://mirrors.kernel.org/debian|Packages-debian-${DISTRO_COMPAT_VERSION}-*
z|http://ftp.de.debian.org/debian|Packages-debian-${DISTRO_COMPAT_VERSION}-*
z|http://deb.torproject.org/torproject.org|Packages-Tor-debian-*
"
in the same file.

I got the error:

Code: Select all

	Failed to download db file: 
	 https://deb.torproject.org/torproject.org/dists/stretch/main/binary-i386/Packages.xz
	 https://deb.torproject.org/torproject.org/dists/stretch/main/binary-i386/
	...exited from 0setup script.
The path is correct so I think that I need to add the pgp key from the keyring. Here are the instructions for adding the keyring:
GPG: GNU Privacy Guard version 2.1 is needed for this guide. If you are using an older version, consider upgrading to gnupg2 or replace 'gpg2' below with gpg --keyserver hkp://pool.sks-keyservers.net since the keyserver option was mandatory for older versions.
...
Then add the gpg key used to sign the packages by running the following commands at your command prompt:

# gpg2 --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
# gpg2 --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
I installed gnupg gnupg2 and dirmngr dirmngr seems to be a prerequisite for gnupg2 in the Debian repos but I have no idea how to use dirmngr with pgp2. I did start dirmngr though and to do so I had to create the file:

Code: Select all

/root/.gnupg/dirmngr_ldapservers.conf
which is currently empty so this is probably wrong.

Anyway, it doesn't help when I try to accept the key for the tor repo I get the following error:

Code: Select all

# gpg2 --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89AA22CDBA8F512EE8CBC9E886DDD89 
A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
# gpg2 --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
gpg: keyserver receive failed: Address family not supported by protocol
I read that this is likely due to not having ipv6 on my system. but the instructions:
The workaround I've found is to put:

disable-ipv6

in ~/.gnupg/dirmngr.conf. It's a pity that IPv4 isn't supported by default anymore, because some people disable IPv6 on their boxes *precisely* for security reasons---following the same logic that leads one to only install the server software one needs, and open only the needed ports on a firewall, no more.
https://dev.gnupg.org/T3331#103999

don't work for me. When I do an strace on this, this configuration file doesn't even seem to be being read.

Anyway, these errors are beyond me at the moment so I think I'll compile tor for dpup stretch, like I did for TazPup, instead of adding the tor repo to my package manager. The reason that I wanted to install it from the debian repo is I wanted to see what debian specific tor tweaks might work with dpup stretch.

User avatar
01101001b
Posts: 123
Joined: Thu 09 Mar 2017, 01:20
Location: Buenos Aires, Argentina

Re: How to add Tor Repo to DPup Stretch?

#2 Post by 01101001b »

s243a wrote:I'm trying to add the Tor Repo to dpup stretch. [...]

I got the error:

Code: Select all

	Failed to download db file: 

	...exited from 0setup script.
[...]

Anyway, these errors are beyond me at the moment so I think I'll compile tor for dpup stretch [...]
Hi s243a!

No offense, but I can't figure out what are you trying to do.

If you want Tor, it's already in Dpup repository. No need to compile anything (I suppose) or add a repo to Dpup :shock:

If I misunderstood, sorry, my bad :wink:

Post Reply