Closed Squelch closed 2 months ago
Thanks for writing this up. See https://github.com/zerotier/install.zerotier.com If you can figure out the fix and PR it, that'd be welcome.
Thanks for the pointer, and I shall direct my efforts to the installer repositary going forward.
My fist concern was documenting the problem and providing a fix for package managers for ZeroTier users that are newcomers to Linux Mint and maybe unfamiliar with the OS.
I see that there is already an issue related to this problem #76 there. Investigations are already underway to find a fix for the correct target package.
The patch to fix this issue has already been submitted by @jeremiah-k against the installer repositary. I have tested it on a separate VM and it correctly identifies and targets the correct Ubuntu Noble package for successful installation. I have provided a review and approval for the patch, and it has been merged.
At the time of this comment, the fix is not live. However, @jeremiah-k also provided a correctly targeted script invocation for use in the meantime.
Quote @jeremiah-k
curl -s https://raw.githubusercontent.com/zerotier/install.zerotier.com/3573e9c87522d0e459770df60ee424e92bcb9a68/htdocs/install.sh | sudo bash
Make sure you get the whole string, there's a copy button on the right side of the codeblock.
The installer is now working correctly.
Due to the nature of this bug, both of the natively installed package managers (Software Manager and Synaptic Package Manager) as well as the Update Manager will no longer work. See the bottom of this post for error details and repair.
Expected:
Using the installation scripts, the correct package repository to be added to the package manager and the appropriate ZeroTier package for the OS to be installed.
Observed:
The script runs, installs the GPG keys and adds the
zerotier.list
entry to/etc/apt/sources.list.d
. However, the script them fails with a malformed URI.Reproduction:
On Linuc Mint 22, attempt to install ZeroTier using either of the supplied scripts on
https://www.zerotier.com/download/#entry-5
Additional information:
os-release
Script output
Contents of
/etc/apt/sources.list.d/zerotier.list
deb [signed-by=/usr/share/keyrings/zerotier-debian-package-key.gpg] virginiadebian/ main
Fixing package and update managers
Attempting to use the graphical package managers, update manager, or apt from CLI will no longer work after the failure of Zerotier to install.
Below are likely errors encountered in each application which remain unusable until the problem is rectified CLI:
Update Manager:
Software Manager:
Synaptic Package Manager:
Furthermore, viewing Software sources to attempt to rectify the problem does not show the rogue entry and may show an error too:
The only recourse to fix this problem is to remove the offending file using the console:
sudo rm /etc/apt/sources.list.d/zerotier.list
See comment 4 below for a prefered alternative that overwites the offending file and resumes normal operation.