Aliyun Linux 17.1安装 zerotier 失败
分析
主要错误是
http://download.zerotier.com/redhat/el/17.01/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found 具体报错信息通过查看 http://download.zerotier.com/redhat/el/ 可知应该是
curl -s https://install.zerotier.com | sudo bash 命令内依赖了系统版本这个数据,但由于我使用的是 Aliyun Linux 17.1 所以他找不到相关的信息解决
手动下载 https://install.zerotier.com 这里的脚本,
这里有一个
$releaserver 基本验证了 这里的推测我改成下图这样后再手动执行脚本安装成功了
具体报错信息
curl -s https://install.zerotier.com | sudo bash
*** 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 RHEL/CentOS, creating /etc/yum.repos.d/zerotier.repo
*** Installing zerotier-one package...已加载插件:fastestmirror, langpacksRepository base is listed more than once in the configurationRepository updates is listed more than once in the configurationRepository extras is listed more than once in the configurationRepository base is listed more than once in the configurationRepository updates is listed more than once in the configurationRepository extras is listed more than once in the configurationbase | 3.1 kB 00:00:00docker-ce-stable | 3.5 kB 00:00:00epel | 4.7 kB 00:00:00extras | 2.5 kB 00:00:00mongodb-org-3.4 | 2.5 kB 00:00:00mysql-connectors-community | 2.6 kB 00:00:00mysql-tools-community | 2.6 kB 00:00:00mysql57-community | 2.6 kB 00:00:00updates | 2.5 kB 00:00:00
http://download.zerotier.com/redhat/el/17.01/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found正在尝试其它镜像。To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
If above article doesn't help to resolve this issue please create a bug on https://www.aliyun.com/
One of the configured repositories failed (ZeroTier, Inc. RPM Release Repository),and yum doesn't have enough cached data to continue. At this point the onlysafe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=zerotier ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable zerotier
or
subscription-manager repos --disable=zerotier
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=zerotier.skip_if_unavailable=true
failure: repodata/repomd.xml from zerotier: [Errno 256] No more mirrors to try.http://download.zerotier.com/redhat/el/17.01/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
*** 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