ubuntu 12.04 安装 boost 失败,have unmet dependencies,held broken packages 问题
2013-11-18 14:13
585 查看
1. 问题
2. 解决方法
3. aptitude vs apt-get
http://askubuntu.com/questions/1743/is-aptitude-still-considered-superior-to-apt-get
参考:
http://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages
http://superuser.com/questions/428033/why-use-the-command-apt-get-purge-remove-over-apt-get-purge-in-linux
http://www.linuxquestions.org/questions/ubuntu-63/how-to-fix-broken-package-904637/
之后在装 vim-gnome 时,又碰到 have unmet dependencies,held broken packages 问题。用 aptitude 装则选项太多,不是很有把握。以前 apt-get 也没碰到这么多 broken packages 的问题阿,干脆怀疑是不是系统出了啥问题?是不是之前装 ark(使用kde)时装的kde依赖与gnome有版本冲突。
于是卸了 ark 和 kde 依赖,最后还是不行。于是想查是不是有 broken package,但 dpkg --get-selections | grep hold 并没有输出。我又怀疑这个工具是不是不能较好的显示 broken package,于是又装了 synaptic 包管理,结果里面依然没有 broken package。
用 sudo apt-get update 时会出现,Failed to fetch http://ppa.launchpad.net/shawn-p-huang/ppa/ubuntu/dists/precise/main/source/Sources 404 Not Found 的 error,于是在 /etc/apt/sources.list.d 目录里删掉这些ppa,再 update 成功,再装 vim-gnome 还是失败。
最后想是不是默认源有问题,索性换成 163 的源,再 update,再装,就成功了。
$ 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-iostreams-dev but it is not going to be installed Depends: libboost-python-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.
2. 解决方法
查看 hold packages $ dpkg --get-selections | grep hold 如果没有,使用 aptitude 安装 $ sudo apt-get install aptitude $ sudo aptitude install libboost-all-dev
3. aptitude vs apt-get
http://askubuntu.com/questions/1743/is-aptitude-still-considered-superior-to-apt-get
参考:
http://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages
http://superuser.com/questions/428033/why-use-the-command-apt-get-purge-remove-over-apt-get-purge-in-linux
http://www.linuxquestions.org/questions/ubuntu-63/how-to-fix-broken-package-904637/
之后在装 vim-gnome 时,又碰到 have unmet dependencies,held broken packages 问题。用 aptitude 装则选项太多,不是很有把握。以前 apt-get 也没碰到这么多 broken packages 的问题阿,干脆怀疑是不是系统出了啥问题?是不是之前装 ark(使用kde)时装的kde依赖与gnome有版本冲突。
于是卸了 ark 和 kde 依赖,最后还是不行。于是想查是不是有 broken package,但 dpkg --get-selections | grep hold 并没有输出。我又怀疑这个工具是不是不能较好的显示 broken package,于是又装了 synaptic 包管理,结果里面依然没有 broken package。
用 sudo apt-get update 时会出现,Failed to fetch http://ppa.launchpad.net/shawn-p-huang/ppa/ubuntu/dists/precise/main/source/Sources 404 Not Found 的 error,于是在 /etc/apt/sources.list.d 目录里删掉这些ppa,再 update 成功,再装 vim-gnome 还是失败。
最后想是不是默认源有问题,索性换成 163 的源,再 update,再装,就成功了。
相关文章推荐
- ubuntu 安装openssh-server和openssh-client时呈现错误:The following packages have unmet dependencies: openssh
- ubuntu_install问题:The following packages have unmet dependencies:
- ROS安装时packages have unmet dependencies问题
- 解决UbuntuServer1.14.10安装build-essential等软件依赖libc6报错“The following packages have unmet dependencies” |
- ubuntu安装fcitx失败Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)
- 关于ubuntu 更换成国内源之后,apt-get 出现The following packages have unmet dependencies:的解决方法
- 安装apache Unable to correct problems, you have held broken packages
- 解决 E: Unable to correct problems, you have held broken packages. 问题
- Ubuntu--Unable to correct problems, you have held broken packages解决
- Ubuntu 包依赖损坏:The following packages have unmet dependencies
- Ubuntu包安装问题(E: Broken packages)[2014-01-03更新]
- 问题之~The following packages have unmet dependencies: openssh
- Ubuntu 12.04关于libgl1-mesa-glx:i386安装的问题
- Ubuntu 12.04 下安装ssh 服务遇到的问题以及总结
- vbox 安装增强功能失败,连不上cn.archive.ubuntu.com的问题
- ubuntu 12.04 安装 openssh-server 失败,请问怎么该弄?
- Ubuntu 12.04 安装之后的各种问题
- Ubuntu 12.04(32位)安装Oracle 11g(32位)全过程以及几乎所有问题的解决办法
- 关于ubuntu无法开机问题,显示安装错误 ubuntu install problem the configuration defaults for gnome power manager have
- Ubuntu 12.04 下安装ssh 服务遇到的问题以及总结