当我运行sudo apt-get install libboost-all-dev
时,我收到此错误,这似乎很常见。
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:
libboost-all-dev : 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-exception-dev but it is not going to be installed
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-locale-dev but it is not going to be installed
Depends: libboost-log-dev but it is not going to be installed
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-random-dev but it is not going to be installed
Depends: libboost-signals-dev but it is not going to be installed
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.
在深入挖掘并尝试单独安装依赖项后,我首先尝试sudo apt-get install libboost-context-dev
,这促使我安装libboost-context1.54-dev
,这会导致错误
libboost-context1.54-dev : Depends: libboost1.54-dev (= 1.54.0-4ubuntu3) but 1.54.0-4ubuntu3.1 is to be installed
在我看来,依赖项要求的版本与我的系统上的apt-get版本不同,但我不确定这里发生了什么。
可能重复:Dependency failure while installing libboost-all-dev on ubuntu core 14.04