Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: David Armstrong on January 05, 2011, 11:50:20 AM



Title: Ubuntu bitcoin packages
Post by: David Armstrong on January 05, 2011, 11:50:20 AM
Hello,

I've setup a launchpad PPA to host Ubuntu packages of bitcoin.  Version 0.3.19 is up now with builds for maverick and lucid.  I've tested the Maverick build and it runs ok for me, I don't have a machine around to test Lucid.

The PPA is hosted at https://launchpad.net/~stretch/+archive/bitcoin

To install on Ubuntu:
sudo apt-add-repository ppa:stretch/bitcoin
sudo apt-get install bitcoin

then to run
bitcoin or bitcoind - both are in /usr/bin

If this works/doesn't work for anyone please let me know.

thanks!


Title: Re: Ubuntu bitcoin packages
Post by: davout on January 05, 2011, 12:27:03 PM
Also see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578157


Title: Re: Ubuntu bitcoin packages
Post by: genjix on January 05, 2011, 02:21:42 PM
+1 another reason to remove the wxWidgets code from Bitcoin and allow others to make their own.


Title: Re: Ubuntu bitcoin packages
Post by: Gavin Andresen on January 05, 2011, 03:10:42 PM
Very nice!  Let me ask some dumb questions:

I've setup a launchpad PPA to host Ubuntu packages of bitcoin.

What does PPA stand for?

Does launchpad help solve the 'trusted build' problem-- e.g. does the build process automatically fetch from source code that we can all look at and audit?

How hard would it be to setup something similar to produce regular builds of the github integration repository?

Right now, the bitcoin build process is "Satoshi does it."  Using Launchpad to create the Linux builds seems like the right way to go.

Last dumb question:  are there services similar to Launchpad for building Mac/Windows software?


