web-dev-qa-db-ja.com

armhfハードウェアを備えたUbuntuにZerotierをインストールする

このサイトからの指示を使用して、armhfボード(オレンジPi)で実行されるゼロティア1をUbuntuにインストールしようとすると問題が発生します。

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は初めてなので、エラーメッセージについて知っているのでごめんなさい。DavidFoersterが助けてくれてありがとう。

2
Amgad

あなたは本当にエラーメッセージを読んでいませんでしたか?そうすれば、問題が何であるかがわかります。

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」をサポートしていないことを示しています。ソフトウェアをインストールする別の方法を見つける必要があります。解決策があるかどうかをゼロティアフォーラムで尋ねるかもしれません。

1
Soren A

公式のインストール手順 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
0
David Foerster