Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/136.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 无法在Ubuntu 12.04中安装Boost库_C++_Ubuntu_Boost_Ubuntu 12.04 - Fatal编程技术网

C++ 无法在Ubuntu 12.04中安装Boost库

C++ 无法在Ubuntu 12.04中安装Boost库,c++,ubuntu,boost,ubuntu-12.04,C++,Ubuntu,Boost,Ubuntu 12.04,我试图在我的ubuntu 12.04中安装Boost库,但总是出现以下错误: 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 i

我试图在我的ubuntu 12.04中安装Boost库,但总是出现以下错误:

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
我一直在寻找
未满足依赖项问题的解决方案,但似乎没有任何效果。有人能帮忙吗


在我的终端上运行sudo apt get install libboost all dev
命令时,出现上述错误

运行
sudo-apt-get-update
是否会更改
sudo-apt-get-install-libboost-all-dev
的输出?另外,在运行
sudo-apt-get-update
之后,
sudo-aptitude-install-libboost-all-dev
的输出是什么?@billynch-run-aptitude-install确实为我提供了一种解决问题的方法。谢谢,它建议我降低一个软件包的级别,然后,libboost-all-dev的安装运行良好。谢谢