Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Errors when trying to install qtbase5-dev in Ubuntu

I'm trying to install the qt5 development libraries using sudo apt-get install qtbase5-dev, but I'm getting an error:

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 problem is I don't have held packages - I checked using dpkg --get-selections | grep hold, but it showed nothing.

like image 390
sashoalm Avatar asked Oct 23 '16 11:10

sashoalm


2 Answers

For me, this was caused by the oibaf graphics PPA being installed.

sudo apt-get install ppa-purge

sudo ppa-purge ppa:oibaf/graphics-drivers

will revert to stock graphics libs.

like image 138
Jarrad Avatar answered Nov 06 '22 23:11

Jarrad


Manually installing libgles2-mesa-dev and then qtbase5-dev worked. I had to ran it in separate commands though:

sudo apt-get install libgles2-mesa-dev
sudo apt-get install qtbase5-dev
like image 1
sashoalm Avatar answered Nov 07 '22 01:11

sashoalm