简体   繁体   English

无法安装Boost Ubuntu 13.10

[英]Unable to install boost ubuntu 13.10

I'm trying to install boost onto my 32 bit Ubuntu 13.10 system. 我正在尝试在我的32位Ubuntu 13.10系统上安装boost。 However, when I run: 但是,当我运行时:

sudo apt-get install libboost-all-dev

I get: 我得到:

The following packages have unmet dependencies.
libboost-all-dev : Depends: libboost-graph-parallel-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
E: Unable to correct problems, you have held broken packages.

To try to get around this, I've done: 为了解决这个问题,我已经完成了:

sudo apt-get remove --purge libboost-all-dev

But it always comes back with 但它总是回来

Package 'libboost-all-dev' is not installed, so not removed
The following packages were automatically installed and are no longer required:
binutils-dev cmake cmake-data comerr-dev expect grive krb5-multidev
libboost-filesystem-dev libboost-program-options-dev libboost-test-dev
libcurl4-openssl-dev libexpat1-dev libgcrypt11-dev libgnutls-dev
libgnutlsxx27 libgpg-error-dev libgssrpc4 libidn11-dev libjson-c-dev
libjson0-dev libkadm5clnt-mit8 libkadm5srv-mit8 libkdb5-6 libkrb5-dev
libldap2-dev libp11-kit-dev librtmp-dev libssl-dev libssl-doc libtasn1-3-dev
libyajl-dev

With nothing changed. 没有任何改变。

Any ideas? 有任何想法吗?

At first remove the broken packages with, 首先,用

$>sudo apt-get install -f
$>sudo dpkg --configure -a
$>sudo apt-get --fix-broken install
$>sudo apt-get --fix-missing install
$>sudo apt-get clean
$>sudo apt-get autoclean
$>sudo apt-get autoremove

Then upgrade/update the package base, 然后升级/更新软件包库,

$>sudo apt-get update
$>sudo apt-get upgrade 

Then, 然后,

$>sudo apt-get install libboost-all-dev

If the error persists still, then 如果错误仍然存​​在,则

$> sudo apt-get install <here goes the dependent pkg, in your case here, 'libboost-graph-parallel-dev' etc.>

This should work probably fine. 这可能工作正常。 If still you get an error of broken packages, you have to check for the 如果仍然收到包装破损的错误,则必须检查

/var/lib/dpkg/status / var / lib / dpkg / status

file & check for the package which is broken, then remove it. 文件并检查包装是否损坏,然后将其删除。

For more details, check out here . 有关更多详细信息,请在此处查看

None of that really worked. 这些都没有真正起作用。
What did work was installing symantec package manager and manually going through and removing the corrupted packages. 所做的工作是安装symantec软件包管理器,然后手动执行并删除损坏的软件包。

Once all the broken packages were removed, installation worked as expected. 删除所有损坏的软件包后,安装将按预期进行。
Thanks for your help though. 谢谢您的帮助。

I had the same problem and I found the answer for my case. 我遇到了同样的问题,并且找到了解决我问题的答案。 Just run followings 只需运行以下内容

$ sudo apt-get remove libboost1.55-all-dev
$ sudo apt-get autoremove

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM