How I resolve this problem?

Moderators: mdrjr, odroid

How I resolve this problem?

Unread postby helmutkemper » Tue Feb 26, 2013 9:06 am

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
Attachments
Screen Shot 2013-02-25 at 9.04.48 PM.PNG
Error file
Screen Shot 2013-02-25 at 9.04.48 PM.PNG (208.04 KiB) Viewed 2526 times
User avatar
helmutkemper
 
Posts: 35
Joined: Mon Feb 25, 2013 2:13 am
languages_spoken: english
ODROIDs: ODROID-U2

Re: How I resolve this problem?

Unread postby mdrjr » Tue Feb 26, 2013 9:16 am

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.
mdrjr
Site Admin
 
Posts: 11637
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: How I resolve this problem?

Unread postby helmutkemper » Tue Feb 26, 2013 9:32 am

how do I remove packages conflict?
how do I unstall MESA?
User avatar
helmutkemper
 
Posts: 35
Joined: Mon Feb 25, 2013 2:13 am
languages_spoken: english
ODROIDs: ODROID-U2

Re: How I resolve this problem?

Unread postby mdrjr » Tue Feb 26, 2013 9:49 am

you probably need to remove our mali drivers, install this app (mesa will be installed) them install our mali drivers back.
mdrjr
Site Admin
 
Posts: 11637
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: How I resolve this problem?

Unread postby helmutkemper » Tue Feb 26, 2013 10:13 am

how do I remove MALI driver?
Attachments
Screen Shot 2013-02-25 at 10.22.12 PM.PNG
Screen Shot 2013-02-25 at 10.22.12 PM.PNG (181.78 KiB) Viewed 2516 times
User avatar
helmutkemper
 
Posts: 35
Joined: Mon Feb 25, 2013 2:13 am
languages_spoken: english
ODROIDs: ODROID-U2

Re: How I resolve this problem?

Unread postby mdrjr » Tue Feb 26, 2013 10:24 am

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
mdrjr
Site Admin
 
Posts: 11637
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: How I resolve this problem?

Unread postby helmutkemper » Tue Feb 26, 2013 10:54 am

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
User avatar
helmutkemper
 
Posts: 35
Joined: Mon Feb 25, 2013 2:13 am
languages_spoken: english
ODROIDs: ODROID-U2

Re: How I resolve this problem?

Unread postby kibergus » Tue Feb 26, 2013 1:09 pm

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.
kibergus
 
Posts: 401
Joined: Sat Feb 23, 2013 11:23 pm
languages_spoken: english, russian
ODROIDs: U2 X2

Re: How I resolve this problem?

Unread postby meveric » Fri Mar 01, 2013 6:28 am

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)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7875
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 1 guest