Title: Re: Ubuntu bitcoin packages
Post by: Gavin Andresen on January 06, 2011, 12:13:06 AM
It is also possible to use Launchpad for Mac/Windows software (e.g. this project is Win-Only: https://launchpad.net/lilregcleaner)

... but Launchpad won't build (run the compiler on one of their machines) Mac/Windows software, or did I miss that feature when I looked at the website?


Title: Re: Ubuntu bitcoin packages
Post by: davux on January 06, 2011, 01:04:36 AM
... but Launchpad won't build (run the compiler on one of their machines) Mac/Windows software, or did I miss that feature when I looked at the website?

Here's my limited knowledge about it, but please someone correct/complete this information. Ubuntu and Debian packages are built by the uploader of the package (who is not always the same person as the package maintainer, btw). I don't know about Ubuntu, but in the case of Debian, the uploader is a trusted DD (Debian Developper), who reviews at least the package-specific diff produced by the package maintainer (if not the whole source), builds the binary, signs the whole thing and uploads it. For all other architectures than those the DD has access to, binaries are automatically built by a daemon at Debian's. It's possible that the daemon also rebuilds the binary on the archs provided by the DD, but I'm not sure of that part.

I suspect Ubuntu packages to work in a similar way – I'm not sure about the specific case of PPAs, though, since they're user-provided.


Title: Re: Ubuntu bitcoin packages
Post by: David Armstrong on January 06, 2011, 08:07:00 AM
I'm still a PPA novice so my answers might not be 100% right....

Very nice!  Let me ask some dumb questions:

I've setup a launchpad PPA to host Ubuntu packages of bitcoin.

What does PPA stand for?

Does launchpad help solve the 'trusted build' problem-- e.g. does the build process automatically fetch from source code that we can all look at and audit?


It won't automatically fetch the source, but it does force me to upload the source (and an optional patch) and builds packages from those.

In this case I took the tarball from sourceforge.  The patch is minimal, just thin wrapper around the bitcoin makefile to keep the debian build system happy.

On https://launchpad.net/~stretch/+archive/bitcoin/+packages (https://launchpad.net/~stretch/+archive/bitcoin/+packages) you can poke around a bit and you'll see download links for all the various files, and on http://launchpadlibrarian.net/61656269/bitcoin_0.3.19-maverick6_source.changes (http://launchpadlibrarian.net/61656269/bitcoin_0.3.19-maverick6_source.changes) you'll be able to verify the checksums match to the original tarball.

Quote

How hard would it be to setup something similar to produce regular builds of the github integration repository?

Right now, the bitcoin build process is "Satoshi does it."  Using Launchpad to create the Linux builds seems like the right way to go.


With your own dedicated machine it would be fairly easy, just a cron job to checkout a snapshot, tar up and submit to launchpad.  We can eliminate the patch file by checking those changes back into the main source tree.

I don't know whether or not launchpad could host the cron job for us.

Quote

Last dumb question:  are there services similar to Launchpad for building Mac/Windows software?



Title: Re: Debian bitcoin packages
Post by: hacim on January 06, 2011, 04:17:57 PM
Debian packages were uploaded in december, now awaiting  ftpmaster approval:
   http://ftp-master.debian.org/new/bitcoin_0.3.19~dfsg-2.html

   It is also unofficially available using this APT line:

      deb http://debian.jones.dk/ unstable freedombox

   ...or manually downloaded here:

      http://debian.jones.dk/pkg/freedombox/bitcoin/

   ...or git cloned from here:

      git://git.debian.org/git/collab-maint/bitcoin


Title: Re: Ubuntu bitcoin packages
Post by: davout on January 06, 2011, 04:23:35 PM
It's going to be pretty nice and strengthening to have all debian geeks putting their sleepy boxes to mine :)


Title: Re: Ubuntu bitcoin packages
Post by: em3rgentOrdr on January 12, 2011, 12:12:26 AM
To install on Ubuntu:
sudo apt-add-repository ppa:stretch/bitcoin
sudo apt-get install bitcoin

Did not install on my Ubuntu 10.04 x86-64:

Quote
$ sudo apt-add-repository ppa:stretch/bitcoin
[sudo] password for user:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv CD1034FCBFA4E05DCFAD0C2A8741DDC3A4FF3776
gpg: requesting key A4FF3776 from hkp server keyserver.ubuntu.com
gpg: key A4FF3776: public key "Launchpad PPA for David Armstrong" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
$ sudo apt-get install bitcoin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
W: Duplicate sources.list entry http://ppa.launchpad.net/pmcenery/ppa/ubuntu/ lucid/main Packages (/var/lib/apt/lists/ppa.launchpad.net_pmcenery_ppa_ubuntu_dists_lucid_main_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package bitcoin


Title: Re: Ubuntu bitcoin packages
Post by: em3rgentOrdr on January 13, 2011, 01:51:35 PM
Quote
W: Duplicate sources.list entry http://ppa.launchpad.net/pmcenery/ppa/ubuntu/ lucid/main Packages (/var/lib/apt/lists/ppa.launchpad.net_pmcenery_ppa_ubuntu_dists_lucid_main_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package bitcoin

Did you read that? :P

Oops!!!  I feel like an idiot!  (But I included the error message so that a smart person like you could read it and copy and paste it for me)  :-[

You have added the PPA twice, which doesn't make any sense to apt... Edit the sources.list
sudo vim /etc/apt/sources.list

Yup!  That's exactly the problem. I just fixed my sources.list, and it installs just fine.

and remove the duplicate entry. If you don't know how to use vim, you can try nano by replacing it:
sudo nano /etc/apt/sources.list

Don't worry, I'm a vim user.  :)


Title: Re: Ubuntu bitcoin packages
Post by: ModVAVet on January 16, 2011, 08:05:44 PM
Just installed on Ubuntu 10.10 i386...  Install was quick and flawless, but bitcoin only runs for maybe 30 seconds and then disappears  :-\  Not sure what to do there...  It's not minimizing to the taskbar, either.


Title: Re: Ubuntu bitcoin packages
Post by: skull88 on January 17, 2011, 11:01:39 PM
Works flawless on Ubuntu 10.10 i386 here.


Title: Re: Ubuntu bitcoin packages
Post by: Mahkul on February 09, 2011, 06:17:44 PM
When I try to install it says:


Code:
mahkul@mahkul-Dimension-2400:~$ sudo apt-get install bitcoin                    Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package bitcoin

Is the package gone from the repository? (I succesfully added the PPA prior to installing).


Title: Re: Ubuntu bitcoin packages
Post by: I Use Dial on February 10, 2011, 10:46:12 PM
When I try to install it says:


Code:
mahkul@mahkul-Dimension-2400:~$ sudo apt-get install bitcoin                    Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package bitcoin

Is the package gone from the repository? (I succesfully added the PPA prior to installing).
I just got the exact same thing.  I'm no Linux guru, but I have a 10.04 Server that I use for really only a few things, like secure browsing while traveling, bacula, etc.  It could run bitcoin pretty much 24/7 and I wouldn't notice.  I could also run it on my FreeNAS if that were even possible.


Title: Re: Ubuntu bitcoin packages
Post by: ShadowOfHarbringer on February 13, 2011, 07:20:50 AM
Just started Ubuntu on VM and still no bitcoin in repositories after 2 years of the project activity & dynamic development.

Is somebody working on officially pushing bitcoin to central/canonical Ubuntu repos ? This could significantly increase BTC popularity.
(The same with other distros)


Title: Re: Ubuntu bitcoin packages
Post by: tuxsoul on February 14, 2011, 04:35:56 AM
I just got the exact same thing.  I'm no Linux guru, but I have a 10.04 Server that I use for really only a few things, like secure browsing while traveling, bacula, etc.  It could run bitcoin pretty much 24/7 and I wouldn't notice.  I could also run it on my FreeNAS if that were even possible.

Hi,

If you have a small server, you can check my repository to test bitcoind (not gui).
http://bitcointalk.org/index.php?topic=2207

In the next update i build for: lucid, maverick and natty.

Greetings.


Title: Re: Ubuntu bitcoin packages
Post by: tuxsoul on February 14, 2011, 05:07:16 AM
Is somebody working on officially pushing bitcoin to central/canonical Ubuntu repos ? This could significantly increase BTC popularity.
(The same with other distros)

Is not necessary, if exist an official debian package, only is necesary send a request for sync, with that, ubuntu will use the debian package.

In other way, i can send my own package to ubuntu revu.

example: bitcoin-cpuminer in ubuntu revu
http://revu.ubuntuwire.com/p/bitcoin-cpuminer

Greetings.


Title: Re: Ubuntu bitcoin packages
Post by: ShadowOfHarbringer on February 14, 2011, 10:46:23 AM
Is not necessary, if exist an official debian package, only is necesary send a request for sync, with that, ubuntu will use the debian package.

Very good idea.

Cheers.


Title: Re: Ubuntu bitcoin packages
Post by: krisgesling on April 13, 2011, 01:36:58 PM
When I try to install it says:


Code:
mahkul@mahkul-Dimension-2400:~$ sudo apt-get install bitcoin                    Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package bitcoin

Is the package gone from the repository? (I succesfully added the PPA prior to installing).

Did you run sudo apt-get update before you tried to install bitcoin?

I just installed it on 10.10 and it seems to be going fine at generating blocks, I don't however have any idea what its doing or how the system works so I'm gonna go do some reading.

Goodluck


Title: Re: Ubuntu bitcoin packages
Post by: monkeykoder on May 04, 2011, 04:26:59 PM
This does not seem to be up... 


Title: Re: Ubuntu bitcoin packages
Post by: David Armstrong on June 12, 2011, 05:45:30 PM
i can confirm that, provided instructions dont work in 11.04

I found an issue today with ubuntu 11.04 using either unity or compiz and the bitcoin GUI not working - the window simply does not appear.  There was already a workaround submitted to the wxwidgets repository so I've applied that patch to my ppa.

Please try installing the latest version from https://launchpad.net/~stretch/+archive/bitcoin and see if that works for you.

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


Title: Re: Ubuntu bitcoin packages
Post by: ghotir on August 09, 2011, 05:19:22 AM
Thanks, man.
Working great
https://i.imgur.com/XmZJKl.jpg (http://imgur.com/XmZJK)


Title: Re: Ubuntu bitcoin packages
Post by: Coinbuck @ BTCLot on August 26, 2011, 01:31:32 PM
working fine on Linux Mint 11 ;)


