Install BlackArch Linux on top of ArchLinux without gnupg / behind a proxy

I assume your curl, git, environment variables are already configured to use a proxy. But often gnupg keyservers don't work behind a proxy even if gnupg is configured to use it. The solution is to avoid using gnupg in this case.

Here is the short method when you are not using a proxy:

1
2
3
4
5
6
7
8
9
10
11
# Run https://blackarch.org/strap.sh as root and follow the instructions.
$ curl -O https://blackarch.org/strap.sh

# The SHA1 sum should match: 34b1a3698a4c971807fb1fe41463b9d25e1a4a09
$ sha1sum strap.sh

# Set execute bit
$ chmod +x strap.sh

# Run strap.sh
$ sudo ./strap.sh

And here is the method behind a proxy:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ cd
$ wget https://blackarch.org/keyring/blackarch-keyring.pkg.tar.xz
$ tar xaf https://blackarch.org/keyring/blackarch-keyring.pkg.tar.xz
# pacman-key --add usr/share/pacman/keyrings/blackarch.gpg
$ pacman-key -f keyid 4345771566D76038C7FEB43863EC0ADBEA87E4E3
# pacman-key --lsign-key 4345771566D76038C7FEB43863EC0ADBEA87E4E3
$ rm -r ~/usr
$ rm blackarch-keyring.pkg.tar.xz

$ curl -O https://blackarch.org/strap.sh # Run https://blackarch.org/strap.sh as root and follow the instructions.

$ sha1sum strap.sh # The SHA1 sum should match: 34b1a3698a4c971807fb1fe41463b9d25e1a4a09

$ chmod +x strap.sh # Set execute bit
$ vim strap.sh # Comment line 157: verify_keyring

$ sudo ./strap.sh # Run strap.sh
Share