Ubuntu包安装问题(E: Broken packages)[2014-01-03更新]
2014-01-03 17:14
405 查看
- 问题描述
使用apt-get安装软件包时不能正确安装,出现提示如下:
# apt-get install libgtk2.0-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:
libgtk2.0-dev: Depends: libgtk2.0-0 (= 2.20.0-0ubuntu4) but 2.20.1-0ubuntu2.1 is to be installed
Depends: libglib2.0-dev (>= 2.21.3) but it is not going to be installed
Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed
Depends: libatk1.0-dev (>= 1.13.0) but it is not going to be installed
Depends: libcairo2-dev (>= 1.6.4-6.1) but it is not going to be installed
Depends: libx11-dev (>= 2:1.0.0-6) but it is not going to be installed
Depends: libxext-dev (>= 1:1.0.1-2) but it is not going to be installed
Depends: libxinerama-dev (>= 1:1.0.1-4.1) but it is not going to be installed
Depends: libxi-dev (>= 1:1.0.1-4) but it is not going to be installed
Depends: libxrandr-dev (>= 1:1.2.99) but it is not going to be installed
Depends: libxcursor-dev but it is not going to be installed
Depends: libxfixes-dev (>= 1:3.0.0-3) but it is not going to be installed
Depends: libxcomposite-dev (>= 1:0.2.0-3) but it is not going to be installed
Depends: libxdamage-dev (>= 1:1.0.1-3) but it is not going to be installed
E: Broken packages
- 解决方法
1. 启用相关更新选项
在 System --> Administration --> Update Manager --> Settings --> Updates 中勾选(如下图所示):
Important security updates (lucid-security)
Recommended updates (lucid-updates)
![](https://img-blog.csdn.net/20140103171333562?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveGJfbWE=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
2. 执行update操作
# apt-get update
3. 重新尝试安装
使用apt-get安装软件包时不能正确安装,出现提示如下:
# apt-get install libgtk2.0-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:
libgtk2.0-dev: Depends: libgtk2.0-0 (= 2.20.0-0ubuntu4) but 2.20.1-0ubuntu2.1 is to be installed
Depends: libglib2.0-dev (>= 2.21.3) but it is not going to be installed
Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed
Depends: libatk1.0-dev (>= 1.13.0) but it is not going to be installed
Depends: libcairo2-dev (>= 1.6.4-6.1) but it is not going to be installed
Depends: libx11-dev (>= 2:1.0.0-6) but it is not going to be installed
Depends: libxext-dev (>= 1:1.0.1-2) but it is not going to be installed
Depends: libxinerama-dev (>= 1:1.0.1-4.1) but it is not going to be installed
Depends: libxi-dev (>= 1:1.0.1-4) but it is not going to be installed
Depends: libxrandr-dev (>= 1:1.2.99) but it is not going to be installed
Depends: libxcursor-dev but it is not going to be installed
Depends: libxfixes-dev (>= 1:3.0.0-3) but it is not going to be installed
Depends: libxcomposite-dev (>= 1:0.2.0-3) but it is not going to be installed
Depends: libxdamage-dev (>= 1:1.0.1-3) but it is not going to be installed
E: Broken packages
- 解决方法
1. 启用相关更新选项
在 System --> Administration --> Update Manager --> Settings --> Updates 中勾选(如下图所示):
Important security updates (lucid-security)
Recommended updates (lucid-updates)
2. 执行update操作
# apt-get update
3. 重新尝试安装
相关文章推荐
- ubuntu 12.04 安装 boost 失败,have unmet dependencies,held broken packages 问题
- ubuntu安装/更新cudnn版本遇到的问题
- Ubuntu更新包管理器失败:Requires installation of untrusted packages问题解决
- Vmware Tools安装之Ubuntu7.10问题解决--持续更新中
- 安装Ubuntu之后默认英文,选简体中文,正常来说这样装好就应该能用的,可是这个时候又出现了错误,說:broken package database. 请用apt-get install -f解决问题
- Ubuntu下安装Android Studio,并解决更新时出现的问题
- Ubuntu13.04 更新软件源 (解决安装时找不到软件包的问题)
- 修复Ubuntu在更新时‘Requires installation of untrusted packages’ 问题
- ubuntu 安装过程中相关问题<不断更新>
- ubuntu 安装升级更新中的小问题
- Ubuntu下软件更新无法安装的问题
- Ubuntu安装显卡驱动常见问题(持续更新~)
- Ubuntu (安装问题,包括系统更新和软件安装)
- ubuntu 9.1 安装遇到的问题 笔记-更新11.2
- Android SDK更新过程中出现connection refused 或者 error问题(Windows 和Ubuntu安装过程中的问题)
- 【Linux】虚拟机安装 ubuntu 后,更新源无效,以及无法联网安装软件的问题
- 【Linux】虚拟机安装 ubuntu 后,更新源无效,以及无法联网安装软件的问题
- Ubuntu安装更新错误:requires installation of untrusted packages
- Ubuntu安装问题说明、软件源更新配置及root用户密码的设置
- ubuntu 安装软件 更新出现错误:Requires Installation of Untrusted Packages