Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: HardcoreSuperstar on October 05, 2015, 08:27:30 PM



Title: [ Fixed ] Problem on Ubuntu
Post by: HardcoreSuperstar on October 05, 2015, 08:27:30 PM
I'm trying to install BItcoin-qt by the terminal, on the latest version of Ubuntu, but it doesn't install.

I see this message:



The following packages have unmet dependencies:
 bitcoin-qt : Depends: libboost-chrono1.55.0 but it is not installable
              Depends: libboost-program-options1.55.0 but it is not installable
              Depends: libboost-thread1.55.0 but it is not installable
              Depends: libqrencode3 (>= 3.2.0) but it is not installable
E: Unable to correct problems, you have held broken packages.




How can I fix it?


Title: Re: Problem on Ubuntu
Post by: achow101 on October 05, 2015, 08:39:36 PM
Use the command
Code:
sudo apt-get -f install


Title: Re: Problem on Ubuntu
Post by: coinpr0n on October 05, 2015, 09:48:20 PM
Do you only want to install from source code? There is an official Ubuntu PPA you might be able to study it to see what dependencies it installs.


Title: Re: Problem on Ubuntu
Post by: HardcoreSuperstar on October 06, 2015, 06:33:18 AM
Use the command
Code:
sudo apt-get -f install


I get the same message:


Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 bitcoin-qt : Depends: libboost-chrono1.55.0 but it is not installable
              Depends: libboost-program-options1.55.0 but it is not installable
              Depends: libboost-thread1.55.0 but it is not installable
E: Unable to correct problems, you have held broken packages.


Title: Re: Problem on Ubuntu
Post by: Bitmix.in on October 06, 2015, 02:54:05 PM
Please, explain how you are trying to install it. Source code? PPA? .tgz? I'd say you have already added Ubuntu PPA and you have run apt-get install bitcoin-qt, is this correct?
You are installing on Ubuntu 15.04, right?

I'm going to replicate your issue on a virtual machine and I will let you know how I have solved it, but I will need to know where you are and how you got there.


Title: Re: Problem on Ubuntu
Post by: HardcoreSuperstar on October 06, 2015, 07:15:51 PM
Please, explain how you are trying to install it. Source code? PPA? .tgz? I'd say you have already added Ubuntu PPA and you have run apt-get install bitcoin-qt, is this correct?
You are installing on Ubuntu 15.04, right?

I'm going to replicate your issue on a virtual machine and I will let you know how I have solved it, but I will need to know where you are and how you got there.


Thank you very much for your help! If anyone solves this problem, I'm gonna send a tip to him.


Anyway, you guessed it right.

I've already added Ubuntu PPA using this command: 
Code:
 sudo apt-add-repository -y ppa:bitcoin/bitcoin 

Then I updated Ubuntu's software package lists, using the following command:
Code:
 sudo apt-get -qq update 

And finally I tried to install bitcoin-qt using the following command:
Code:
 sudo apt-get install -y bitcoin-qt 


Then I get the message I already wrote in the previous post and it cannot install the client.
I am installing the wallet on Ubuntu 15.04, 64-bit.


Title: Re: Problem on Ubuntu
Post by: achow101 on October 06, 2015, 07:28:03 PM
Try these commands:

Code:
sudo apt-get update
Code:
sudo apt-get upgrade

And then installing

You can also try
Code:
sudo apt-get autoclean

before installing.

The last solution which should work is to install those dependencies manually.
use:
Code:
sudo apt-get install libboost-chrono1.55.0 libboost-program-options1.55.0 libboost-thread1.55.0 libqrencode3


Title: Re: Problem on Ubuntu
Post by: HardcoreSuperstar on October 06, 2015, 07:36:39 PM

The last solution which should work is to install those dependencies manually.
use:
Code:
sudo apt-get install libboost-chrono1.55.0 libboost-program-options1.55.0 libboost-thread1.55.0 libqrencode3


I've just tried to install these dependencies, but this is what I get:

Code:
Package libboost-thread1.55.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-program-options1.55.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-chrono1.55.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libboost-chrono1.55.0' has no installation candidate
E: Package 'libboost-program-options1.55.0' has no installation candidate
E: Package 'libboost-thread1.55.0' has no installation candidate


Title: Re: Problem on Ubuntu
Post by: UserVVIP on October 06, 2015, 07:43:32 PM
Get a Mac.

UBUNTU SUCKS!


Title: Re: Problem on Ubuntu
Post by: achow101 on October 06, 2015, 07:44:24 PM

