如何在Ubuntu 20上安装bitcoind?

问题描述 投票:0回答:1

我在Ubuntu v20 VPS系统上安装bitcoind时遇到麻烦。我如何通过官方教程来做到这一点:

“如果您使用Ubuntu,则无需从源代码编译bitcoind和bitcoin-cli。您只需添加官方的比特币PPA。”

这是我的命令:

sudo apt-get install software-properties-common
sudo apt-add-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind

[当我尝试添加存储库时,我收到此有趣的错误消息,当我继续输入时,系统似乎已完成处理,但实际上并没有添加存储库!

当我键入此命令时,我收到此消息:命令:sudo apt-add-repository ppa:bitcoin / bitcoin错误:

root @ vultr:〜#sudo apt-add-repository ppa:bitcoin / bitcoin NOT 保持。此处的OS库链接包具有一系列 问题。

请直接从bitcoincore.org下载(并验证 所述文件的签名)。

如果您要自动更新,请参阅官方维护的快照 包裹-https://github.com/bitcoin-core/packaging/tree/master/snap 更多信息:https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin 按[ENTER]继续,或按Ctrl-c取消添加。

然后当我按Enter继续时,我收到此消息:

Ign:1 http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu focal InRelease
Err:2 http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu focal Release
  404  Not Found [IP: 91.189.95.83 80]
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

之后,当我认为一切都很好,并且运行命令时sudo apt-get更新

并且更新完成后,我尝试推送命令:sudo apt-get install bitcoind

我收到此错误消息:

root@vultr:~# sudo apt-get install bitcoind
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package bitcoind
root@vultr:~#

[请为我指出解决方案,或告诉我在哪里犯错,这是迄今为止我所看到的最大问题。我对ubuntu和vps不好,这对我来说似乎是不可能的,非常感谢!

ubuntu vps bitcoin bitcoind
1个回答
0
投票

我不得不去bitcoin.org网站并找到最后一个tar.gz比特币的链接。

对于我的示例,我这样做是:输入ubuntu

wget https://bitcoin.org/bin/bitcoin-core-0.20.0/bitcoin-0.20.0-x86_64-linux-gnu.tar.gz

然后我打开tar.gz的包装

tar -xvf bitcoin-0.20.0-x86_64-linux-gnu.tar.gz

然后我进入比特币文件夹并将文件移至/ usr / local / bin

然后我简单地开始使用

bitcoind -daemon

在后台运行它:)

希望这会有所帮助:)

© www.soinside.com 2019 - 2024. All rights reserved.