Installing bitcoin core on Ubuntu


Installing bitcoin core on UbuntuOfficial websiteIn addition to downloading the installation package directly above, you can also use PPA for installation.


PPA: personal package archives, which allows compiling and publishing an apt repository on Ubuntu. Bitcoin team maintains an apt repository at:。 The benefits of using PPA can be usedshellDirect installation, automatic resolution of dependencies, and optional installationbitcoindandbitcoin-qt

Installing bitcoin core

First, you need to add the source of bitcoin:

sudo add-apt-repository ppa:bitcoin/bitcoin

Stable Channel of bitcoin-qt and bitcoind for Ubuntu, and their dependencies
 More info:
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg:               imported: 1  (RSA: 1)

After adding the source successfully, you need to update the following source:

sudo apt-get update

Installing bitcoin:

sudo apt-get install bitcoind

Optional installationbitcoin-qt, inubuntu-serviceNot required on versionbitcoin-qtYes, if it’s inubuntu-desktopI want to use itbitcoin-qtYou can choose to install:

sudo apt-get install bitcoin-qt

Run bitcoin

Direct inputbitcoindCommands can makebitcoindRun directly at the front desk:


You can also run in the background:

bitcoind –daemon

When running, we can use the command to viewbitcoindOperation of:

bitcoin-cli getinfo

  "version": 120100,
  "protocolversion": 70012,
  "walletversion": 60000,
  "balance": 0.00000000,
  "blocks": 32,
  "timeoffset": 0,
  "connections": 6,
  "proxy": "",
  "difficulty": 1,
  "testnet": false,
  "keypoololdest": 1472539508,
  "keypoolsize": 101,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": ""

You can also view it directlydebug.logTo monitor the current operation.
get into. Bitcoin Directory:

cd $HOME/.bitcoin


tail -f debug.log

Blockchain data

Bitcoin data exists in Linux$HOME/.bitcoinDirectory, which contains the following files.

  • bitcoind.pidBitcoin running process file

  • blocksBlockchain data file

  • chainstateThe database of blockchain status is stored by leveldb

  • db.logDatabase log file

  • debug.logLog file at run time

  • wallet.datWallet file

bitcoindAddress where data exists on other platforms.


  • %Appdata% bitcoin e.g.: C: usersusernameappdataroamingbitcoin


  • $home / library / Application Support / bitcoin / for example: / users / username / library / Application Support / bitcoin

Reward address: 1lwagjhserg14yxicivlufqwfra9dqze6