安装QT时的brocken包 [英] brocken package while installing QT

查看:56
本文介绍了安装QT时的brocken包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下问题:

解压qt-everywhere-opensource-src-4.8.5后,当我配置它时,我收到以下消息:



基本XLib功能测试失败!

您可能需要通过在/ home /中编辑

QMAKE_INCDIR_X11和QMAKE_LIBDIR_X11来修改包含和库搜索路径***** / Downloads / qt-everywhere-opensource-src-4.8.5 / mkspecs / linux -g ++。



然后我尝试安装qt依赖项,我得到了:



~ $ sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev



阅读包列表...完成

建立依赖关系树

阅读状态信息...完成

无法安装某些软件包。这可能意味着你要求b $ b b请求一个不可能的情况,或者如果你使用的是不稳定的

发行版,那么某些必需的套餐尚未创建

或被移出Incoming。

以下信息可能有助于解决问题:



以下软件包具有未满足的依赖关系:

libfontconfig1-dev:取决于:libfontconfig1(= 2.8.0-3ubuntu9)但是要安装2.8.0-3ubuntu9.1

取决于:libexpat1-dev但它是不会安装

libfreetype6-dev:取决于:libfreetype6(= 2.4.8-1ubuntu2)但是要安装2.4.8-1ubuntu2.1

libx11- dev:取决于:libx11-6(= 2:1.4.99.1-0ubuntu2)但是2:1.4.99.1-0ubuntu2.1将被安装

取决于:libxcb1-dev但它不会安装

推荐:libx11-doc但不会安装

libxcursor-dev:Depe nds:libxcursor1(= 1:1.1.12-1)但是要安装1:1.1.12-1ubuntu0.1

libxext-dev:取决于:libxext6(= 2:1.3.0- 3build1)但是2:1.3.0-3ubuntu0.1将被安装

libxfixes-dev:取决于:libxfixes3(= 1:5.0-4ubuntu4)但是1:5.0-4ubuntu4.1是安装

libxi-dev:取决于:libxi6(= 2:1.6.0-0ubuntu2)但是要安装2:1.6.0-0ubuntu2.1

libxrandr- dev:取决于:libxrandr2(= 2:1.3.2-2)但是要安装2:1.3.2-2ubuntu0.2

libxrender-dev:取决于:libxrender1(= 1:0.9。 6-2build1)但是1:0.9.6-2ubuntu0.1将被安装

E:无法纠正问题,你已经破了包裹。



如何解决?

感谢您的帮助。

I have the following prolem:
After extracting qt-everywhere-opensource-src-4.8.5, when I configured it, I got the following message:

Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/*****/Downloads/qt-everywhere-opensource-src-4.8.5/mkspecs/linux-g++.

Then I tried to install qt dependencies, I got:

~$ sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-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:
libfontconfig1-dev : Depends: libfontconfig1 (= 2.8.0-3ubuntu9) but 2.8.0-3ubuntu9.1 is to be installed
Depends: libexpat1-dev but it is not going to be installed
libfreetype6-dev : Depends: libfreetype6 (= 2.4.8-1ubuntu2) but 2.4.8-1ubuntu2.1 is to be installed
libx11-dev : Depends: libx11-6 (= 2:1.4.99.1-0ubuntu2) but 2:1.4.99.1-0ubuntu2.1 is to be installed
Depends: libxcb1-dev but it is not going to be installed
Recommends: libx11-doc but it is not going to be installed
libxcursor-dev : Depends: libxcursor1 (= 1:1.1.12-1) but 1:1.1.12-1ubuntu0.1 is to be installed
libxext-dev : Depends: libxext6 (= 2:1.3.0-3build1) but 2:1.3.0-3ubuntu0.1 is to be installed
libxfixes-dev : Depends: libxfixes3 (= 1:5.0-4ubuntu4) but 1:5.0-4ubuntu4.1 is to be installed
libxi-dev : Depends: libxi6 (= 2:1.6.0-0ubuntu2) but 2:1.6.0-0ubuntu2.1 is to be installed
libxrandr-dev : Depends: libxrandr2 (= 2:1.3.2-2) but 2:1.3.2-2ubuntu0.2 is to be installed
libxrender-dev : Depends: libxrender1 (= 1:0.9.6-2build1) but 1:0.9.6-2ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages.

