您的位置:首页 > 其它

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)



2. 执行update操作
# apt-get update

3. 重新尝试安装
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