WARNING: Complete noob to linux (somewhat noob - if something can be installed w/ a package manager, I'm ok, else completely lost). I loaded debian 7 on a VBox VM (took 2 days to get everything to run correctly, but cool now) and just want to put a BitCoin wallet on, so I went to the bitcoin site and downloaded the wallet. Unfortunately, there is no install package, just a bin and src directory. I figured the bin was the correct place to look and found a directory named "32" under that. In that directory, I see bitcoind and bitcoin-qt. Found out I needed PPA to install this, so I came up with (in a terminal):

sudo add-apt-repository ppa:bitcoin/bitcoin

ran the command, seemed to work. then ran

sudo apt-get update

but discovered some files apparently are no longer on the site it's pulling stuff from:

Hit http://ftp.us.debian.org wheezy Release.gpg
Hit http://ftp.us.debian.org wheezy-updates Release.gpg                        
Hit http://ftp.us.debian.org wheezy Release                                    
Hit http://ftp.us.debian.org wheezy-updates Release                            
Hit http://ftp.us.debian.org wheezy/main Sources                               
Hit http://security.debian.org wheezy/updates Release.gpg            
Hit http://ftp.us.debian.org wheezy/main i386 Packages
Ign http://ppa.launchpad.net wheezy Release.gpg                      
Hit http://ftp.us.debian.org wheezy/main Translation-en              
Hit http://security.debian.org wheezy/updates Release                
Hit http://ftp.us.debian.org wheezy-updates/main Sources             
Hit http://ftp.us.debian.org wheezy-updates/main i386 Packages/DiffIndex
Hit http://security.debian.org wheezy/updates/main Sources           
Hit http://ftp.us.debian.org wheezy-updates/main Translation-en/DiffIndex
Ign http://ppa.launchpad.net wheezy Release    
Hit http://security.debian.org wheezy/updates/main i386 Packages
Hit http://security.debian.org wheezy/updates/main Translation-en
Err http://ppa.launchpad.net wheezy/main Sources
  404  Not Found
Err http://ppa.launchpad.net wheezy/main i386 Packages
  404  Not Found
Ign http://ppa.launchpad.net wheezy/main Translation-en_US
Ign http://ppa.launchpad.net wheezy/main Translation-en
W: Failed to fetch http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu/dists/wheezy/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu/dists/wheezy/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

Naturally, because of errors above, the installation fails.

 sudo apt-get install bitcoin-qt

results in:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package bitcoin-qt

Being a noob, I have no clue as to where it is looking for the bitcoin-qt file, so I tried the same command in the directory the file was in that I downloaded it to, same error. I know I'm doing something completely wrong here, but have no idea how to proceed. (sorry, spoiled by win/mac 2-click installations!)

  • As a side note, take into account that the building of the bitcoin source code in debian 7 is currently broken. – 174140 Jan 9 '14 at 16:34
  • ok - Should I just blow away the Debian and go to Ubuntu? It's a VirtualBox VM, so it's not a big deal. – MC9000 Jan 9 '14 at 16:42
  • Maybe you are running a Microsoft host and would be just OK running the wallet from the host. Maybe more trust should be put in Debian rather than in bitcoin. Who knows? – 174140 Jan 9 '14 at 16:50
  • Anyway bitcoin builds in Ubuntu far better than in Debian, by a surprisingly large distance. But this is just for today. – 174140 Jan 9 '14 at 16:54
  • @uprego - There are very specific security reasons having your wallet within a linux virtual machine is a valid decision. That really isn't a valid solution, if building is currently broken, and there simply not being a solution on debian ( except to fix the build process yourself ) is an entirely valid answer to this question. Using Windows instead not so much. – Ramhound Jan 9 '14 at 16:57

Here is what I did on Debian Wheezy.

  • Create /etc/apt/sources.list.d/bitcoin.list with content
deb-src http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu precise main
  • Import this repository PGP public key with
apt-key adv --keyserver hkp://subkeys.pgp.net --recv-keys D46F45428842CE5E
  • Create (temporarily) /etc/apt/sources.list.d/debian-squeeze.list with content
deb http://ftp.ch.debian.org/debian/ squeeze main
  • Run aptitude update and
aptitude install libdb4.8++-dev=4.8.30-2 libdb4.8++=4.8.30-2 \
  • Disable squeeze repository again with
mv /etc/apt/sources.list.d/debian-squeeze.list /etc/apt/sources.list.d/debian-squeeze.list.bak
aptitude update
  • In an empty folder, get package sources with apt-get source bitcoin-qt

  • Edit bitcoin-0.9.0/debian/control to remove libminiupnpc8-dev from Build-Depends

  • Install any lacking dependencies to build the package, for example:

aptitude install libboost-filesystem-dev libboost-system-dev libboost-test-dev
aptitude install libboost-program-options-dev libboost-thread-dev libqt4-dev
aptitude install libqrencode-dev libprotobuf-dev protobuf-compiler devscripts
  • After cd bitcoin-0.9.0, invoke dpkg-buildpackage -rfakeroot

  • When over, install with dpkg -i ../bitcoin-qt_0.9.0-precise1_amd64.deb (in case of amd64 system) so you can now run bitcoin-qt

Remark: libdb4.8 is obsolete in Debian Wheezy but it is a requirement to work with portable Bitcoin wallet. The easiest way was to get binary packages from Squeeze.

| improve this answer | |
  • If you're only after a bitcoind with no GUI nor wallet support, with tweaks to bitcoin-0.9.0/debian/rules you can omit the squeeze/libdb* part and the libqt4-dev/libqrencode-dev dependencies by editing debian/rules, changing ./configure to ./configure --disable-wallet --with-gui=no and removing the first line (usr/local/bin/bitcoin-qt usr/bin) from bitcoin-0.9.0/debian/bitcoin-qt.install (a tiny useless bitcoin-qt_0.9.0_i386.deb will still be built, but can be ignored). – ZakW Jul 13 '14 at 21:03
  • who knew it was so easy? – appleLover Sep 19 '15 at 20:40
  • That is a procedure "the Debian way", so without polluting system with raw files copy in /usr/local, but with a clean Debian package build and installation (so that uninstallation is easy and clean) – Yves Martin Sep 22 '15 at 7:46
  • This is a very bad idea. It's a good way to create package installation problems down the road. Never, add package sources for other distributions unless you want to bork your system. What will happen is you will encounter unresolvable dependency problems down the road when you try to update your system. You would be much better off building from source and then using checkinstall to create a package. – jcoffland Oct 3 '15 at 4:10
  • I disagree. I do not propose to install a Ubuntu binary package into a Debian. On the contrary, I use the only "dpkg" source package available and build it from "sources" with Debian tool chain (configure and make are invoked by dpkg-buildpackage !). Dependencies are checked at compilation and the only impact may be a non functional application, no issue for the system itself. With the benefits that uninstall or upgrade let the system clean. – Yves Martin Oct 3 '15 at 10:53

Okay, for all the noobs out there pulling their hair out, here's how you do it. Turns out, after much experimenting, Mint Linux is the only distro I could find that seems to be relatively small, relatively fast & works great (for me, that it). Starting w/Mint & after all updates - open a terminal & type the following in order:

$ sudo add-apt-repository ppa:bitcoin/bitcoin
$ sudo apt-get update
$ sudo apt-get install bitcoin-qt

Once complete, close your terminal & go to the menu: Office --> Bitcoin.

Very simple! Works like a charm!

| improve this answer | |

Add below line to /etc/apt/sources.list

deb http://ftp.de.debian.org/debian sid main 


sudo apt-get update
sudo apt-get install bitcoind
| improve this answer | |

Here is what i did on my debian wheezy server :

How to compile and install bitcoin core on debian wheezy

In order to compile and run, Bitcoin Core depends on some other tools which must be installed prior to compiling :

Install some dependencies:

  1. For bitcoin-core

    sudo apt-get install build-essential autoconf libssl-dev libboost-dev libboost-chrono-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-test-dev libboost-thread-dev
  2. For bitcoin-qt (graphical interface)

    If you want the graphical frontend, also install the following dependencies. If you just want bitcoind, you can skip this step.

    sudo apt-get install libqt4-dev libprotobuf-dev protobuf-compiler libqrencode-dev

Installing Berkeley DB 4.8

Compiling Bitcoin Core requires the Berkeley DB version 4.8 which is not available in the wheezy repositories, so we must use squeeze repositories. Note that if you don't need a wallet (i.e. if you want to run a headless Bitcoin node and keep your wallet elsewhere) you can completely skip this section and jump directly to downloading and compiling Bitcoin Core.

  1. Change the sources.list to use squeeze repositories

    Edit /etc/apt/sources.list :

    vi /etc/apt/sources.list

    Add the following lines in the head of file :

    deb http://[your favorite repository]/debian/ squeeze main contrib non-free
    deb-src http://[your favorite repository]/debian/ squeeze main contrib non-free
  2. Now you can install Berkeley DB version 4.8 (libdb4.8)

    apt-get install libdb4.8++-dev libdb4.8-dev

Downloading and Compiling Bitcoin Core

Go to the branches list on the Bitcoin Core project site (https://github.com/bitcoin/bitcoin/branches), locate the latest version number, and substitute "0.11" in the command below with that.

cd /root git clone -b 0.11 https://github.com/bitcoin/bitcoin.git cd bitcoin/
  1. Configure the system for compilation


    if you dont need bitcon GUI, use this command :

    ./configure --without-gui

    else use this :


    Note: If you skipped the Berkeley DB 4.8 dependency above because you don't need a wallet, you must add "--disable-wallet" (without the quotation marks) to the end of the line that starts with ./configure above.

  2. Compile


Installing and Running Bitcoin Core

make install

After that, you will be able to run Bitcoin Core by typing: bitcoind (the text based backend) or bitcoin-qt (the graphical frontend), or bitcoin-cli (command-line client)

| improve this answer | |
  • Question is about "bitcoin-qt". So why do you answer about "bitcoind" and "--without-gui" ? – Yves Martin Sep 22 '15 at 7:43
  • This is the right way to do it but instead of running make install, install and run checkinstall. – jcoffland Oct 3 '15 at 4:12

You can either get a statically linked binary from https://bitcoincore.org/en/download/ or use one of the package managers:

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.