Parity

‘捲曲:沒有指定 URL!‘在 AWS (Ubuntu) 上安裝 Parity

  • October 11, 2018

在這裡找到的公認答案似乎對我不起作用: https ://ethereum.stackexchange.com/a/46926/11266

我創建了一個 Ubuntu 16.04 LTS (HVM) 的 EC2 實例

$ bash <(curl https://get.parity.io -Lk) -r stable
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
100   170    0   170    0     0   1465      0 --:--:-- --:--:-- --:--:--  1452
100  3847  100  3847    0     0  21491      0 --:--:-- --:--:-- --:--:-- 21491
Release selected is: stable
Upgrading parity from 0.0.0 to 1.11.10
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
/usr/bin/sha256sum: /tmp/tmp.NnKCndYjTQ/parity: No such file or directory
cp: cannot stat '/tmp/tmp.NnKCndYjTQ/parity': No such file or directory
rm: cannot remove '/tmp/tmp.NnKCndYjTQ/*': No such file or directory

我嘗試將 url 用引號括起來,但我得到了相同的結果。

$ bash <(curl 'https://get.parity.io' -Lk) -r stable
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
100   170    0   170    0     0   1360      0 --:--:-- --:--:-- --:--:--  1349
100  3847  100  3847    0     0  21857      0 --:--:-- --:--:-- --:--:-- 21857
Release selected is: stable
Upgrading parity from 0.0.0 to 1.11.10
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
/usr/bin/sha256sum: /tmp/tmp.VZclpPZSN8/parity: No such file or directory
cp: cannot stat '/tmp/tmp.VZclpPZSN8/parity': No such file or directory
rm: cannot remove '/tmp/tmp.VZclpPZSN8/*': No such file or directory

問題不在於單行命令,而在於安裝程序本身。你可以通過執行看到它:

curl https://get.parity.io -Lk > installer.sh

下載文件,然後執行

./installer.sh

您將遇到完全相同的問題。問題與獲取 URL 以下載二進製文件的網站已更改穩定版和 beta 版的名稱有關。因此,您必須覆蓋 bash 文件中的一些變數。由此

if [ "$RELEASE" = "beta" ]; then
   LOOKUP_URL="$VANITY_SERVICE_URL&os=$PKG&version=beta-release"
elif [ "$RELEASE" = "stable" ]; then
   LOOKUP_URL="$VANITY_SERVICE_URL&os=$PKG&version=stable-release"
else
   LOOKUP_URL="$VANITY_SERVICE_URL&os=$PKG&version=$RELEASE"
fi

對此:

if [ "$RELEASE" = "beta" ]; then
   LOOKUP_URL="$VANITY_SERVICE_URL&os=$PKG&version=beta"
elif [ "$RELEASE" = "stable" ]; then
   LOOKUP_URL="$VANITY_SERVICE_URL&os=$PKG&version=stable-backup"
else
   LOOKUP_URL="$VANITY_SERVICE_URL&os=$PKG&version=$RELEASE"
fi 

引用自:https://ethereum.stackexchange.com/questions/57882