Page 1 of 1

How I resolve this problem?

Unread postPosted: Tue Feb 26, 2013 9:06 am
by helmutkemper
installArchives() failed: (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 176824 files and directories currently installed.)
Unpacking libegl1-mesa-dev (from .../libegl1-mesa-dev_8.0.4-0ubuntu0.3_armhf.deb) ...
dpkg: error processing /var/cache/apt/archives/libegl1-mesa-dev_8.0.4-0ubuntu0.3_armhf.deb (--unpack):
trying to overwrite '/usr/include/KHR/khrplatform.h', which is also in package mali400-dev 2.1-13
No apport report written because MaxReports is reached already
dpkg-deb (subprocess): subprocess data was killed by signal (Broken pipe)
dpkg-deb: error: subprocess <decompress> returned error exit status 2
Unpacking libgles2-mesa-dev (from .../libgles2-mesa-dev_8.0.4-0ubuntu0.3_armhf.deb) ...
dpkg: error processing /var/cache/apt/archives/libgles2-mesa-dev_8.0.4-0ubuntu0.3_armhf.deb (--unpack):
trying to overwrite '/usr/include/GLES2/gl2ext.h', which is also in package mali400-dev 2.1-13
No apport report written because MaxReports is reached already
dpkg-deb (subprocess): subprocess data was killed by signal (Broken pipe)
dpkg-deb: error: subprocess <decompress> returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libegl1-mesa-dev_8.0.4-0ubuntu0.3_armhf.deb
/var/cache/apt/archives/libgles2-mesa-dev_8.0.4-0ubuntu0.3_armhf.deb
Error in function:
dpkg: dependency problems prevent configuration of libqt4-opengl-dev:
libqt4-opengl-dev depends on libgles2-mesa-dev | libgles2-dev; however:
Package libgles2-mesa-dev is not installed.
Package libgles2-dev is not installed.
dpkg: error processing libqt4-opengl-dev (--configure):
dependency problems - leaving unconfigured

Re: How I resolve this problem?

Unread postPosted: Tue Feb 26, 2013 9:16 am
by mdrjr
The problem is our Mali driver..

It does work fine, but when you attempt to install anything that uses OpenGL ES it will conflict. Because Ubuntu wants to Install MESA to handle OpenGL ES not mali implementation.

I think we missed something on the package configure, some instruction like... Hey if you need mesa.. use this guy here...

Not sure, I'm not an expert in dpkg.

Re: How I resolve this problem?

Unread postPosted: Tue Feb 26, 2013 9:32 am
by helmutkemper
how do I remove packages conflict?
how do I unstall MESA?

Re: How I resolve this problem?

Unread postPosted: Tue Feb 26, 2013 9:49 am
by mdrjr
you probably need to remove our mali drivers, install this app (mesa will be installed) them install our mali drivers back.

Re: How I resolve this problem?

Unread postPosted: Tue Feb 26, 2013 10:13 am
by helmutkemper
how do I remove MALI driver?

Re: How I resolve this problem?

Unread postPosted: Tue Feb 26, 2013 10:24 am
by mdrjr
Hmm.. that explains.. see.. libgles2-dev is a virtual package, just a reference to another package.. in our case we must fix that in our .deb

try.... dpkg --purge mali
amd dpkg --purge mali-dev

Re: How I resolve this problem?

Unread postPosted: Tue Feb 26, 2013 10:54 am
by helmutkemper
I make this:

sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
sudo dpkg --remove libqt4-opengl-dev

after, I remove Mali400

sudo apt-get libqt4-opengl-dev

Re: How I resolve this problem?

Unread postPosted: Tue Feb 26, 2013 1:09 pm
by kibergus
mdrjr wrote:The problem is our Mali driver..

It does work fine, but when you attempt to install anything that uses OpenGL ES it will conflict. Because Ubuntu wants to Install MESA to handle OpenGL ES not mali implementation.

I think we missed something on the package configure, some instruction like... Hey if you need mesa.. use this guy here...

You need to fill Conflicts, Provides and Replaces sections in debian/control file. Your package should "provide" virtual package libgles2-dev, then apt would not pull mesa every time because it would know that the functionality is provided by your driver.

Re: How I resolve this problem?

Unread postPosted: Fri Mar 01, 2013 6:28 am
by meveric
i had the same issue a couple of times when i was playing around with drivers and stuff, well there is a way to do it.

First you have to get rid of the installed mali drivers of odroid, then install the software you desire and then reinstall the mali drivers from odroid but overwrite the stuff that came with the package you installed. Make sure you still have the mali400 driver packages laying around somewhere.

for example:
Code: Select all
sudo dpkg -r --purge mali400-dev mali400
sudo apt-get install libqt4-opengl-dev
sudo dpkg -i --force-overwrite mali400_2.1-13_armhf.deb mali400-dev_2.1-13_armhf.deb


Also make sure that the folder /usr/lib/arm-linux-gnueabihf/mesa-egl does not exist or is empty for example:
Code: Select all
sudo rm -rf /usr/lib/arm-linux-gnueabihf/mesa-egl


so you can install everything you want and always put back the odroid mali400 drivers.

Not a clean thing, but it will work for now. (also works with KJs custom kernels mali drivers)