I am trying to install Boost library in my ubuntu 12.04 and always getting the following error:
The following packages have unmet dependencies:
libboost-all-dev : Depends: libboost-iostreams-dev but it is not going to be installed
Depends: libboost-regex-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages
I have search for a solution to the unmet dependencies issue but nothing seems to work. Can some one help with this ?
I'm getting the above error when running sudo apt-get install libboost-all-dev command on my terminal.
Related
I have seen some questions similar to this on this website old latest.
But none of them have been answered and I am unable to comment there because I have less reputation points.
When I run sudo apt install g++ I get the following error:
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:
g++ : Depends: gcc (= 4:9.3.0-1ubuntu2) but it is not going to be installed
Depends: g++-9 (>= 9.3.0-3~) but it is not going to be installed
Depends: gcc-9 (>= 9.3.0-3~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
When I run sudo apt install build-essential
I get the following error:
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:
build-essential : Depends: gcc (>= 4:9.2) but it is not going to be installed
Depends: g++ (>= 4:9.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I need to install g++ in ubuntu20.04.
Thanks for the help!
I found a work around by installing aptitude first.
I followed the following steps:
sudo apt-get install aptitude
Then aptitude gives a list of packages (none of which were installed)
and asks to keep those packages in the same version. Choose No (n).
Then aptitude asks to downgrade some packages. Choose Yes (Y).
Finally run the command: sudo aptitude install build-essential
After running the above command g++ was already install and I didn't need to separately install it.\
I am trying to install gdb-multiarch on ubuntu 18.04. When I use sudo apt-get install gdb-multiarch, I am getting following error.
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:
gdb-multiarch : Depends: gdb (= 8.1-0ubuntu3.2) but it is not going to be installed
Depends: libpython3.6 (>= 3.6.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I couldn't find a way to install above dependencies.
It's probably caused by an installation of a version of python that wasn't included with your Ubuntu install so your package manager is confused about what to do.
This worked for me:
https://askubuntu.com/questions/1061762/ubuntu-18-04-cant-upgrade-because-of-libpython3-6-version-conflicts
I am trying to install Qt for cross compiling on the Raspberry Pi. I am following the instructions from the Qt Wiki.
I have a fresh install of Raspbian Jessie on a new Raspberry Pi 3 Model B.
My issue is on step 3 of the above linked wiki page: sudo apt-get build-dep libqt5gui5
pi#raspberrypi:~ $ sudo apt-get build-dep libqt5gui5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Picking 'qtbase-opensource-src' as source package instead of 'libqt5gui5'
The following packages have unmet dependencies:
libgles2-mesa-dev : Depends: libegl1-mesa-dev but it is not going to be installed
libopenvg1-mesa-dev : Depends: libegl1-mesa-dev but it is not going to be installed
E: Build-dependencies for libqt5gui5 could not be satisfied.
I have tried manually installing those dependencies, but run into more of the same issue with other dependencies.
I guess you can replace:
sudo apt-get build-dep qt4-x11 libqt5gui5
by:
apt-get build-dep -y qt4-x11 qtbase-opensource-src
This is how we do in our open-source project: QtRpi to setup the Raspberry Pi sysroot for a Qt cross-compilation.
Check also the project itseft, it "offers an easy-to-use environment to cross-compile Qt application on a Raspberry Pi. This repo contains all the scripts needed to prepare a sysroot, cross-compile Qt and deploy Qt libraries to your Raspberry." Maybe it could be useful for you. More information on the official website: www.qtrpi.com
I installed boost library in my ubuntu 12.04 machine using the following command:
sudo apt-get install libboost-all-dev
But when I checked /usr/include/boost, I don't see header files for multiprecision package (cpp_dec_float.hpp). Do I need to install it separately?
Boost.Multiprecission is present in Boost 1.53 onwards.
http://www.boost.org/doc/libs/1_53_0/libs/multiprecision/doc/html/boost_multiprecision/map/hist.html
If you install libboost-all-dev metapackage from precise repository by dependncy you get libboost-dev and by dependncy you also get libboost1.46-dev which is unfortunately too old.
http://packages.ubuntu.com/precise/libboost-all-dev
http://packages.ubuntu.com/precise/libboost-dev
http://packages.ubuntu.com/precise/libboost1.46-dev
You might try your luck with some PPA repository.
E. g. this one:
https://launchpad.net/~apokluda/+archive/ubuntu/boost1.53
and install the package following this tutorial.
https://charmie11.wordpress.com/2013/10/27/install-boost-1-53-on-ubuntu-by-package-manager/
How to remove the dependency, because it works fine with python2.7 and I don't want python 2.6
I get the following,
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libapache2-mod-wsgi : Depends: libpython2.6 (>= 2.6) but it is not installed
E: Unmet dependencies. Try using -f.
When trying to correct :
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libpython2.6 python2.6 python2.6-minimal
Suggested packages:
python2.6-doc binfmt-support
The following NEW packages will be installed:
libpython2.6 python2.6 python2.6-minimal
0 upgraded, 3 newly installed, 0 to remove and 105 not upgraded.
Need to get 3415 kB/4824 kB of archives.
After this operation, 15.1 MB of additional disk space will be used.
Do you want to continue [Y/n]?
I can't install anything because of these, how can I remove the dependency because its working fine without python 2.6 and raspberry pi comes with python 2.7 as default
Edit :
Question, if I install python 2.6, will python 2.7 co-exist on the raspberry pi?
apt-get download libapache2-mod-wsgi
sudo dpkg -i --ignore-depends=libpython2.6,python2.6,python2.6-minimal libapache2-mod-wsgi_2.whatever.deb