Title: Re: Ubuntu bitcoin packages
Post by: RodeoX on October 05, 2011, 07:04:43 PM
First of all, thanks for this.
I was able to add this PPA and install without a problem using Ubuntu 10.10. However the repository has version 0.3.24 of the client. Any plans on updating this to version 0.4.0?


Title: Re: Ubuntu bitcoin packages
Post by: px403 on October 15, 2011, 09:34:28 PM
Hey is this still active?  The version in the repos seems to be 0.3.24-beta, and 0.4.0 has been out for a while.


Title: Re: Ubuntu bitcoin packages
Post by: graingert on October 29, 2011, 06:58:44 PM
An official bitcoin PPA with version 0.5.0 is being worked on


Title: Re: Ubuntu bitcoin packages
Post by: graingert on October 31, 2011, 11:51:54 PM
A new official bitcoin ppa has been released at https://launchpad.net/~bitcoin/+archive/bitcoin

This includes the new 0.5.0 RC bitcoin-qt release.


Title: Re: Ubuntu bitcoin packages
Post by: dunand on November 01, 2011, 01:30:53 AM
Thanks graingert it installed flawlessly on 11.10. Easy to follow guide for ubuntu 11.10 :

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

Now you have a nice bitcoin-qt application in the office menu.



Title: Re: Ubuntu bitcoin packages
Post by: FatherMcGruder on December 03, 2011, 07:02:48 AM
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8842CE5E
Bitcoin-qt didn't show up in the Ubuntu Software Center until I ran that command, but I did see bitcoind. Can anyone explain why, please?


