- 问题描述
使用apt-get安装软件包时不能正确安装,出现提示如下:
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上使用apt-get安装libgtk2.0-dev时遇到依赖问题,系统显示多个包的未满足依赖。解决方法包括启用System -> Administration -> Update Manager -> Settings -> Updates中的重要安全更新和推荐更新选项,然后运行'apt-get update'更新包列表,最后重试安装。
1272

被折叠的 条评论
为什么被折叠?