How can I solve it?
Thanks for your help.

推荐答案

sudo apt-get install libfontconfig1-dev libfreetype6 -dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev



阅读pac kage列表...完成

构建依赖树

读取状态信息...完成

无法安装某些软件包。这可能意味着你要求b $ b b请求一个不可能的情况,或者如果你使用的是不稳定的

发行版,那么某些必需的套餐尚未创建

或被移出Incoming。

以下信息可能有助于解决问题:



以下软件包具有未满足的依赖关系:

libfontconfig1-dev:取决于:libfontconfig1(= 2.8.0-3ubuntu9)但是要安装2.8.0-3ubuntu9.1

取决于:libexpat1-dev但它是不会安装

libfreetype6-dev:取决于:libfreetype6(= 2.4.8-1ubuntu2)但是要安装2.4.8-1ubuntu2.1

libx11- dev:取决于:libx11-6(= 2:1.4.99.1-0ubuntu2)但是2:1.4.99.1-0ubuntu2.1将被安装

取决于:libxcb1-dev但它不会安装

推荐:libx11-doc但不会安装

libxcursor-dev:Depe nds:libxcursor1(= 1:1.1.12-1)但是要安装1:1.1.12-1ubuntu0.1

libxext-dev:取决于:libxext6(= 2:1.3.0- 3build1)但是2:1.3.0-3ubuntu0.1将被安装

libxfixes-dev:取决于:libxfixes3(= 1:5.0-4ubuntu4)但是1:5.0-4ubuntu4.1是安装

libxi-dev:取决于:libxi6(= 2:1.6.0-0ubuntu2)但是要安装2:1.6.0-0ubuntu2.1

libxrandr- dev:取决于:libxrandr2(= 2:1.3.2-2)但是要安装2:1.3.2-2ubuntu0.2

libxrender-dev:取决于:libxrender1(= 1:0.9。 6-2build1)但是1:0.9.6-2ubuntu0.1将被安装

E:无法纠正问题,你已经破了包裹。



如何解决?

感谢您的帮助。
sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-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:
libfontconfig1-dev : Depends: libfontconfig1 (= 2.8.0-3ubuntu9) but 2.8.0-3ubuntu9.1 is to be installed
Depends: libexpat1-dev but it is not going to be installed
libfreetype6-dev : Depends: libfreetype6 (= 2.4.8-1ubuntu2) but 2.4.8-1ubuntu2.1 is to be installed
libx11-dev : Depends: libx11-6 (= 2:1.4.99.1-0ubuntu2) but 2:1.4.99.1-0ubuntu2.1 is to be installed
Depends: libxcb1-dev but it is not going to be installed
Recommends: libx11-doc but it is not going to be installed
libxcursor-dev : Depends: libxcursor1 (= 1:1.1.12-1) but 1:1.1.12-1ubuntu0.1 is to be installed
libxext-dev : Depends: libxext6 (= 2:1.3.0-3build1) but 2:1.3.0-3ubuntu0.1 is to be installed
libxfixes-dev : Depends: libxfixes3 (= 1:5.0-4ubuntu4) but 1:5.0-4ubuntu4.1 is to be installed
libxi-dev : Depends: libxi6 (= 2:1.6.0-0ubuntu2) but 2:1.6.0-0ubuntu2.1 is to be installed
libxrandr-dev : Depends: libxrandr2 (= 2:1.3.2-2) but 2:1.3.2-2ubuntu0.2 is to be installed
libxrender-dev : Depends: libxrender1 (= 1:0.9.6-2build1) but 1:0.9.6-2ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages.

How can I solve it?
Thanks for your help.


如何先安装非开发软件包?如果安装列表中给出的依赖项列表会发生什么?



使用synaptic也可能有很大帮助。

如果没有安装: sudo apt-get install synaptic



祝你好运!
How about installing the non dev packages first? What happens if you install the list of dependencies given in the list?

It may also help a lot to use synaptic.
If not installed: sudo apt-get install synaptic

Good luck!


这篇关于安装QT时的brocken包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