我正在尝试通过以下方式安装 boost 库libboost-all-dev
:
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 resolve the situation:
The following packages have unmet dependencies.
libboost-all-dev : Depends: libboost-date-time-dev but it is not going to be installed
Depends: libboost-filesystem-dev but it is not going to be installed
Depends: libboost-iostreams-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-regex-dev but it is not going to be installed
Depends: libboost-system-dev but it is not going to be installed
Depends: libboost-thread-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.
关于如何找到破损包裹有什么线索吗?
答案1
这更像是一种替代方案,而不是解决问题的办法。
说到 boost,我从来没用过libboost-all-dev
install。它很少起作用,而且实际上并没有安装每个 boost 库。
我建议安装synaptic
:
sudo apt-get install synaptic
并从突触中搜索“boost”,然后手动选择所有相关的boost库。