Instale o Zerotier no Ubuntu com hardware armhf

2

Eu tenho um problema ao tentar instalar o zerotier one no Ubuntu que roda em uma placa armhf (Orange Pi) usando as instruções deste site:

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

Mas isso me causa muitos erros e finalmente falhou da seguinte forma:

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

Eu sei que outras pessoas fazem isso e trabalham com eles, mas eu sou novo em ubnutu.

Eu tento usar o repositório para o Debian Jessie no Ubuntu Xenial no armf: Como primeira solução e recebo um erro da seguinte forma:

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:~$ 

Na verdade eu sou novo no Ubuntu, então lamento muito como eu sei sobre mensagens de erro e muito obrigado a David Foerster enquanto ele tenta me ajudar.

    
por Amgad 06.02.2017 / 06:08

2 respostas

1

Então você realmente não leu a mensagem de erro? Se você fez, você saberia qual era o problema.

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' 

Esta mensagem diz-lhe que esse repositório não suporta a sua arquitectura de hardware 'armhf'. Você terá que encontrar uma outra maneira de instalar o software. Talvez pergunte em um fórum zerotier se houver uma solução.

    
por Soren A 08.02.2017 / 10:10
0

De acordo com as instruções oficiais de instalação , o ZeroTier One está disponível para “Intel 32/64-bit (e ARM no Debian / Raspbian) ”. Eu procurei um pouco e parece que você pode usar o repositório do Debian Jessie no Ubuntu Xenial no armf:

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

Como alternativa, você pode tentar criar o software a partir da origem :

sudo apt install git build-essential checkinstall libnatpmp-dev libminiupnpc-dev
git clone [email protected]:zerotier/ZeroTierOne.git
cd ZeroTierOne
make
sudo checkinstall
    
por David Foerster 08.02.2017 / 13:15