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:luke-jr/bitcoincore
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
server=1
** Start bitcoind **
bitcoind --daemon
** If bitcoind is already started **
ps -e | grep bitcoin // returns pid
kill -9 <pid>
bitcoind --daemon
** Test bitcoind is running and working **
bitcoin-cli getinfo
@fsdevblog
Copy link

fsdevblog commented Dec 17, 2017

** Start bitcoind **
bitcoind &

it will be more correct:
bitcoind --daemon

@molxyz
Copy link

molxyz commented Feb 3, 2018

Hi, does this version of bitcoin have ZMQ installed?

@rikkamirra
Copy link

rikkamirra commented Sep 27, 2018

nano bitcoind.conf

should be bitcoin.conf

@Goosie
Copy link

Goosie commented Oct 11, 2018

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

@jes-alpha
Copy link

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
Copy link

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
Copy link

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
Copy link

andreyselin commented Mar 30, 2019

bitcoin.conf, not bitcoind.conf

@codeclass
Copy link

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
Copy link

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

@kryptodirect
Copy link

kryptodirect 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
Copy link

DuanTranHuy commented May 5, 2020

@Belial-public
Copy link

Belial-public commented Jun 17, 2020

ppa:bitcoin/bitcoin is dead

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

@arjunparakh
Copy link

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
Copy link

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
Copy link

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
Copy link

GlenCooper commented Jan 4, 2021

@lhzehl
Copy link

lhzehl commented Apr 16, 2021

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

Thank you

@jreiners
Copy link

jreiners commented Apr 30, 2022

while true; do echo `bitcoin-cli getblockcount 2>&1`/`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null`/`tail -n1 /mnt/blockchain/debug.log | cut -f9 -d " " -`; sleep 20; done

will give date run, current block / block count / and approximate date from the log, just change log location

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