Title: Re: Ubuntu bitcoin packages
Post by: tiptopgemdotcom on May 18, 2012, 06:40:19 AM
Thanks graingert it installed flawlessly on 11.10. Easy to follow guide for ubuntu 11.10 :

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

Now you have a nice bitcoin-qt application in the office menu.



Office menu?  What does this mean?


Title: Re: Ubuntu bitcoin packages
Post by: cypherdoc on May 18, 2012, 07:44:43 AM
Thanks graingert it installed flawlessly on 11.10. Easy to follow guide for ubuntu 11.10 :

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

Now you have a nice bitcoin-qt application in the office menu.



Office menu?  What does this mean?

I just installed this yesterday.  Bitcoin shows up in the Applications menu within Office.


Title: Re: Ubuntu bitcoin packages
Post by: tiptopgemdotcom on May 18, 2012, 08:37:13 AM
Does this apply to 12.04?


Title: Re: Ubuntu bitcoin packages
Post by: cypherdoc on May 18, 2012, 02:30:45 PM
Does this apply to 12.04?

what i installed was the PPA which will automatically incl updates for Bitcoin when Ubuntu recommends upgrades.  so yes, it should.


Title: Re: Ubuntu bitcoin packages
Post by: tiptopgemdotcom on February 01, 2013, 05:10:26 PM
Just started Ubuntu on VM and still no bitcoin in repositories after 2 years of the project activity & dynamic development.

Is somebody working on officially pushing bitcoin to central/canonical Ubuntu repos ? This could significantly increase BTC popularity.
(The same with other distros)

^this


Title: Re: Ubuntu bitcoin packages
Post by: Gavin Andresen on February 07, 2013, 10:46:41 PM
I'm of the opinion that bitcoind/Bitcoin-Qt shouldn't be pushed to the central/canonical repos until we hit version 1.0.

