Author

Topic: Why does "sudo apt install bitcoind deborphan" install 0.15.1 instead of 0.17.1 (Read 280 times)

legendary
Activity: 1624
Merit: 2481
Personally i prefer use dpkg -i package_name.deb command or simply run an application with syntax ./bitcoin-0.17.1/bin/bitcoin-qt.

Which definitely is the better way, but i would stick with 1 package manager.

If you have a .deb-file (which is not the case here, but still) you should install it using:
Code:
sudo apt-get install ./package_name.deb                              #Example for when in the same directory

This makes it later easier for you to find / uninstall those packages, compared to using apt-get for the repository and dpkg for manually downloaded packages.
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
Wouldn't Ubuntu Mate 16.04.2 connect to the same repository as Ubuntu Mate 18.04.2 anyway?

I don't know what i said apply to flavored/modified Ubuntu, but AFAIK :
1. it connects to same repository, but
2. Each Ubuntu version/release got different application version
3. LTS version prefer compatibility and stability. After few years, you won't able to get latest version of application.

If you want get latest version of all application, you must use newest version and update your Ubuntu regularly.

For the sake of learning, how should I have entered
Code:
sudo install -m 0755 -o root -g root -t /usr/bin ~/.bitcoin/bitcoin-0.17.1/bin/*
minus the root priledges?
Practically, what risks did doing this introduce? (Given that the Raspberry Pi and 1tb drive are single-purpose, meaning if all the data on micro sd card and 1tb drive were damaged, nothing irreplaceable would be lost.)


I rarely use install command, but AFAIK for install/modify application, you need sudoers ability.
I don't know about possible risks (besides you install malicious application to root user), but if you wary about it, you should install it to user/group who don't have sudoers privilege.

Personally i prefer use dpkg -i package_name.deb command or simply run an application with syntax ./bitcoin-0.17.1/bin/bitcoin-qt.
legendary
Activity: 1624
Merit: 2481
For the sake of learning, how should I have entered
Code:
sudo install -m 0755 -o root -g root -t /usr/bin ~/.bitcoin/bitcoin-0.17.1/bin/*
minus the root priledges?
Practically, what risks did doing this introduce? (Given that the Raspberry Pi and 1tb drive are single-purpose, meaning if all the data on micro sd card and 1tb drive were damaged, nothing irreplaceable would be lost.)

You should always try to run software with the lowest possible privileges.

Not just because an exploit in this software would give an theoretical attacker instantly root privileges, but also because bugs can lead to misbehavior.
And it is better to have misbehavior happen with standard user privileges, than with root privileges.

In fact, if you wan't to keep your node running 24/7 and maybe use it as an node for your other wallets, it would be better to create a new user just for running bitcoin core.


Also, you don't have to 'install' it anymore.
You can simply run the binary already. Or - for convenience - move/copy it into /usr/local/bin.
There is no good reason to set root as the owner/group.
member
Activity: 131
Merit: 29
I know that a few days ago I put Ubuntu Mate 16.04.2 on the micro SD card (nothing else), followed the instructions on https://www.weusecoins.com/full-bitcoin-node-on-a-raspberry-pi-3-with-or-without-a-pidrive/, used my external 1tb drive for the blockchain (which had a copy only two months old to update) and somehow I ended up with bitcoin core 0.15.1.
The blockchain on the 1tb drive was updated with 0.17.1 for what it's worth.

Wouldn't Ubuntu Mate 16.04.2 connect to the same repository as Ubuntu Mate 18.04.2 anyway?

As instructed on the weusecoins page, I removed the Ubuntu GUI.

For the sake of learning, how should I have entered
Code:
sudo install -m 0755 -o root -g root -t /usr/bin ~/.bitcoin/bitcoin-0.17.1/bin/*
minus the root priledges?
Practically, what risks did doing this introduce? (Given that the Raspberry Pi and 1tb drive are single-purpose, meaning if all the data on micro sd card and 1tb drive were damaged, nothing irreplaceable would be lost.)
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
Hi ETFbitcoin, I ran those 3 commands and ended up with 0.15.1 again.

Looks like Ubuntu Mate need to update their Bitcoin Core image??

As bob123 mentioned, their repository is updated, except for precise (Ubuntu 12.04) and artful (Ubuntu 17.10), where as your Ubuntu version is 16.04 (with codename xenial).

Few possibility :
1. Something when wrong when you execute command sudo-apt update which make Ubuntu there's no update.
2. You've added another repository which also serve Bitcoin Core, but have older version which causes conflict.



Looks like Ubuntu Mate need to update their Bitcoin Core image??

For package/application which comes from 3rd party repository, the one who should update it are repistory's owner manger, not Ubuntu developer or Canonical.
legendary
Activity: 1624
Merit: 2481
Hi ETFbitcoin, I ran those 3 commands and ended up with 0.15.1 again.

That's not possible. You might have made a mistake.

This repository is up-to-date with 0.17.1: https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin



Code:
sudo install -m 0755 -o root -g root -t /usr/bin ~/.bitcoin/bitcoin-0.17.1/bin/*

It is definitely discouraged to install for root.
You don't need root privileges to start core and in fact, you should not do so with root!

What you are downloading (as an archive) are arleady the binaries.
You can already run it, or copy them into /usr/local/bin:
Code:
cp /path/to/bitcoin-qt /usr/local/bin/.

Afterwards you can start core, simply by typing bitcoin-qt into the command line.



member
Activity: 131
Merit: 29
Hi ETFbitcoin, I ran those 3 commands and ended up with 0.15.1 again.
These are similar to the instructions I followed to get this going originally: https://www.weusecoins.com/full-bitcoin-node-on-a-raspberry-pi-3-with-or-without-a-pidrive/#download

Hi Foxpup, I had trouble booting ubuntu-mate-18.04.2-beta1-desktop-armhf+raspi-ext4.img so I tried ubuntu-mate-16.04.2-desktop-armhf-raspberry-pi.img which worked, so that's what I'm using.

Looks like Ubuntu Mate need to update their Bitcoin Core image??

I managed to download the latest version, extract it and run it.

Cheers

For other linux novices:

- Downloaded the 32 bit version, but it didn't work. This must be because the version of Ubuntu Mate that I'm using is a 32 bit version. (I'm using Ubuntu Mate 16.04.2).
- Downloaded the latest 32-bit ARM version of bitcoin core:
Code:
wget https://bitcoin.org/bin/bitcoin-core-0.17.1/bitcoin-0.17.1-arm-linux-gnueabihf.tar.gz
- Extracted it:
Code:
tar xzf bitcoin-0.17.1-arm-linux-gnueabihf.tar.gz
- Installed it:
Code:
sudo install -m 0755 -o root -g root -t /usr/bin ~/.bitcoin/bitcoin-0.17.1/bin/*
(Don't forget the forward slash before the asterisk, otherwise it will report an error saying cannot stat '/home/yourusername/.bitcoin/bitcoin-0.17.1/bin2*': No such file or directory)
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
Most linux Distro don't include Bitcoin Core or have outdated version on their repository. What you should do are :
1. If you use Ubuntu, you can check this guide https://bitcoin.org/en/full-node#ubuntu-1604. Basically it will ask you to :

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

2. Download latest version from https://bitcoin.org/en/download, extract and run it



As for history of total running nodes, you can check :
https://bitnodes.earn.com/dashboard
https://gitlab.com/Luke-Jr/my-bitcoin-dnsseed-historical-seeds.txt
legendary
Activity: 4542
Merit: 3393
Vile Vixen and Miss Bitcointalk 2021-2023
Because your (unspecified) distro's repository is evidently out of date. Which Linux distro are you using? Are you using the latest version of it?
member
Activity: 131
Merit: 29
Hi all

I installed bitcoin core on my raspberry pi 3 using "sudo apt install bitcoind deborphan" and I don't know why it hasn't ended up with the latest version.

Looks like I'm aiding inflation risk (even if a speck of sand worth so)
https://coin.dance/nodes (under "Inflation Protection")

I'm still surprised there's less than 10,000 full nodes in action, and only ~3500 with the latst rev.
If I was nonethewiser I would've guessed a few million. Same with TOR exit nodes; I saw there's only about 1000.

Anyone know how it ended up installing 15.1 instead of 17.1?

--

Also, out of interest, I wonder how many nodes have been running for longer than a week, month, year? And why they do so?
Then again, whenever I download a torrent it seems I hardly even get the chance to upload the amount I downloaded..
Jump to: