Adding ppa (specifically bitcoin)

Context: I’m trying to run a bitcoin node on my PureOS. I’m running the Librem 13 - love the concept, but I am green to linux and non-technical so learning the ropes.

Issue:

  • I am following this tutorial: Running A Full Node - Bitcoin
  • I can’t actually get the package (bitcoin-qt). Instead I get error message “E: Unable to locate package bitcoin-qt”
  • Think root is there is an issue with adding the ppa, but can’t figure out what I’ doing wrong.

Here’s what I’m getting after I try to add the ppa:

gpg: keybox ‘/tmp/tmpzv38ww9_/pubring.gpg’ created
gpg: key D46F45428842CE5E: 3 signatures not checked due to missing keys
gpg: /tmp/tmpzv38ww9_/trustdb.gpg: trustdb created
gpg: key D46F45428842CE5E: public key “Launchpad PPA for Bitcoin” imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1
gpg: no valid OpenPGP data found.

Here’s what i’m getting when i run apt-get update

Err:3 http:// ppa.laun chpad.n et/bitco in/bitcoin/ubuntu bionic InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY D46F45428842CE5E
Err:8 http:// ppa .launchpad.net/ubuntu-wine/ppa/ubuntu bionic Release
404 Not Found
Reading package lists… Done
W: GPG error: http ://ppa.launchpad.net/bitcoin/bitcoin/ubuntu bionic InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY D46F45428842CE5E
E: The repository ‘http:// ppa. launchpad. net/ bitcoin/bitcoin/ubuntu bionic InRelease’ is not signed.
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.
E: The repository ‘http:// ppa.laun chpad .net/ubuntu-w ine/ppa/ubuntu bionic 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.

1 Like

So uh, first let’s start off by saying what you’re trying to do is not necessary to use bitcoin. By running a full node, you’ll have to download the entire blockchain, which is around ~100GB, as well as set the laptop up as a server with an open port, which probably won’t work since you’ll be taking places (that is the point of a laptop). Plus, this a tutorial for Ubuntu, which is not like PureOS. If you still really want to do this, then follow this tutorial BUT, keep in mind what you are doing is creating a mismash of a system, which could be a bit messy to deal with. I’d recommend running a client that connects to a node instead. A good one is electrum. You can install it by running:

sudo apt-get install python3-setuptools python3-pyqt5 python3-pip
sudo pip3 install https://download.electrum.org/3.1.0/Electrum-3.1.0.tar.gz

You’ll have to update electrum using the pip3 package manager. I like to manage pip3 installed packages using a bit of script such as this:

pip3 freeze --local | grep -v ‘^-e’ | cut -d = -f 1 | xargs -n1 sudo pip3 install -U

This just upgrades all pip3 packages for you.

Appreciate very much the commentary.

However, what do you mean a mishmash of a system? My goal of running a full node is so I can validate transactions without relying on anyone else. And can limit risks to privacy. Not sure I understand why it’d be bad to do it on a laptop - are you saying the fact I’ll be moving the machine around will impact my ability to maintain the node? Perhaps I’m missing something.

Electrum wallet looks good - downloaded.

Note that Electrum wallet package is available as well. You can just:

sudo apt install electrum 

and it will be easier to keep updated.

I think what @AnameIneed means by mismatch is that the ppa is specifically for Ubuntu. PureOS is not Ubuntu, so using that ppa will not be a good match. Following the instructions he posted should work, though, as far as I can tell, and not result in any mismatch.

As for running the node, I’m not an expert, but as far as I know, when running a node, you are turning your laptop into part of the Bitcoin network. So as mentioned, you have to first download a full copy of the ~100 GB blockchain, which will take a while, meaning your laptop has to stay on and awake and network-connected that whole time, and thus cannot be taken anywhere. Then, in order to verify transactions, you have to be able to receive blocks from the network, so you have to make sure your network settings allow incoming traffic. And then you again have to make sure your laptop stays on, awake, and network-connected in order to do this.

So short answer, yes, using a laptop as a laptop will impact your ability to run a node. But if you plan on using your laptop as a desktop and never move it anywhere, or at least not regularly, then I think it would be fine.

Yep, exactly what I meant. If you’d like to read more, see this. PureOS is based on Debian, so most things about Debian apply to PureOS.

1 Like

Hello @socrates,

Generally speaking, Bitcoin is not really privacy-oriented. All transactions are public, and running your own node will make little to no difference regarding privacy.

Purism has partnered-up with Monero, for they are privacy centric from the start.

I am interested in run a monero node in a raspberry pi 3. It is possible install PureOS on raspberry Pi?

Given that the official OS, Raspbian, is based on Debian, I would expect PureOS to work fairly well. I’m not sure what sort of tweaks they make for Raspbian, though. In principle there could be some driver issues, but you can always give it a try. If it doesn’t work, just install Raspbian instead.

Edit: As @thib notes below, the Raspberry Pi is ARM-based. I don’t think PureOS has an ARM build (yet). As the Librem 5 progresses, we should see an ARM build show up.

Hi @tonyp,

You definitely do not need PureOS to run a Monero node. you can find plenty of documentation regarding how to run a Monero daemon on a server. It runs perfectly well on debian or CentOS.

Still, if I’m correct, the Raspberry Pi is ARM based, and I could not say if Monero produced a daemon for ARM architecture.

EDIT: actually Monero’s website itself offers binaries for ARM.

The following thread on stackexchange might be of interest as well

1 Like

I test it few months ago on a Raspberry pi Zero W and 3 B+ and it works.

1 Like

i saw a bitcoin wallet into the system, says 200 gb download i guess its the blockchain itself…

not sure if you found a solution to this, but i just installed bitcoin using this guide: https://hackernoon.com/a-complete-beginners-guide-to-installing-a-bitcoin-full-node-on-linux-2018-edition-cb8e384479ea and it seems to be syncing fine.

hi thib

I like monero but you should consider looking back bitcoin and lightning network one more time because of the advances made on privacy and transactions speeds. For privacy check wasabi wallet (https://wasabiwallet.io/)

One of the latest project i saw that is a potential competition for media platform is sphinx (https://sphinx.chat/)

I love the see sphinx chat and bitcoin or crypto centric app category on pure os