The last solution which should work is to install those dependencies manually.
use:
Code:
sudo apt-get install libboost-chrono1.55.0 libboost-program-options1.55.0 libboost-thread1.55.0 libqrencode3


I've just tried to install these dependencies, but this is what I get:

Code:
Package libboost-thread1.55.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-program-options1.55.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-chrono1.55.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libboost-chrono1.55.0' has no installation candidate
E: Package 'libboost-program-options1.55.0' has no installation candidate
E: Package 'libboost-thread1.55.0' has no installation candidate

Try just
Code:
sudo apt-get install libboost-all-dev
then install bitcoinqt


Title: Re: Problem on Ubuntu
Post by: HardcoreSuperstar on October 06, 2015, 07:50:23 PM


Try just
Code:
sudo apt-get install libboost-all-dev



This is what I get after running this command:


Code:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libboost-all-dev : Depends: libboost-dev but it is not installable
                    Depends: libboost-tools-dev but it is not going to be installed
                    Depends: libboost-atomic-dev but it is not going to be installed
                    Depends: libboost-chrono-dev but it is not going to be installed
                    Depends: libboost-context-dev but it is not going to be installed
                    Depends: libboost-coroutine-dev but it is not going to be installed
                    Depends: libboost-date-time-dev but it is not installable
                    Depends: libboost-exception-dev but it is not going to be installed
                    Depends: libboost-filesystem-dev but it is not installable
                    Depends: libboost-graph-dev but it is not going to be installed
                    Depends: libboost-graph-parallel-dev but it is not going to be installed
                    Depends: libboost-iostreams-dev but it is not installable
                    Depends: libboost-locale-dev but it is not going to be installed
                    Depends: libboost-log-dev but it is not installable
                    Depends: libboost-math-dev but it is not going to be installed
                    Depends: libboost-mpi-dev but it is not going to be installed
                    Depends: libboost-mpi-python-dev but it is not going to be installed
                    Depends: libboost-program-options-dev but it is not installable
                    Depends: libboost-python-dev but it is not installable
                    Depends: libboost-random-dev but it is not going to be installed
                    Depends: libboost-regex-dev but it is not installable
                    Depends: libboost-serialization-dev but it is not installable
                    Depends: libboost-signals-dev but it is not going to be installed
                    Depends: libboost-system-dev but it is not installable
                    Depends: libboost-test-dev but it is not installable
                    Depends: libboost-thread-dev but it is not installable
                    Depends: libboost-timer-dev but it is not going to be installed
                    Depends: libboost-wave-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Title: Re: Problem on Ubuntu
Post by: achow101 on October 06, 2015, 07:55:39 PM
try doing install with aptitude instead of apt-get. Just replace all of the apt-gets with aptitude in the commands.


Title: Re: Problem on Ubuntu
Post by: HardcoreSuperstar on October 06, 2015, 08:02:32 PM
try doing install with aptitude instead of apt-get. Just replace all of the apt-gets with aptitude in the commands.


When I try to install aptitude this is what it says:

Code:
Package aptitude is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source


Title: Re: Problem on Ubuntu
Post by: achow101 on October 06, 2015, 08:06:18 PM
did you try update, upgrade, and autoclean that I suggested above?

Also try removing everything again. uninstall bitcoin-qt and libboost, just to make sure they are gone.


Title: Re: Problem on Ubuntu
Post by: HardcoreSuperstar on October 06, 2015, 08:18:17 PM
did you try update, upgrade, and autoclean that I suggested above?

Also try removing everything again. uninstall bitcoin-qt and libboost, just to make sure they are gone.


Yes, I did update, upgrade and autoclean.
I also  tried to re-install bitcoin-qt again, but  it's not working.  >:(


Title: Re: Problem on Ubuntu
Post by: achow101 on October 06, 2015, 08:21:11 PM
try doing
Code:
sudo apt-get clean

If that doesn't work try also doing
Code:
sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get -f install
(yes run the same command twice)


Title: Re: Problem on Ubuntu
Post by: HardcoreSuperstar on October 06, 2015, 08:32:10 PM
try doing
Code:
sudo apt-get clean

If that doesn't work try also doing
Code:
sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get -f install
(yes run the same command twice)


Thank you knight, but it still doesn't work.
The same message is displayed.


Title: Re: Problem on Ubuntu
Post by: achow101 on October 06, 2015, 08:38:07 PM
Thank you knight, but it still doesn't work.
The same message is displayed.
Ok...
 
Try
Code:
sudo apt-get -u dist-upgrade
And post the output of the running the command.


