尝试在Ubuntu中安装qtbase5-dev时出错

时间:2016-10-23 11:41:20

标签: qt ubuntu qt5 apt-get

我尝试使用sudo apt-get install qtbase5-dev安装qt5开发库,但我收到了错误消息:

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:
 qtbase5-dev : Depends: libgles2-mesa-dev or
                        libgles2-dev but it is not installable
               Depends: libqt5gui5 (= 5.2.1+dfsg-1ubuntu14.3) but it is not going to be installed
               Depends: libqt5printsupport5 (= 5.2.1+dfsg-1ubuntu14.3) but it is not going to be installed
               Depends: libqt5widgets5 (= 5.2.1+dfsg-1ubuntu14.3) but it is not going to be installed
               Recommends: libqt5opengl5-dev (= 5.2.1+dfsg-1ubuntu14.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

问题是我没有持有包裹 - 我使用the specification进行了检查,但它没有显示任何内容。

2 个答案:

答案 0 :(得分:1)

对我来说,这是由安装oibaf图形PPA引起的。

sudo apt-get install ppa-purge

sudo ppa-purge ppa:oibaf/graphics-drivers

将恢复为库存图形库。

答案 1 :(得分:0)

手动安装libgles2-mesa-dev然后qtbase5-dev工作。我不得不在单独的命令中运行它:

sudo apt-get install libgles2-mesa-dev
sudo apt-get install qtbase5-dev