Linux

使用 apt-get 在 Raspbian 上安裝比特幣核心

  • March 19, 2020

是否可以僅使用 apt-get 在 Raspbian OS 上安裝比特幣核心?

我嘗試使用以下方法添加比特幣回購:

sudo add-apt-repository ppa:bitcoin/bitcoin

我得到:

sudo add-apt-repository ppa:bitcoin/bitcoin
Traceback (most recent call last):
 File "/usr/bin/add-apt-repository", line 95, in <module>
   sp = SoftwareProperties(options=options)
 File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
   self.reload_sourceslist()
 File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
   self.distro.get_sources(self.sourceslist)
 File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
   (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/buster

PPA 通常特定於 ubuntu,通常不能與 Raspbian 等其他 Debian 衍生產品一起使用。比特幣 PPA 中不提供 Raspbian 特定軟體包。

此外,bitcoin/bitcoinPPA 已終止且不再更新。如果您仍想使用 PPA 安裝到 Ubuntu 和 Ubuntu 衍生作業系統上,可以使用 luke-jr 的 PPA:https ://launchpad.net/~luke-jr/+archive/ubuntu/bitcoincore

我會在不使用軟體包的情況下安裝它,對於 Raspbian,我會推薦RaspiBolt 指南(如果您對 LND 不感興趣,例如 ATM,您可以查看其中的部分內容)。

引用自:https://bitcoin.stackexchange.com/questions/93855