Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Bitcoind Ubuntu
** Add repository and install bitcoind **
sudo apt-get install build-essential
sudo apt-get install libtool autotools-dev autoconf
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind
mkdir ~/.bitcoin/ && cd ~/.bitcoin/
nano bitcoin.conf
** Add config to bitcoin.conf file **
rpcuser=username
rpcpassword=password
testnet=1
rpcport=8332
rpcallowip=127.0.0.1
rpcallowip=195.154.11.93
server=1
** Start bitcoind **
bitcoind --daemon
** If bitcoind is already started **
ps -e | grep bitcoin // returns pid
kill -9 <pid>
bitcoind &
** Test bitcoind is running and working **
bitcoin-cli getinfo
@fsdevblog

This comment has been minimized.

Copy link

@fsdevblog fsdevblog commented Dec 17, 2017

** Start bitcoind **
bitcoind &

it will be more correct:
bitcoind --daemon

@molxyz

This comment has been minimized.

Copy link

@molxyz molxyz commented Feb 3, 2018

Hi, does this version of bitcoin have ZMQ installed?

@rikkamirra

This comment has been minimized.

Copy link

@rikkamirra rikkamirra commented Sep 27, 2018

nano bitcoind.conf

should be bitcoin.conf

@Goosie

This comment has been minimized.

Copy link

@Goosie Goosie commented Oct 11, 2018

bitcoin-cli getinfo should be bitcoin-cli getblockchaininfo or bitcoin-cli getblockcount

@jes-alpha

This comment has been minimized.

Copy link

@jes-alpha jes-alpha commented Oct 14, 2018

a small script to view the progress while downloading the blocks:
echo `bitcoin-cli getblockcount 2>&1`/`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null`

@varshakhandre14

This comment has been minimized.

Copy link

@varshakhandre14 varshakhandre14 commented Dec 19, 2018

I follow above commands to install bitcoind. But when I type command bitcoind its giving error " bitcoind: command not found"

@wafflemakr

This comment has been minimized.

Copy link

@wafflemakr wafflemakr commented Jan 17, 2019

I follow above commands to install bitcoind. But when I type command bitcoind its giving error " bitcoind: command not found"

use bitcoin-cli

@andreyselin

This comment has been minimized.

Copy link

@andreyselin andreyselin commented Mar 30, 2019

bitcoin.conf, not bitcoind.conf

@codeclass

This comment has been minimized.

Copy link

@codeclass codeclass commented Dec 12, 2019

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

Why?

@tecknoh19

This comment has been minimized.

Copy link

@tecknoh19 tecknoh19 commented Jan 5, 2020

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

Why?

Sound like you either did not add the repository, or did not update apt after adding it

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Apr 6, 2020

I am having the same issue on Ubuntu 18.04

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

Why?

@DuanTranHuy

This comment has been minimized.

Copy link

@DuanTranHuy DuanTranHuy commented May 5, 2020

@Belial-public

This comment has been minimized.

Copy link

@Belial-public Belial-public commented Jun 17, 2020

ppa:bitcoin/bitcoin is dead

sudo add-apt-repository ppa:luke-jr/bitcoincore

@arjunparakh

This comment has been minimized.

Copy link

@arjunparakh arjunparakh commented Jul 16, 2020

I keep getting unable to find package on Ubuntu any version. CentOS any version, Debian any version. I have tried everything can't seem to find an answer to why am I getting this error. Can anyone help?

@arjunparakh

This comment has been minimized.

Copy link

@arjunparakh arjunparakh commented Jul 16, 2020

Bitcoind doesn't work anymore, tried so many things on so many os, and I keep getting unable to find package. What is the solution to this. Is digitaocean who is blocking it? or is the sudo apt-get install bitcoind command primitive and help would be highly appreciated!

@Zwilla

This comment has been minimized.

Copy link

@Zwilla Zwilla commented Jan 4, 2021

only use this:
https://bitcoincore.org/en/download/

NOT MAINTAINED. The OS-library linking packages here had a series of issues.

PLEASE DOWNLOAD DIRECTLY FROM bitcoincore.org (and verify the signatures of said files).

@GlenCooper

This comment has been minimized.

Copy link

@GlenCooper GlenCooper commented Jan 4, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment