rmast
Posts: 14
Joined: Fri Dec 25, 2015 11:52 am

libegl1-mesa package broken dependency?

Sat Dec 29, 2018 6:59 pm

On stretch on my Rpi3 a similar issue:

pi@raspberrypi:~ $ sudo apt-get install libgles2-mesa-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:
libgles2-mesa-dev : Depends: libgles2-mesa (= 13.0.6-1) but 13.0.6-1+rpi2 is to be installed
Depends: libegl1-mesa-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

User avatar
rpdom
Posts: 17447
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: libegl1-mesa package broken dependency?

Sat Dec 29, 2018 7:18 pm

rmast wrote:
Sat Dec 29, 2018 6:59 pm
On stretch on my Rpi3 a similar issue:

pi@raspberrypi:~ $ sudo apt-get install libgles2-mesa-dev
Unrelated to the previous issue.

Did you do

Code: Select all

sudo apt-get update
first?
What does

Code: Select all

apt-cache policy libgles2-mesa-dev
show?

rmast
Posts: 14
Joined: Fri Dec 25, 2015 11:52 am

Re: libegl1-mesa package broken dependency?

Sat Dec 29, 2018 7:50 pm

rpdom wrote:
Sat Dec 29, 2018 7:18 pm
Did you do

Code: Select all

sudo apt-get update
first?
yes
rpdom wrote:
Sat Dec 29, 2018 7:18 pm
What does

Code: Select all

apt-cache policy libgles2-mesa-dev
show?
pi@raspberrypi:~ $ apt-cache policy libgles2-mesa-dev
libgles2-mesa-dev:
Installed: (none)
Candidate: 13.0.6-1
Version table:
13.0.6-1 500
500 http://raspbian.mirror.triple-it.nl/raspbian stretch/main armhf Packages

jdonald
Posts: 444
Joined: Fri Nov 03, 2017 4:36 pm

Re: libegl1-mesa package broken dependency?

Sat Dec 29, 2018 10:04 pm

I think you found a real problem.

Whether your mirror in the Netherlands or the one on raspbian.raspberrypi.org, this set says 13.0.6-1 (incorrect), while the archive.raspberrypi.org Packages says 13.0.6-1+rpi2 (correct).

That explains why others aren't hitting the problem. They typically have /etc/apt/sources/list.d/raspi.list to cover for errors in /etc/apt/sources.list. You could use the same workaround by commenting out the line in sources.list and making sure archive.raspberrypi.org (not raspbian.raspberrypi.org) takes effect when you run sudo apt update.

Question remains how we got in this precarious situation.
Last edited by jdonald on Sat Dec 29, 2018 10:45 pm, edited 1 time in total.

rmast
Posts: 14
Joined: Fri Dec 25, 2015 11:52 am

Re: libegl1-mesa package broken dependency?

Sat Dec 29, 2018 10:18 pm

I tried to build libgles2-mesa from source, but the build starts swapping for lack of memory and completely stalls the desktop on my RPi3 on some tex-related stuff, so I decided not to wear out my 32GB sandisk extreme USB any further AND guess it should be crosscompiled instead.

rmast
Posts: 14
Joined: Fri Dec 25, 2015 11:52 am

Re: libegl1-mesa package broken dependency?

Sat Dec 29, 2018 10:22 pm

jdonald wrote:
Sat Dec 29, 2018 10:04 pm
You could use the same workaround by commenting out the line in sources.list and making sure archive.raspberrypi.org (not raspbian.raspberrypi.org) takes effect when you run sudo apt update.
I had some issues with the standard-mirror over wifi, so I changed it. But now with an ethernet-cable inbetween I can retry.

rmast
Posts: 14
Joined: Fri Dec 25, 2015 11:52 am

Re: libegl1-mesa package broken dependency?

Sat Dec 29, 2018 10:33 pm

archive.raspberrypi.org only contains a debian tree, not raspbian, so it can't find specific rpi stuff.

DirkS
Posts: 10394
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: libegl1-mesa package broken dependency?

Sat Dec 29, 2018 10:49 pm

rmast wrote:
Sat Dec 29, 2018 10:33 pm
archive.raspberrypi.org only contains a debian tree, not raspbian, so it can't find specific rpi stuff.
That's not correct. The name 'debian' as such is totally irrelevant.
archive.raspberrypi.org is the RPF repository. It is not a mirror or whatever of the raspbian repo.
It contains RPF specific software (modified packages, extras, etc).
It contains packages for both Pi/Arm as for Debian x86 (used for the 'Raspberry Pi desktop for PC/Mac)

So you cannot replace the Raspian repo source with the RPF repo source.
A standard RPF Raspbian image actually has both in the repository sources.

jdonald
Posts: 444
Joined: Fri Nov 03, 2017 4:36 pm

Re: libegl1-mesa package broken dependency?

Sat Dec 29, 2018 11:01 pm

rmast wrote:
Sat Dec 29, 2018 10:18 pm
I tried to build libgles2-mesa from source, but the build starts swapping for lack of memory and completely stalls the desktop on my RPi3 on some tex-related stuff, so I decided not to wear out my 32GB sandisk extreme USB any further AND guess it should be crosscompiled instead.
I've built Mesa from source, and I highly recommend following Eric's straightforward instructions for cross-compiling with meson + ninja.

Well, that's only if you have some pressing reason to build it from source because it's still not a small project.
rmast wrote:
Sat Dec 29, 2018 10:33 pm
archive.raspberrypi.org only contains a debian tree, not raspbian, so it can't find specific rpi stuff.
If you click the link you'll see many +rpi packages in there. I guess DirkS has a good point that if you remove one source or the other you're getting into untested territory. That non-Raspbian Debian libgles2-mesa-dev armhf package may not be intentional, but it probably isn't the only issue if you try to use the raspbian repository by itself.

It sounds like you commented out raspi.list at some point (because you thought archive contains Debian packages). What happens if you run sudo apt update with both sources in place?
Last edited by jdonald on Sun Dec 30, 2018 1:06 pm, edited 1 time in total.

rmast
Posts: 14
Joined: Fri Dec 25, 2015 11:52 am

Re: libegl1-mesa package broken dependency?

Sat Dec 29, 2018 11:39 pm

DirkS wrote:
Sat Dec 29, 2018 10:49 pm
rmast wrote:
Sat Dec 29, 2018 10:33 pm
archive.raspberrypi.org only contains a debian tree, not raspbian, so it can't find specific rpi stuff.
That's not correct. The name 'debian' as such is totally irrelevant.
archive.raspberrypi.org is the RPF repository. It is not a mirror or whatever of the raspbian repo.
It contains RPF specific software (modified packages, extras, etc).
It contains packages for both Pi/Arm as for Debian x86 (used for the 'Raspberry Pi desktop for PC/Mac)

So you cannot replace the Raspian repo source with the RPF repo source.
A standard RPF Raspbian image actually has both in the repository sources.
Do you mean http://archive.raspbian.org/?

fruitoftheloom
Posts: 23903
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: libegl1-mesa package broken dependency?

Sun Dec 30, 2018 12:21 am

rmast wrote:
Sat Dec 29, 2018 11:39 pm
DirkS wrote:
Sat Dec 29, 2018 10:49 pm
rmast wrote:
Sat Dec 29, 2018 10:33 pm
archive.raspberrypi.org only contains a debian tree, not raspbian, so it can't find specific rpi stuff.
That's not correct. The name 'debian' as such is totally irrelevant.
archive.raspberrypi.org is the RPF repository. It is not a mirror or whatever of the raspbian repo.
It contains RPF specific software (modified packages, extras, etc).
It contains packages for both Pi/Arm as for Debian x86 (used for the 'Raspberry Pi desktop for PC/Mac)

So you cannot replace the Raspian repo source with the RPF repo source.
A standard RPF Raspbian image actually has both in the repository sources.
Do you mean http://archive.raspbian.org/?

Maybe it is time to start afresh with Raspbian Stretch and only use packages from the repositories ??
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

jdonald
Posts: 444
Joined: Fri Nov 03, 2017 4:36 pm

Re: libegl1-mesa package broken dependency?

Sun Dec 30, 2018 12:45 am

rmast wrote:
Sat Dec 29, 2018 11:39 pm
Do you mean http://archive.raspbian.org/?
The names are no doubt confusing. Here's the first line of my /etc/apt/sources.list.d/raspi.list:

Code: Select all

deb http://archive.raspberrypi.org/debian/ stretch main ui staging
So it seems likely that DirkS did mean archive.raspberrypi.org is the RPF repo (and it's what you're missing).

rmast
Posts: 14
Joined: Fri Dec 25, 2015 11:52 am

Re: libegl1-mesa package broken dependency?

Sun Dec 30, 2018 12:55 pm

jdonald wrote:
Sun Dec 30, 2018 12:45 am

Code: Select all

deb http://archive.raspberrypi.org/debian/ stretch main ui staging
So it seems likely that DirkS did mean archive.raspberrypi.org is the RPF repo (and it's what you're missing).
Yes! That's it! Thanks!

By the way, the Stretch-image was quite freshly Etched yesterday.

DirkS
Posts: 10394
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: libegl1-mesa package broken dependency?

Sun Dec 30, 2018 6:06 pm

rmast wrote:
Sat Dec 29, 2018 11:39 pm
DirkS wrote:
Sat Dec 29, 2018 10:49 pm
rmast wrote:
Sat Dec 29, 2018 10:33 pm
archive.raspberrypi.org only contains a debian tree, not raspbian, so it can't find specific rpi stuff.
That's not correct. The name 'debian' as such is totally irrelevant.
archive.raspberrypi.org is the RPF repository. It is not a mirror or whatever of the raspbian repo.
It contains RPF specific software (modified packages, extras, etc).
It contains packages for both Pi/Arm as for Debian x86 (used for the 'Raspberry Pi desktop for PC/Mac)

So you cannot replace the Raspian repo source with the RPF repo source.
A standard RPF Raspbian image actually has both in the repository sources.
Do you mean http://archive.raspbian.org/?
With what?
But the answer is no anyway. I mean what I wrote, nothing else.
You seem to be intent on seeing stuff that's not there and thereby confusing yourself.

I have said what I wanted to say and will not comment on this topic anymore.

Return to “Raspberry Pi OS”