zerotier / install.zerotier.com

Source for https://install.zerotier.com curl|bash installer
https://install.zerotier.com
BSD 3-Clause "New" or "Revised" License
58 stars 41 forks source link

Debian 10 installer script broken when simply piped to bash #17

Closed bradleydiggs closed 1 month ago

bradleydiggs commented 3 years ago

Steps to reproduce

Spin up a Debian 10 instance at Vultr, and run the following: curl -s https://install.zerotier.com | bash (already logged in as root, so no sudo required)

Output is as follows: `*** ZeroTier One Quick Install for Unix-like Systems

Tested distributions and architectures: MacOS (10.7+) on x86_64 (just installs ZeroTier One.pkg) Debian (7+) on x86_64, x86, arm, and arm64 RedHat/CentOS (6+) on x86_64 and x86 Fedora (16+) on x86_64 and x86 SuSE (12+) on x86_64 and x86 *** Mint (18+) on x86_64, x86, arm, and arm64

*** Please report problems to contact@zerotier.com and we will try to fix.

*** Detecting Linux Distribution

*** Found Debian "buster", or "sid" (or similar), creating /etc/apt/sources.list.d/zerotier.list E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation

*** Installing zerotier-one package... Hit:1 http://security.debian.org/debian-security buster/updates InRelease Hit:2 http://deb.debian.org/debian buster InRelease Hit:3 http://deb.debian.org/debian buster-updates InRelease Get:4 http://download.zerotier.com/debian/buster buster InRelease [25.9 kB] Err:4 http://download.zerotier.com/debian/buster buster InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1657198823E52A61 Reading package lists... Done W: GPG error: http://download.zerotier.com/debian/buster buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1657198823E52A61 E: The repository 'http://download.zerotier.com/debian/buster buster InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package zerotier-one

Package installation failed! Unfortunately there may not be a package for your architecture or distribution. For the source go to: *** https://github.com/zerotier/ZeroTierOne`

For the record, installing gpg with apt install gpg and using the following method (as shown on the ZeroTier download page) works just fine: curl -s 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg' | gpg --import && \ if z=$(curl -s 'https://install.zerotier.com/' | gpg); then echo "$z" | bash; fi

I can also confirm that the simpler method of curl -s https://install.zerotier.com | bash works just fine for their Debian 9 instances over at Vultr.