I have package that depends on libdrm2. But it seems the one in the toradex feed is not yet the correct version. I get:
apt-get install libdrm2
Reading package lists... Done
Building dependency tree... Done
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:
libdrm2 : Depends: libdrm-common (>= 2.4.104-1) but 2.4.102-1+toradex1 is to be installed
E: Unable to correct problems, you have held broken packages.
I’ve checked the latest snapshot (20220715T123302Z) and it also has version 2.4.102.
Which exact Colibri iMX6 module and version are you using?
Which OS are you using on the module? And which version?
Is this issue happening on the module (e.g. you are trying to install some package on the module) or this issue is happening on your computer (e.g. you are facing this problem while using VSCode)?
I have added libdrm2 and some other packages to a RUN apt-get install command. When building the image i get:
The following packages have unmet dependencies:
libdrm2 : Depends: libdrm-common (>= 2.4.104-1) but 2.4.102-1+toradex1 is to be installed
E: Unable to correct problems, you have held broken packages.
On the module ofcourse I get the same unmet dependency error when I do an apt-get install libdrm2.
From the article you will see that we have the weston container for use cases that need a graphical interface.
You are starting from the debian container, which is a “graphical-less” container. I also tried to install libdrm on top of this debian and I could reproduce your error:
FROM --platform=linux/arm/v7 torizon/debian:2-bullseye
RUN apt-get update && \
apt-get install libdrm2
When running the docker build on this Dockerfile above, we get the 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:
libdrm2 : Depends: libdrm-common (>= 2.4.104-1) but 2.4.102-1+toradex1 is to be installed
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c apt-get update && apt-get install libdrm2' returned a non-zero code: 100
But, when using weston:
FROM --platform=linux/arm/v7 torizon/weston:2
RUN apt-get update && \
apt-get install libdrm2
$ docker build .
Sending build context to Docker daemon 2.048kB
Step 1/2 : FROM --platform=linux/arm/v7 torizon/weston:2
---> 829f5eb1882b
Step 2/2 : RUN apt-get update && apt-get install libdrm2
---> Using cache
---> 8f5fc26c075d
Successfully built 8f5fc26c075d