-
-
Save rjmacarthy/b56497a81a6497bfabb1 to your computer and use it in GitHub Desktop.
** 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 | |
rpcallowip=127.0.0.1 | |
server=1 | |
[test] | |
rpcport=8332 | |
** 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 | |
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 bitcoindWhy?
check this bitcoin-core/packaging#21
ppa:bitcoin/bitcoin is dead
sudo add-apt-repository ppa:luke-jr/bitcoincore
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?
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!
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).
Got mine from https://bitcoin.org/en/download
sudo add-apt-repository ppa:luke-jr/bitcoincore
Thank you
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
you might fix "bitcoin-cli -getinfo" instead "bitcoin-cli getinfo"
you might fix "bitcoin-cli -getinfo" instead "bitcoin-cli getinfo"
Thanks I updated it, tested on Ubuntu 22.04.2 LTS still working.
thank you, found it quite helpful
Sound like you either did not add the repository, or did not update apt after adding it