依赖失败,而在Ubuntu 14.04的核心安装libboost

编程入门 行业动态 更新时间:2024-10-24 14:20:24
本文介绍了依赖失败,而在Ubuntu 14.04的核心安装libboost-ALL-dev的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否有人知道为什么我收到后,下面的命令和apt-get安装libboost-ALL-dev的

Does someone know why I get the following after "sudo apt-get install libboost-all-dev":

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.

我能做些什么来改变它呢?

What can I do to change it?

推荐答案

我刚刚遇到完全相同的包装问题,但它是一个经常出现的问题。我的问题解决了使用下面的方法(安装libboost-ALL-DEV)。这是一个有点乏味,但工作在约5〜10分钟(根据依赖关系的数量)的罚款。事实上,你几乎所有的方式完成的解决方案。

I have just encountered the problem with the exact same package but it is a recurrent problem. I have solved the problem (installing libboost-all-dev) using the following methodology. It is a bit tedious but works fine in around 5 to 10 minutes (depending on the number of dependencies). In fact, you had almost done all the way to the solution.

有关在未满足的依赖关系列表中的每个包,你必须遵循的依赖,直到你找到它不能安装,因为它可在另一个更近的包的包。然后,您使用=用apt-get的签名迫使其安装在降级版本。例如你的情况:apt-get的安装libboost1.54-dev的= 1.54.0-4ubuntu3

For each package in your list of unmet dependencies, you have to follow the dependency until you find the package which can not be installed because it has another more recent package available. Then you force its installation in a downgraded version using the = sign with apt-get. For example in your case: apt-get install libboost1.54-dev=1.54.0-4ubuntu3

一旦你完成了所有的依赖,你就可以安装你的主包(libboost-ALL-DEV)。

Once you have done all dependencies, you will be able to install your primary package (libboost-all-dev).

我不知道是否有一个更好的(更快)的方式来做到这一点。

I do not know if there is a better (faster) way to do it.

更多推荐

依赖失败,而在Ubuntu 14.04的核心安装libboost

本文发布于:2023-11-05 05:04:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1559981.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:而在   核心   Ubuntu   libboost

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!