Title: Re: Problem on Ubuntu
Post by: tspacepilot on October 06, 2015, 08:39:18 PM
I haven't used Ubuntu in a while but debian is my normal OS, which is similar.  Anyway, it'd be helpful if you could cut-n-paste the entire terminal sessions to either a pastebin or to this forum when requesting these kinds of help.  Oftentimes, someone who's very familiar with how the system works will see a specific detail if you post the sessions rather than just saying "it's the same message".  In any case, I'd consider ditching that PPA and just building from source.  On debian I'd get the source version of that bitcoin package and then do builddep to install dependencies.  After that you just make && make install.

Let us see some sessions, please!


Title: Re: Problem on Ubuntu
Post by: Bitmix.in on October 06, 2015, 09:36:52 PM
In any case, I'd consider ditching that PPA and just building from source.  On debian I'd get the source version of that bitcoin package and then do builddep to install dependencies.  After that you just make && make install.

+1

It's not hard to compile bitcoin-qt from source. Anyway, he/she will need to have the dependencies installed as well.

Is that a clean Ubuntu installation? Have you already installed other packages in there?


Title: Re: Problem on Ubuntu
Post by: letsplayagame on October 06, 2015, 11:38:21 PM
Get a Mac.

UBUNTU SUCKS!

That was not a very helpful response.


Title: Re: Problem on Ubuntu
Post by: HardcoreSuperstar on October 07, 2015, 07:35:27 AM
Thank you knight, but it still doesn't work.
The same message is displayed.
Ok...
 
Try
Code:
sudo apt-get -u dist-upgrade
And post the output of the running the command.


Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.





Title: Re: Problem on Ubuntu
Post by: HardcoreSuperstar on October 07, 2015, 07:41:32 AM
I haven't used Ubuntu in a while but debian is my normal OS, which is similar.  Anyway, it'd be helpful if you could cut-n-paste the entire terminal sessions to either a pastebin or to this forum when requesting these kinds of help.  Oftentimes, someone who's very familiar with how the system works will see a specific detail if you post the sessions rather than just saying "it's the same message".  In any case, I'd consider ditching that PPA and just building from source.  On debian I'd get the source version of that bitcoin package and then do builddep to install dependencies.  After that you just make && make install.

Let us see some sessions, please!


Thank you for your reply.
Here is a complete terminal session: http://pastebin.com/7zeuZHHM (http://pastebin.com/7zeuZHHM)

I just followed the instructions contained in this website: http://www.distrogeeks.com/install-bitcoin-qt-ubuntu/ (http://www.distrogeeks.com/install-bitcoin-qt-ubuntu/)


Title: Re: Problem on Ubuntu
Post by: Abdussamad on October 08, 2015, 12:13:42 PM
If you can't install from source just download the binaries from bitcoin.org. They work out of the box. Just extract the tarball and run.


Title: Re: Problem on Ubuntu
Post by: tspacepilot on October 09, 2015, 06:38:33 AM
I haven't used Ubuntu in a while but debian is my normal OS, which is similar.  Anyway, it'd be helpful if you could cut-n-paste the entire terminal sessions to either a pastebin or to this forum when requesting these kinds of help.  Oftentimes, someone who's very familiar with how the system works will see a specific detail if you post the sessions rather than just saying "it's the same message".  In any case, I'd consider ditching that PPA and just building from source.  On debian I'd get the source version of that bitcoin package and then do builddep to install dependencies.  After that you just make && make install.

Let us see some sessions, please!


Thank you for your reply.
Here is a complete terminal session: http://pastebin.com/7zeuZHHM (http://pastebin.com/7zeuZHHM)

I just followed the instructions contained in this website: http://www.distrogeeks.com/install-bitcoin-qt-ubuntu/ (http://www.distrogeeks.com/install-bitcoin-qt-ubuntu/)

Yes, I did take a closer look at your session.  I've run into this problem on debian in the past and usually it's resolved by using dpkg to do the configure step by hand, as knightdk had suggested.  If I were you, I'd look more closely at *why* the packages which is says "cannot be installed" cannot be installed.   Perhaps you get that info with "apt-get install -f"?  I can't recall at the moment.


Title: Re: Problem on Ubuntu
Post by: Bitmix.in on October 09, 2015, 07:18:30 AM
I've reproduced the same steps you took in a Ubuntu 15.04 Virtual Machine.

The installation was successful and the package manager resolved the dependencies automatically.

That's why I asked: Are you using a clean Ubuntu installation? Or, on the other hand, this machine did already have Ubuntu installed along with other packages which could have caused the holding broken packages error?

