zerotier / install.zerotier.com

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

Error installing on Linux Mint 20.1: `Unsupported distribution linuxmint 20.1` #94

Open elyran opened 1 month ago

elyran commented 1 month ago

Hi,

$ curl -s https://install.zerotier.com | sudo bash

*** ZeroTier Service Quick Install for Unix-like Systems

*** Tested OSes / distributions:

***   MacOS (10.13+) (just installs ZeroTier One.pkg)
***   Debian Linux (7+)
***   RedHat/CentOS Linux (6+)
***   Fedora Linux (16+)
***   SuSE Linux (12+)
***   Mint Linux (20+)
***   Kali Linux (2024.1+)

*** Supported architectures vary by OS / distribution. We try to support
*** every system architecture supported by the target.

*** Please report problems by opening a GitHub issue or Pull Request at: 
*** https://github.com/zerotier/install.zerotier.com
*** Please include the content of `/etc/os-release` for your distribution.

*** Detecting Linux Distribution

*** Detected Linux Mint, creating /etc/apt/sources.list.d/zerotier.list
bash: line 306: [[: 20.1: syntax error: invalid arithmetic operator (error token is ".1")
Hit:2 https://download.docker.com/linux/ubuntu focal InRelease                                                                                                                                                                                
Hit:3 http://archive.canonical.com/ubuntu focal InRelease                                                                                                                                                                                     
Hit:4 http://mirror.bytemark.co.uk/ubuntu focal InRelease                                                                                                                   
Hit:1 https://packages.microsoft.com/repos/code stable InRelease                                                                                                            
Hit:5 http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu focal InRelease                                                                             
Hit:6 http://mirror.bytemark.co.uk/ubuntu focal-updates InRelease                                                                                                       
Hit:7 http://ppa.launchpad.net/apt-fast/stable/ubuntu focal InRelease                                                                                                   
Hit:8 http://mirror.bytemark.co.uk/ubuntu focal-backports InRelease                                                                              
Hit:9 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                                 
Hit:10 https://dl.google.com/linux/chrome/deb stable InRelease                                    
Ign:11 https://mirrors.ukfast.co.uk/sites/linuxmint.com/packages ulyssa InRelease
Hit:12 https://mirrors.ukfast.co.uk/sites/linuxmint.com/packages ulyssa Release
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gpg is already the newest version (2.2.19-3ubuntu2.2).
The following packages were automatically installed and are no longer required:
  libu2f-udev linux-headers-5.4.0-77 linux-headers-5.4.0-77-generic linux-image-5.4.0-77-generic linux-modules-5.4.0-77-generic linux-modules-extra-5.4.0-77-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 334 not upgraded.
main: line 252: [[: 20.1: syntax error: invalid arithmetic operator (error token is ".1")
main: line 254: [[: 20.1: syntax error: invalid arithmetic operator (error token is ".1")
Unsupported distribution linuxmint 20.1
$ cat /etc/os-release
NAME="Linux Mint"
VERSION="20.1 (Ulyssa)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20.1"
VERSION_ID="20.1"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=ulyssa
UBUNTU_CODENAME=focal

The app it self works on Linux Mint 20.1. Currently solved it by using this script: curl -s https://raw.githubusercontent.com/zerotier/install.zerotier.com/3573e9c87522d0e459770df60ee424e92bcb9a68/htdocs/install.sh | sudo bash

I'd like it to work out of the box. Please update the script.

Thank you!

raimocom commented 1 week ago

For a solution see here: https://github.com/zerotier/install.zerotier.com/issues/101