web-dev-qa-db-fra.com

Installer Zerotier sur Ubuntu avec du matériel armhf

J'ai un problème en essayant d'installer zerotier one sur Ubuntu qui tourne sur une carte armhf (Orange Pi) en utilisant les instructions de ce site:

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

Mais cela me donne beaucoup d'erreurs et a finalement échoué comme suit:

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

Je sais que d’autres personnes le font et que cela fonctionne avec eux, mais je suis nouveau dans Ubnutu.


J'essaie d'utiliser le référentiel Debian Jessie dans Ubuntu Xenial sous armf: comme première solution et j'obtiens une erreur comme suit:

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

En fait, je suis nouveau sur Ubuntu, désolé de connaître les messages d'erreur et un grand merci à David Foerster qui m'a aidé.

2
Amgad

Donc, vous n'avez pas vraiment lu le message d'erreur? Si vous le faisiez, vous sauriez quel était le problème.

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' 

Ce message vous indique que ce référentiel ne prend pas en charge votre architure de matériel 'armhf'. Vous devrez trouver un autre moyen d'installer le logiciel. Peut-être demander sur un forum zerotier s'il existe une solution.

1
Soren A

Selon les instructions d'installation officielles , ZeroTier One est disponible pour "Intel 32/64-bit (et ARM sur Debian/Raspbian)". J'ai fouillé un peu et il semble que vous pourriez utiliser le référentiel Debian Jessie dans Ubuntu Xenial sur 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

Sinon, vous pouvez essayer de compiler le logiciel à partir des sources :

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