Take a look at:
Official Ubuntu Documentation on broken packages: https://help.ubuntu.com/community/SynapticHowto#How_to_fix_broken_packages
http://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages
http://ubuntuforums.org/showthread.php?t=2113213


Title: Re: Problem on Ubuntu
Post by: HardcoreSuperstar on October 09, 2015, 10:44:20 AM
If you can't install from source just download the binaries from bitcoin.org. They work out of the box. Just extract the tarball and run.


Ok. I have downloaded it from bitcoin.org and then extracted the tarball. But which application do I need to run the bitcoin-qt file? I am trying with Ubuntu Software Center but I get an error message  >:(


Title: Re: Problem on Ubuntu
Post by: achow101 on October 09, 2015, 01:50:10 PM
If you can't install from source just download the binaries from bitcoin.org. They work out of the box. Just extract the tarball and run.


Ok. I have downloaded it from bitcoin.org and then extracted the tarball. But which application do I need to run the bitcoin-qt file? I am trying with Ubuntu Software Center but I get an error message  >:(
Open up a terminal in the bin folder and run the following commands
Code:
chmod +x bitcoin-qt
./bitcoin-qt
Every time you want to run bitcoin at, you need to use the second command. Don't close the terminal while the program is running.


Title: Re: Problem on Ubuntu
Post by: HardcoreSuperstar on October 09, 2015, 07:39:24 PM
If you can't install from source just download the binaries from bitcoin.org. They work out of the box. Just extract the tarball and run.


Ok. I have downloaded it from bitcoin.org and then extracted the tarball. But which application do I need to run the bitcoin-qt file? I am trying with Ubuntu Software Center but I get an error message  >:(
Open up a terminal in the bin folder and run the following commands
Code:
chmod +x bitcoin-qt
./bitcoin-qt
Every time you want to run bitcoin at, you need to use the second command. Don't close the terminal while the program is running.

Thank you very much Abdussamad and knightdk!
Now it works  ;D

I would like to make a donation to both of you to thank you for your patience and help.

Please send me a PM or reply under this post writing your addresses.
I am gonna make it as soon as possible.


Title: Re: Problem on Ubuntu
Post by: tspacepilot on October 09, 2015, 08:21:58 PM
I'm glad to see that you got it working.  In the end, you just downloaded the precompiled binaries?

If you can't install from source just download the binaries from bitcoin.org. They work out of the box. Just extract the tarball and run.


Ok. I have downloaded it from bitcoin.org and then extracted the tarball. But which application do I need to run the bitcoin-qt file? I am trying with Ubuntu Software Center but I get an error message  >:(
Open up a terminal in the bin folder and run the following commands
Code:
chmod +x bitcoin-qt
./bitcoin-qt
Every time you want to run bitcoin at, you need to use the second command. Don't close the terminal while the program is running.

Thank you very much Abdussamad and knightdk!
Now it works  ;D

I would like to make a donation to both of you to thank you for your patience and help.

Please send me a PM or reply under this post writing your addresses.
I am gonna make it as soon as possible.


Title: Re: Problem on Ubuntu
Post by: HardcoreSuperstar on October 09, 2015, 08:31:48 PM
I'm glad to see that you got it working.  In the end, you just downloaded the precompiled binaries?

If you can't install from source just download the binaries from bitcoin.org. They work out of the box. Just extract the tarball and run.


Ok. I have downloaded it from bitcoin.org and then extracted the tarball. But which application do I need to run the bitcoin-qt file? I am trying with Ubuntu Software Center but I get an error message  >:(
Open up a terminal in the bin folder and run the following commands
Code:
chmod +x bitcoin-qt
./bitcoin-qt
Every time you want to run bitcoin at, you need to use the second command. Don't close the terminal while the program is running.

Thank you very much Abdussamad and knightdk!
Now it works  ;D

I would like to make a donation to both of you to thank you for your patience and help.

Please send me a PM or reply under this post writing your addresses.
I am gonna make it as soon as possible.


Yes, I downloaded the precompiled binaries from bitcoin.org, extracted the tarball and then opened bitcoin-qt by the terminal.
The procedure described here (http://www.distrogeeks.com/install-bitcoin-qt-ubuntu/) didn't work.


Title: Re: [ Fixed ] Problem on Ubuntu
Post by: achow101 on October 09, 2015, 08:40:12 PM
You can tip me at 16mT7jrpkjnJBD7a3TM2awyxHub58H6r6Z


Title: Re: [ Fixed ] Problem on Ubuntu
Post by: HardcoreSuperstar on October 09, 2015, 08:47:29 PM
You can tip me at 16mT7jrpkjnJBD7a3TM2awyxHub58H6r6Z

Tip sent: https://blockchain.info/it/tx/e46601bf8f22bfe62714069e7ecc41afc5132388f49762e14e638d79a4942792 (https://blockchain.info/it/tx/e46601bf8f22bfe62714069e7ecc41afc5132388f49762e14e638d79a4942792)
Thank you again!


Title: Re: Problem on Ubuntu
Post by: tspacepilot on October 10, 2015, 12:04:08 AM
Yes, I downloaded the precompiled binaries from bitcoin.org, extracted the tarball and then opened bitcoin-qt by the terminal.
The procedure described here (http://www.distrogeeks.com/install-bitcoin-qt-ubuntu/) didn't work.
I wonder if that particular ppa isn't updated very often, if that's why the dependencies couldn't be installed (perhaps because newer versions are already installed on your system or something along those lines).  Anyway, I'm glad you got it figured out.


Title: Re: Problem on Ubuntu
Post by: Bitmix.in on October 10, 2015, 09:52:17 AM
I wonder if that particular ppa isn't updated very often, if that's why the dependencies couldn't be installed (perhaps because newer versions are already installed on your system or something along those lines).  Anyway, I'm glad you got it figured out.

I personally performed a clean Ubuntu 15.04 installation. Then, I replicated the same steps that HardcoreSuperstar did, and I did not have that dependencies problems.
The PPA is updated in each bitcoin-qt revision, If I'm not confused.

I would like to know if you are able to install any other package:
Try doing: apt-get install <some-package> - (for example: apt-get install build-essential)
Because this problem might not be PPA or bitcoin-qt-package related, but I misconfiguration in Ubuntu and the package manager itself.

Do this if you would like to further continue diagnosing.


Title: Re: Problem on Ubuntu
Post by: HardcoreSuperstar on October 10, 2015, 02:00:06 PM
I wonder if that particular ppa isn't updated very often, if that's why the dependencies couldn't be installed (perhaps because newer versions are already installed on your system or something along those lines).  Anyway, I'm glad you got it figured out.

I personally performed a clean Ubuntu 15.04 installation. Then, I replicated the same steps that HardcoreSuperstar did, and I did not have that dependencies problems.
The PPA is updated in each bitcoin-qt revision, If I'm not confused.

I would like to know if you are able to install any other package:
Try doing: apt-get install <some-package> - (for example: apt-get install build-essential)
Because this problem might not be PPA or bitcoin-qt-package related, but I misconfiguration in Ubuntu and the package manager itself.

Do this if you would like to further continue diagnosing.

Yes, I can install build-essential.


Title: Re: Problem on Ubuntu
Post by: achow101 on October 10, 2015, 03:31:31 PM
I wonder if that particular ppa isn't updated very often, if that's why the dependencies couldn't be installed (perhaps because newer versions are already installed on your system or something along those lines).  Anyway, I'm glad you got it figured out.

I personally performed a clean Ubuntu 15.04 installation. Then, I replicated the same steps that HardcoreSuperstar did, and I did not have that dependencies problems.
The PPA is updated in each bitcoin-qt revision, If I'm not confused.

I would like to know if you are able to install any other package:
Try doing: apt-get install <some-package> - (for example: apt-get install build-essential)
Because this problem might not be PPA or bitcoin-qt-package related, but I misconfiguration in Ubuntu and the package manager itself.

Do this if you would like to further continue diagnosing.
The problem hardcoresuperstar had is not a problem with the ppa, but a problem with his install of Ubuntu. At some point during the installation or during use, something happened that misconfigured something so that he gets all of those dependency errors.


Title: Re: Problem on Ubuntu
Post by: tspacepilot on October 12, 2015, 07:09:22 PM
The problem hardcoresuperstar had is not a problem with the ppa, but a problem with his install of Ubuntu. At some point during the installation or during use, something happened that misconfigured something so that he gets all of those dependency errors.

Right, and usually you can, if you're a glutton for punishment, drill down into those errors and find out exactly what packages are preventing each other from installing, but in this case harcoresuperstar wasn't really advanced enough to do this.  In the end, it seems to me like downloading a precompiled binary might have been a good match for this user's level of experience and pluck.


Title: Re: Problem on Ubuntu
Post by: Bitmix.in on October 12, 2015, 07:37:09 PM
In the end, it seems to me like downloading a precompiled binary might have been a good match for this user's level of experience and pluck.

When downloading a precompiled binary, it's also a good practice to perform checksums.