Until then, I think we change too much too often (e.g. the blockchain format completely changed in the 0.8 release, and the wallet format will likely be changed before we hit version 1.0).


Title: Re: Ubuntu bitcoin packages
Post by: dunand on February 08, 2013, 04:44:44 AM
I'm of the opinion that bitcoind/Bitcoin-Qt shouldn't be pushed to the central/canonical repos until we hit version 1.0.

Exactly. You never get a second chance to make a first impression.


Title: Re: Ubuntu bitcoin packages
Post by: ArticMine on February 08, 2013, 05:24:03 AM
Better integration with Ubuntu Unity is needed. I find that the Bitcoin menu does not appear on the Unity top menu bar.


Title: Re: Ubuntu bitcoin packages
Post by: hugolp on February 08, 2013, 07:55:01 AM
Better integration with Ubuntu Unity is needed. I find that the Bitcoin menu does not appear on the Unity top menu bar.

Same here. Since this are packages for Ubuntu it would be expected by a normal user to behave correctcly with its default DE.


Title: Re: Ubuntu bitcoin packages
Post by: cypherdoc on February 08, 2013, 03:15:52 PM
Better integration with Ubuntu Unity is needed. I find that the Bitcoin menu does not appear on the Unity top menu bar.

Same here. Since this are packages for Ubuntu it would be expected by a normal user to behave correctcly with its default DE.

Yep.   It's an annoyance.


Title: Re: Ubuntu bitcoin packages
Post by: desper on February 27, 2013, 02:37:46 PM
I had exactly the same problem as riz experienced (see this post: https://bitcointalk.org/index.php?topic=117909.0)

When I download and install the USB using Unetbootin in windows 7, i picked 12.04 live and installed to a  USB stick giving a few gig persistence thinking that can be used for the blockchain files.

I get it installed and on first boot to USB i open a terminal and

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

The following packages have unmet dependencies:
 bitcoin-qt : Depends: libboost-filesystem1.46.1 (>= 1.46.1-1) but it is not installable
              Depends: libboost-system1.46.1 (>= 1.46.1-1) but it is not installable
              Depends: libboost-thread1.46.1 (>= 1.46.1-1) but it is not installable
E: Unable to correct problems, you have held broken packages.

I just have this feeling that it is not working with Ubuntu 12.04.2


Title: Re: Ubuntu bitcoin packages
Post by: cypherdoc on February 27, 2013, 04:41:45 PM
I had exactly the same problem as riz experienced (see this post: https://bitcointalk.org/index.php?topic=117909.0)

When I download and install the USB using Unetbootin in windows 7, i picked 12.04 live and installed to a  USB stick giving a few gig persistence thinking that can be used for the blockchain files.

I get it installed and on first boot to USB i open a terminal and

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

The following packages have unmet dependencies:
 bitcoin-qt : Depends: libboost-filesystem1.46.1 (>= 1.46.1-1) but it is not installable
              Depends: libboost-system1.46.1 (>= 1.46.1-1) but it is not installable
              Depends: libboost-thread1.46.1 (>= 1.46.1-1) but it is not installable
E: Unable to correct problems, you have held broken packages.

I just have this feeling that it is not working with Ubuntu 12.04.2

the PPA was just made available on 2/23.


Title: Re: Ubuntu bitcoin packages
Post by: jon_smark on May 05, 2013, 12:54:43 PM
Yesterday (May 4th, 2013), the packages on the PPA were updated.  After the upgrade, the Bitcoin client no longer starts, due to database incompatibility problems.  Anyone else having the same problem?


Title: Re: Ubuntu bitcoin packages
Post by: tanil on May 10, 2014, 11:21:40 PM
Yesterday (May 4th, 2013), the packages on the PPA were updated.  After the upgrade, the Bitcoin client no longer starts, due to database incompatibility problems.  Anyone else having the same problem?

Me


Title: Re: Ubuntu bitcoin packages
Post by: JamesSchofield on May 10, 2014, 11:35:13 PM
This will definately be useful , Thank you for the contribution :P