使用 armhf 硬件在 Ubuntu 上安装 Zerotier

使用 armhf 硬件在 Ubuntu 上安装 Zerotier

我尝试按照此站点的说明在运行于 armhf 板(Orange Pi)的 Ubuntu 上安装 zerotier one 时遇到问题:

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

但是它给了我很多错误并最终失败,如下所示:

N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'http://download.zerotier.com/debian/xenial xenial InRelease' doesn't support architecture 'armhf'
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:
*** github.com/zerotier/ZeroTierOne

我知道其他人这样做并且有效,但我对 ubnutu 还很陌生。


我尝试在 armf 上的 Ubuntu Xenial 中使用 Debian Jessie 的存储库:作为第一个解决方案,我收到如下错误:

orangepi@OrangePI:~$ sudo sh -c 'echo "deb http://download.zerotier.com/debian/jessie jessie main #ZeroTier" > /etc/apt/sources.list.d/zerotier.list'[sudo] password for orangepi: 
orangepi@OrangePI:~$ sudo sh -c 'echo "deb http://download.zerotier.com/debian/jessie jessie main #ZeroTier" > /etc/apt/sources.list.d/zerotier.list'
orangepi@OrangePI:~$ wget -O - 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg' | sudo apt-key add -
--2017-02-09 15:05:40--  https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.140.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.140.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3175 (3.1K) [text/plain]
Saving to: ‘STDOUT’

- 100%[============================================================================>]   3.10K  --.-KB/s    in 0s      

2017-02-09 15:05:41 (7.19 MB/s) - written to stdout [3175/3175]

OK
orangepi@OrangePI:~$ sudo apt update
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
orangepi@OrangePI:~$ sudo apt install zerotier-one
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package zerotier-one
orangepi@OrangePI:~$ 

So I try to build the software from source: 
And I get an error also as follows:

  orangepi@OrangePI:~$ sudo apt install git build-essential checkinstall libnatpmp-dev libminiupnpc-dev
[sudo] password for orangepi: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
git is already the newest version (1:2.7.4-0ubuntu1).
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra console-data libspeechd2
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  minissdpd natpmp-utils
The following NEW packages will be installed:
  checkinstall libminiupnpc-dev libminiupnpc10 libnatpmp-dev libnatpmp1
0 upgraded, 5 newly installed, 0 to remove and 120 not upgraded.
Need to get 183 kB of archives.
After this operation, 720 kB of additional disk space will be used.
Err:1 ht..://ports.ubuntu.com/ubuntu-ports xenial/universe armhf checkinstall armhf 1.6.2-4ubuntu1
  Connection failed [IP: 91.189.88.150 80]
Err:2 ht..://ports.ubuntu.com/ubuntu-ports xenial/main armhf libminiupnpc10 armhf 1.9.20140610-2ubuntu2
  Connection failed [IP: 91.189.88.150 80]
Err:3 ht..://ports.ubuntu.com/ubuntu-ports xenial/main armhf libminiupnpc-dev armhf 1.9.20140610-2ubuntu2
  Connection failed [IP: 91.189.88.150 80]
Err:4 ht..://ports.ubuntu.com/ubuntu-ports xenial/main armhf libnatpmp1 armhf 20110808-4
  Connection failed [IP: 91.189.88.150 80]
Err:5 ht..://ports.ubuntu.com/ubuntu-ports xenial/main armhf libnatpmp-dev armhf 20110808-4
  Connection failed [IP: 91.189.88.150 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/universe/c/checkinstall/checkinstall_1.6.2-4ubuntu1_armhf.deb  Connection failed [IP: 91.189.88.150 80]

E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/m/miniupnpc/libminiupnpc10_1.9.20140610-2ubuntu2_armhf.deb  Connection failed [IP: 91.189.88.150 80]

E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/m/miniupnpc/libminiupnpc-dev_1.9.20140610-2ubuntu2_armhf.deb  Connection failed [IP: 91.189.88.150 80]

E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/libn/libnatpmp/libnatpmp1_20110808-4_armhf.deb  Connection failed [IP: 91.189.88.150 80]

E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/libn/libnatpmp/libnatpmp-dev_20110808-4_armhf.deb  Connection failed [IP: 91.189.88.150 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
orangepi@OrangePI:~$ 

事实上,我是 Ubuntu 的新手,所以很抱歉,因为我确实知道错误消息,非常感谢 David Foerster 试图帮助我。

答案1

所以你其实并没有读过错误信息?如果你读过,你就会知道问题出在哪里。

N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'http://download.zerotier.com/debian/xenial xenial InRelease' doesn't support architecture 'armhf' 

此消息告诉您该存储库不支持您的硬件架构“armhf”。您必须找到其他方法来安装该软件。也许可以在 zerotier 论坛上询问是否有解决方案。

答案2

根据官方安装说明ZeroTier One 适用于“Intel 32/64 位(以及 Debian/Raspbian 上的 ARM)”。我仔细研究了一下,似乎您可以在 armf 上的 Ubuntu Xenial 中使用 Debian Jessie 的存储库:

sudo sh -c 'echo "deb http://download.zerotier.com/debian/jessie jessie main #ZeroTier" > /etc/apt/sources.list.d/zerotier.list'
wget -O - 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg' | sudo apt-key add -
sudo apt update
sudo apt install zerotier-one

或者你可以尝试从源代码构建软件

sudo apt install git build-essential checkinstall libnatpmp-dev libminiupnpc-dev
git clone [email protected]:zerotier/ZeroTierOne.git
cd ZeroTierOne
make
sudo checkinstall

答案3

显然我不应该解释背后的原因,但我一直在向 Launchpad 推送包含 ZeroTier 作为依赖项的项目的软件包:https://launchpad.net/~nerdboy/+archive/ubuntu/embedded/+packages

.deb 软件包适用于 xenial 和 bionic,并支持 armhf(以及 arm64、x86_64 和 x86)。如果您需要其他版本(或 debian),也可以使用源 pkgs 和 debuild。

相关内容